Board index FlightGear Development Aircraft Cockpit development

Tooltip update by two properties?  Topic is solved

Discussion about creating 2d and 3d cockpits.

Tooltip update by two properties?

Postby benih » Fri Sep 07, 2018 4:38 pm

Hello,
i have a tooltip with nasal mapping here, that computes a string based on two properties.
How can i configure it so the nasal code is triggered if either one of the two changes?
Adding a second <property> tag did not work...
benih
 
Posts: 96
Joined: Tue Aug 15, 2017 9:34 am

Re: Tooltip update by two properties?

Postby wlbragg » Fri Sep 07, 2018 5:13 pm

Can you show an example of what you already have, I can't follow by your description alone.
Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
User avatar
wlbragg
 
Posts: 4915
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Debain/nVGT640

Re: Tooltip update by two properties?

Postby Thorsten » Fri Sep 07, 2018 5:44 pm

Tie it to a third property, attach listeners to your two original properties which each adjust the third one as needed?
Thorsten
 
Posts: 11106
Joined: Mon Nov 02, 2009 8:33 am

Re: Tooltip update by two properties?

Postby benih » Sat Sep 08, 2018 4:38 pm

Code example herehttps://github.com/HHS81/c182s/comm ... 527096f8ed

Tie a third property should do the trick :)
benih
 
Posts: 96
Joined: Tue Aug 15, 2017 9:34 am

Re: Tooltip update by two properties?  

Postby wlbragg » Sat Sep 08, 2018 7:21 pm

Tie it to a third property, attach listeners to your two original properties which each adjust the third one as needed?


You could also do that part with a filter.
Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
User avatar
wlbragg
 
Posts: 4915
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Debain/nVGT640


Return to Cockpit development

Who is online

Users browsing this forum: No registered users and 1 guest