Code: Select all
[Rainmeter]
Author=Krainz
Update=864000
MiddleMouseDownAction=!DeactivateConfig
[Variables]
UC=[!Update][!Redraw]
GH=[!ToggleConfig "AsperiaSuite\Gamehall\GameScreen1" "GameScreen1-bg.ini"][!ToggleConfig "AsperiaSuite\Gamehall\Tiles" "GameScreen1-Tiles.ini"]
scrollproportion=(Clamp((#screenareawidth#/1366),1,1.1713))
HeightBig=(366*#scrollproportion#)
HeightSmall=(319*#scrollproportion#)
WidthBig=(185*#scrollproportion#)
WidthSmall=(161*#scrollproportion#)
[Icon1]
Meter=Image
SolidColor=30,20,80,255
H=#HeightBig#
W=#WidthBig#
y=r
X=0
RightMouseUpAction=[!SetOption Dropdown1 X $MouseX$][!SetOption Dropdown1 Y $MouseY$][!SetOption Dropdown1C X $MouseX$][!SetOption Dropdown1C Y $MouseY$][!ShowMeterGroup Dropdown1][!Update *]
[RightClick]
Meter=String
MeterStyle=TextStyle
Text="Right Click this meter anywhere"
X=15
Y=(#HeightBig#/2)
DynamicVariables=1
Hidden=0
[Dstyle]
SolidColor=20,20,20,220
Y=0
W=(138*#scrollproportion#)
H=(63*#scrollproportion#)
X=(#WidthBig#)+5R
DynamicVariables=1
[Dropdown1]
Meter=Image
MeterStyle=Dstyle
X=0
DynamicVariables=1
Hidden=1
Group=Dropdown1
[Dropdown1C]
Meter=Image
MeterStyle=Dstyle
Y=r
X=r
DynamicVariables=1
[TextStyle]
SolidColor=0,0,0,1
Text="Test"
FontFace=Calibri
FontSize=(9*#scrollproportion#)
FontColor=230,230,230,255
AntiAlias=1
Padding=0,0,(80*#scrollproportion#),0
W=(138*#scrollproportion#)
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor 255,255,255,255][!SetOption #CURRENTSECTION# SolidColor 0,191,255,255][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor 230,230,230,255][!SetOption #CURRENTSECTION# SolidColor 0,0,0,1][!UpdateMeter #CURRENTSECTION#][!Redraw]
Hidden=1
DynamicVariables=1
[Icon1Text]
Meter=String
MeterStyle=TextStyle
Text=" Icon 1"
X=0
Y=5
DynamicVariables=1
Container=Dropdown1C
Group=Dropdown1
However...
When I implement these meters (as well as the RightMouseUpAction) in my larger .ini file, this ends up happening when I right click the first icon:
You can see that the dropdown meter ends up being ~200 pixels off where it's supposed to be (at mouse X and Y).
That's very odd considering that I didn't change a single thing (that I can remember, despite meter names and style names) from the test example.
Skin package
GameScreen1-Tiles.ini update (the one in the package is out of date) (dropbox mirror) (also make sure to delete AsperiaSuite\GameScreen1\GameScreen1-bg.ini)
EDIT: I think I solved the container issue, now what remains is the meter refusing to go properly to $MouseX$ and $MouseY$
EDIT: I think I found the issue. Mouseovering a Container meter seems to mess up $MouseX$ and $MouseY$. The issue was resolved by removing Container=Container from all [Dropdown1] to [Dropdown13] meters, as well as using the following formula:
Code: Select all
RightMouseUpAction=[!SetOption Dropdown1 X ($MouseX$+[ContainerX:X]+11)][!SetOption Dropdown1 Y ($MouseY$+[ContainerX:Y])]
Code: Select all
RightMouseUpAction=[!SetOption Dropdown1 X ($MouseX$)][!SetOption Dropdown1 Y ($MouseY$)]
(sidenote: [ContainerX] has the same dimensions of [Container] but is used for some mouseover and mouseleave actions)
EDIT2: The above solution only works for Dropdown1. I'm at a complete loss right now.
EDIT3: Found a formula that works for Dropdown2 across several different screen resolutions:
Code: Select all
RightMouseUpAction=[!SetOption Dropdown2 X ($MouseX$+[Index2Icon:X])]