Page 1 of 1
Buff Timer/Label Help
Posted: Sun May 02, 2004 10:27 pm
by SlowAndStupid
Is it possible to have timers in a buff window without the name of the buff being displayed? If so, how can you go about doing that? I haven't been able to figure it out so far and don't see any posts explaining how to do it either. Thanks in advance.
Posted: Sun May 02, 2004 10:40 pm
by ieatacid
I use:
Code: Select all
<TooltipReference>${If[${Bool[${Me.Buff[0]}]},${Me.Buff[0].Duration.Time},]}</TooltipReference>
Posted: Sun May 02, 2004 11:15 pm
by SlowAndStupid
Ah that did it. Thanks for the help!
Posted: Mon May 03, 2004 12:02 pm
by Garrik
So where do you put that line to get the timer to show up on the buff window?
Posted: Mon May 03, 2004 4:16 pm
by SlowAndStupid
For example, the code for the first buff in my UI looks like this:
Code: Select all
<Button item = "BW_Buff0_Button">
<ScreenID>Buff0</ScreenID>
<!--<Font>3</Font>-->
<RelativePosition>true</RelativePosition>
<Location>
<X>714</X>
<Y>0</Y>
</Location>
<Size>
<CX>50</CX>
<CY>50</CY>
</Size>
<Style_VScroll>false</Style_VScroll>
<Style_HScroll>false</Style_HScroll>
<Style_Transparent>false</Style_Transparent>
<!--<TooltipReference/> -->
<Style_Checkbox>false</Style_Checkbox>
<!--<RadioGroup/> -->
<ButtonDrawTemplate>
<Normal>BlueIconBackground</Normal>
<NormalDecal>BuffIcons</NormalDecal>
</ButtonDrawTemplate>
<!--
<SoundPressed/>
<SoundUp/>
<SoundFlyby/>
-->
<DecalOffset>
<X>6</X>
<Y>6</Y>
</DecalOffset>
<DecalSize>
<CX>40</CX>
<CY>40</CY>
</DecalSize>
</Button>
<Label item ="BW_Buff0">
<ScreenID>Buff0Label</ScreenID>
<EQType>9999</EQType>
<Font>2</Font>
<TooltipReference>${If[${Bool[${Me.Buff[1]}]},${Me.Buff[1].Duration.Time},]}</TooltipReference>
<RelativePosition>true</RelativePosition>
<Location>
<X>714</X>
<Y>45</Y>
</Location>
<Size>
<CX>50</CX>
<CY>45</CY>
</Size>
<Text></Text>
<TextColor>
<R>255</R>
<G>255</G>
<B>0</B>
</TextColor>
<NoWrap>false</NoWrap>
<AlignCenter>true</AlignCenter>
<AlignRight>false</AlignRight>
</Label>
That line is inserted in the Label portion of each buff.
Posted: Mon May 03, 2004 11:39 pm
by fryfrog
You don't even need the if statement because if it returns NULL it won't be shown anyway.
just "${Me.Buff[1].Duration.Time}" should work fine (it does for me). Saves a little processing time, which can add up :)
Posted: Tue May 04, 2004 9:44 am
by Drumstix42
I use:
Code: Select all
${If[${Bool[${Me.Buff[1]}]},${Me.Buff[1].Duration.Time},]}
..and it works great! Doesn't show NULL or anything :)
Posted: Tue May 04, 2004 11:42 am
by fryfrog
I'm not saying it doesn't work, I am saying that you are wasting CPU time on something that MQ will filter out anyway. 15 of those if's will have a small impact, and if you use them everywhere else in your UI it will just get even bigger.
The more CPU cycles MQ spends on your UI, the less EQ has to gobble down.
Posted: Tue May 04, 2004 6:53 pm
by ieatacid
I was using the If because for a short time it *was* showing NULL. All cleaned up now, thanks.