Store toggle value ...
 
Notifications
Clear all

Store toggle value outside of formulas

3 Posts
2 Users
1 Likes
227 Views
PLANET_XYZ
(@planet_xyz)
Active Member
Joined: 3 weeks ago
Posts: 7
Topic starter  

So I have read and somewhat understood this page:

https://github.com/SHWotever/SimHub/wiki/Javascript-Formula-Engine

But I wanna try to make a toggle fullscreen map; if you press a button, set a boolean to true and set fullscreen map to visible; if you press it again, set the boolean to false and set the fullscreen map to invisible.

Even with that link at the top I have no idea how I would get the input value from that button stored somewhere and read out at the map.Visible property.

Any tips? Something I missed? Is this even possible?Ā 

This topic was modified 2 weeks ago by PLANET_XYZ

   
Quote
(@botmeister)
Eminent Member
Joined: 2 years ago
Posts: 37
 

Not a javascript solution, but a widget can do this easily. Add a widget (same width/height as your dashboard) and make sure it has two (sub) screens. Screen 1 = no map at all / or a small map . Screen 2 = the full screen map. In the widget's property list, simply set NextScreenCommand to ActionA. Then map a button to ActionA. No coding needed šŸ™‚

This post was modified 1 week ago by Botmeister

   
ReplyQuote
PLANET_XYZ
(@planet_xyz)
Active Member
Joined: 3 weeks ago
Posts: 7
Topic starter  

@botmeister That actually sounds like a fairly simple solution and I don't know why I haven't come up with it- I was so fixated on coding it probably xDĀ 

Thank you šŸ™‚


   
Botmeister reacted
ReplyQuote
Share: