button box dash stu...
 
Notifications
Clear all

button box dash studio

6 Posts
3 Users
0 Reactions
8,304 Views
 loic
(@loic)
New Member
Joined: 5 years ago
Posts: 3
Topic starter  

hello wotever 🙂 

can you help me please on a button box on dash studio.
in the category add button, in "image" and "PressdImage" can we stay on "PressdImage" on a first click and return to "image" on a second click.
as an on / off switch.
what is "ClickScript" ??
with you examples of script for this function?
thank you very much and sorry for my bad english.


   
Quote
Topic Tags
(@admin5435)
Prominent Member Admin
Joined: 7 years ago
Posts: 732
 

Hi ! for now it's not a toggle button, it's only a press button with a specific picture when you actually press it to get some visual feedback.
About clickscript it was experimental you can ignore it, it never came out to something useful 🙂


   
ReplyQuote
 loic
(@loic)
New Member
Joined: 5 years ago
Posts: 3
Topic starter  

@admin5435

too bad not being able to make a toggle button. 😪 😪 
thank you very much for your reply and i hope this function will be incorporated in simdash. 🤩
thank you.


   
ReplyQuote
(@nomdezeus)
New Member
Joined: 4 years ago
Posts: 4
 

Hey guys,

I'm newbie on simhub and was searching for a similar thing. I wonder if using a "Toggle Image" and adding an invisible button on it will do the trick ? I was for example trying to emulate an engine on/off (contact, not starter). Do you know if there is a way to have this information (contact on or off) on Assetto Corsa for example ? If yes what "Value" reflect this ?

Thanks !

This post was modified 4 years ago by nomdeZeus

   
ReplyQuote
(@nomdezeus)
New Member
Joined: 4 years ago
Posts: 4
 

Oh, my bad, no function "contact" in AC. but in rF2, yes !


   
ReplyQuote
(@nomdezeus)
New Member
Joined: 4 years ago
Posts: 4
 

Well, I got it :

- a toggled image with 2 images "start off" (led off) and "start on" (led on)

the switch is done in "Value" fx : [DataCorePlugin.GameData.NewData.Rpms] > 100 (on some mods, even if the engine is off, the rpms "shake", but no problem as it is generally up to 1000 rpms when the engine is on !)

- onto it (so, lower in the items list), a button with no image for "off", but the same image "start on" for "pressedImage".

And that's it !

But to do this, you must have a meaningful value returned. For example, I've found no value to know if the contact is on or off. Only the engine with rpms... If you see a solution ?


   
ReplyQuote
Share: