I have this meter:
Code: Select all
[Background1]
Meter=Image
ImageName=#bgbackground1#
X=0
Y=0
PreserveAspectRatio=1
LeftMouseDoubleClickAction=["#@#RainFile\RainFile.exe" "File" "Variables" "bgbackground1" "#@#Variables\GeneralSettings.inc" "#PROGRAMDRIVE#Image.jpg" "DPNE"]
LeftMouseUpAction=[!DeactivateConfig "AsperiaSuite\Gamehall\Tiles" "GameScreen1-Tiles.ini"][!ActivateConfig "AsperiaSuite\Gamehall\Tiles" "GameScreen1-Tiles.ini"]
RightMouseUpAction=[!DeactivateConfig "AsperiaSuite\Gamehall\Tiles" "GameScreen1-Tiles.ini"][!ActivateConfig "AsperiaSuite\Gamehall\Tiles" "GameScreen1-Tiles.ini"]
H=#screenareaheight#
UpdateDivider=864000
However, due to some aspect ratio stuff, sometimes it would be best to choose W=#screenareawidth# instead of H=#screenareaheight#
Is there a way we can make a code so it detects the image won't fit and automatically chooses the best option? (i.e W=#screenareawidth# or H=#screenareaheight#)