Hi all,
I'm trying to modify the skin "Arrow Launcher", so that it only opens and closes when clicked. The default behavior is when the user hovers over the launcher, but I want to be able to click instead. I decided to use variables to check if the menu is open before closing, and if its closed before opening, but I can't get it to work properly.
I am also modifying it so that it fits the "Honeycomb" theme but that all seems to work. I just can't figure out how to check and modify variables using the LeftMouseUpAction.
I just can't dig into "Arrow Launcher" and certainly not "Honeycomb", but in general, you can toggle the "visibility" of a meter with a mouse click using something like:
Thank you! Functionally this is perfect, though for some reason it has a bit of lag time between the click and the toggle. Is that just because of the method or is it something else?
Emperor_Koala wrote:Thank you! Functionally this is perfect, though for some reason it has a bit of lag time between the click and the toggle. Is that just because of the method or is it something else?
Either way thanks again!
The "lag" is the time between setting the variable #Toggle# and the time the String meter will use it, which will be on the next regular skin update, or in the case of my skin up to one second later.
I control that with the [!UpdateMeter *][!Redraw] on the end of the LeftMouseUpAction option. That forces the String meter to immediately update, and use the current value of #Toggle# I just set.
Note that I use [!UpdateMeter *] so I update both the String meter, and the Image meter I'm using to toggle the variable. That is so if I click "quickly", the value of #Toggle# the LeftMouseUpAction is using is the current one I just set, and not the value from the previous skin update.