How to make floating text for the Terraria buff icons.
Posted: December 7th, 2017, 1:41 am
I'm on track to make a Terraria Skin, but I am unable to do an aspect in regards to the buff bar as seen in terraria. In Terraria when you hover over one of the buffs it highlights and then a short text will describe the buff you hovered, the text will follow your mouse. This is what I have except the text is trying to put itself in line with the buffs, and I don't know how to fix that.
If anyone could help me fix this issue I would be much obliged.
Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
[Style]
X=R
Y=r
Path=#@#images\
ImageAlpha=100
DynamicVariables=1
MouseOverAction=[!SetOption #CURRENTSECTION# ImageAlpha 355][!UpdateMeter "#CURRENTSECTION#"][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# ImageAlpha 100][!UpdateMeter "#CURRENTSECTION#"][!Redraw]
; ======= Battery Buffs =======
[LifeTimeString]
Meter=String
MeasureName=MeasureLife
X=$MouseX$ + 5
Y=$MouseY$ + 5
FontColor=255,255,255,255
FontFace=Andy
FontSize=14
StringAlign=Left
Text=Life Time left: #CurrentSection#
hidden=1
[LifeTimeIcon]
Meter=Image
MeterStyle=Style
ImageName=LifeTime.png
MouseOverAction=[!ShowMeter LifeTimeString]
MouseLeaveAction=[!HideMeter LifeTimeString]
[ChargingIcon]
Meter=Image
MeterStyle=Style
ImageName=Charging.png
[LowBatteryIcon]
Meter=Image
MeterStyle=Style
ImageName=LowBattery.png
[MeasureLife]
Measure=Plugin
PlugIn=PowerPlugin
PowerState=Lifetime
UpdateDivider=5
[MeasurePercent]
Measure=Plugin
PlugIn=PowerPlugin
PowerState=Percent
UpdateDivider=5
IfCondition=(#CurrentSection#<20)
IfTrueAction=[!ShowMeter LowBatteryIcon]
IfCondition2=(#CurrentSection#>=20)
IfTrueAction2=[!HideMeter LowBatteryIcon]
[MeasureStatus]
Measure=Plugin
PlugIn=PowerPlugin
PowerState=Status
UpdateDivider=5
IfCondition=(#CurrentSection#=1)
IfTrueAction=[!ShowMeter ChargingIcon]
IfFalseAction=[!HideMeter ChargingIcon]
IfConditionMode=1
DynamicVariables=1