It is currently March 28th, 2024, 10:38 am

How to make floating text for the Terraria buff icons.

Get help with creating, editing & fixing problems with skins
Post Reply
David3214
Posts: 14
Joined: December 5th, 2017, 12:16 am

How to make floating text for the Terraria buff icons.

Post by David3214 »

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
eclectic-tech
Rainmeter Sage
Posts: 5380
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA
Contact:

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

Post by eclectic-tech »

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
David3214
Posts: 14
Joined: December 5th, 2017, 12:16 am

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

Post by David3214 »

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
eclectic-tech
Rainmeter Sage
Posts: 5380
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA
Contact:

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

Post by eclectic-tech »

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