Basically, I've set up a button on a skin to toggle the Zpos between "Stay Topmost" and "Normal" using a dynamic variable.
I'm having three issues:
1. The icon isn't displaying correctly upon skin refresh. But only if the Zpos has been set to 2, ie, Stay Topmost. If the Zpos is set to 0 , ie, Normal, then it works ok.
2. It takes two clicks for the skin to respond after a skin refresh.
3. Despite a skin refresh saving the value of the Pin variable, it doesn't seem to be written to the file I want it to, so I have no idea where it is being saved to! - Seems to be working now!
I think it is to do with the toggle formula. I have to set it using: [!SetVariable Pin (2-#Pin#)]
But 2 is required to set it correctly as that value represents Stay Topmost. So I feel I'm working with it in reverse, but my head is too cloudy to figure this simple thing out!
Here's the relevant meters:Any help would be appreciated, thank you.
I'm having three issues:
1. The icon isn't displaying correctly upon skin refresh. But only if the Zpos has been set to 2, ie, Stay Topmost. If the Zpos is set to 0 , ie, Normal, then it works ok.
2. It takes two clicks for the skin to respond after a skin refresh.
3. Despite a skin refresh saving the value of the Pin variable, it doesn't seem to be written to the file I want it to, so I have no idea where it is being saved to! - Seems to be working now!
I think it is to do with the toggle formula. I have to set it using: [!SetVariable Pin (2-#Pin#)]
But 2 is required to set it correctly as that value represents Stay Topmost. So I feel I'm working with it in reverse, but my head is too cloudy to figure this simple thing out!
Here's the relevant meters:
Code:
[Pin]Meter=StringMeterStyle=sSegoe | sHighlightFontSize=14Text=[\xE718]LeftMouseUpAction=[!SetVariable Pin (2-#Pin#)][!Zpos "#Pin#" "#ROOTCONFIG#\UpdateCheck"][!UpdateMeterGroup Pin][!WriteKeyValue Variables Pin #Pin# "#CURRENTPATH#\.Common.inc"]UpdateDivider=-1ToolTipText=#CURRENTSECTION#DynamicVariables=1Group=PinX=40rY=14[Pinned]Meter=StringMeterStyle=sSegoe | sHighlightFontSize=14Text=[\xE841]UpdateDivider=-1Hidden=(#Pin#=2?1:0)DynamicVariables=1Group=PinX=rY=r
Statistics: Posted by sl23 — Yesterday, 5:09 pm — Replies 9 — Views 118