How to make floating text for the Terraria buff icons.

Help with creating, editing & fixing problems with skins

How to make floating text for the Terraria buff icons.

December 7th, 2017, 1:41 am
David3214
   [14 posts]

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.

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

If anyone could help me fix this issue I would be much obliged.
User avatar

Re: How to make floating text for the Terraria buff icons.

December 7th, 2017, 5:10 am
eclectic-tech
Rainmeter Sage   [2843 posts]

ToolTips is what I would suggest, rather than using a separate string meter, add the tooltip to the image meter.

Code: Select all

[LifeTimeIcon]
Meter=Image
MeterStyle=Style
ImageName=LifeTime.png
; MouseOverAction=[!ShowMeter LifeTimeString]
; MouseLeaveAction=[!HideMeter LifeTimeString]
ToolTipType=1
TooltipText=Life Time left: [MeasureLife:]
DynamicVariables=1

Re: How to make floating text for the Terraria buff icons.

December 12th, 2017, 8:13 pm
David3214
   [14 posts]

eclectic-tech wrote:ToolTips is what I would suggest, rather than using a separate string meter, add the tooltip to the image meter.
]

Thank you Eclectic-Tech, that is what I was wanting. Though for it to conform more to the Terraria look and have the tooltip below the "buff" I just didn't put a tooltip type and that worked for me. Thank your for your help.
User avatar

Re: How to make floating text for the Terraria buff icons.

December 13th, 2017, 12:33 am
eclectic-tech
Rainmeter Sage   [2843 posts]

Yes, sometimes the 'balloon' tool tip is not desirable, glad to help! :welcome:

Return to “Help: Rainmeter Skins”



Who is online

Users browsing this forum: No registered users and 6 guests