Page 1 of 1

Buff Window Problem.

Posted: Wed Nov 26, 2003 1:06 am
by Elric
What I want to do is list the buffs in my buff window, and put a duration onto them(other than seconds.) as well as a level at which they were cast. But I don't know how to do that from INSIDE the UI file.

My code is as follows.

Code: Select all

<?xml version = "1.0"?>
<XML ID = "EQInterfaceDefinitionLanguage">
	<Schema xmlns = "EverQuestData" xmlns:dt = "EverQuestDataTypes"/>

	<Button item = "BW_Buff0_Button">
		<ScreenID>Buff0</ScreenID>
		<Font>2</Font>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>3</X>
			<Y>3</Y>
		</Location>
		<Size>
			<CX>198</CX>
			<CY>13</CY>
		</Size>
		<Style_VScroll>false</Style_VScroll>
		<Style_HScroll>false</Style_HScroll>
		<Style_Transparent>false</Style_Transparent>
		<Style_Checkbox>false</Style_Checkbox>
		<ButtonDrawTemplate>
			<Normal>BlueIconBackground</Normal>
			<NormalDecal>BuffIcons</NormalDecal>
		</ButtonDrawTemplate>
		<DecalOffset>
			<X>0</X>
			<Y>0</Y>
		</DecalOffset>
		<DecalSize>
			<CX>12</CX>
			<CY>12</CY>
		</DecalSize>
	</Button>

	<Button item = "BW_Buff1_Button">
		<ScreenID>Buff1</ScreenID>
		<Font>2</Font>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>3</X>
			<Y>3</Y>
		</Location>
		<Size>
			<CX>198</CX>
			<CY>13</CY>
		</Size>
		<Style_VScroll>false</Style_VScroll>
		<Style_HScroll>false</Style_HScroll>
		<Style_Transparent>false</Style_Transparent>
		<Style_Checkbox>false</Style_Checkbox>
		<ButtonDrawTemplate>
			<Normal>RedIconBackground</Normal>
			<NormalDecal>BuffIcons</NormalDecal>
		</ButtonDrawTemplate>
		<DecalOffset>
			<X>0</X>
			<Y>0</Y>
		</DecalOffset>
		<DecalSize>
			<CX>12</CX>
			<CY>12</CY>
		</DecalSize>
	</Button>

	<Button item = "BW_Buff2_Button">
		<ScreenID>Buff2</ScreenID>
		<Font>2</Font>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>93</X>
			<Y>3</Y>
		</Location>
		<Size>
			<CX>198</CX>
			<CY>13</CY>
		</Size>
		<Style_VScroll>false</Style_VScroll>
		<Style_HScroll>false</Style_HScroll>
		<Style_Transparent>false</Style_Transparent>
		<Style_Checkbox>false</Style_Checkbox>
		<ButtonDrawTemplate>
			<Normal>RedIconBackground</Normal>
			<NormalDecal>BuffIcons</NormalDecal>
		</ButtonDrawTemplate>
		<DecalOffset>
			<X>0</X>
			<Y>0</Y>
		</DecalOffset>
		<DecalSize>
			<CX>12</CX>
			<CY>12</CY>
		</DecalSize>
	</Button>

	<Button item = "BW_Buff3_Button">
		<ScreenID>Buff3</ScreenID>
		<Font>2</Font>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>3</X>
			<Y>49</Y>
		</Location>
		<Size>
			<CX>198</CX>
			<CY>13</CY>
		</Size>
		<Style_VScroll>false</Style_VScroll>
		<Style_HScroll>false</Style_HScroll>
		<Style_Transparent>false</Style_Transparent>
		<Style_Checkbox>false</Style_Checkbox>
		<ButtonDrawTemplate>
			<Normal>BlueIconBackground</Normal>
			<NormalDecal>BuffIcons</NormalDecal>
		</ButtonDrawTemplate>
		<DecalOffset>
			<X>0</X>
			<Y>0</Y>
		</DecalOffset>
		<DecalSize>
			<CX>12</CX>
			<CY>12</CY>
		</DecalSize>
	</Button>

	<Button item = "BW_Buff4_Button">
		<ScreenID>Buff4</ScreenID>
		<Font>2</Font>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>48</X>
			<Y>49</Y>
		</Location>
		<Size>
			<CX>198</CX>
			<CY>13</CY>
		</Size>
		<Style_VScroll>false</Style_VScroll>
		<Style_HScroll>false</Style_HScroll>
		<Style_Transparent>false</Style_Transparent>
		<Style_Checkbox>false</Style_Checkbox>
		<ButtonDrawTemplate>
			<Normal>RedIconBackground</Normal>
			<NormalDecal>BuffIcons</NormalDecal>
		</ButtonDrawTemplate>
		<DecalOffset>
			<X>0</X>
			<Y>0</Y>
		</DecalOffset>
		<DecalSize>
			<CX>12</CX>
			<CY>12</CY>
		</DecalSize>
	</Button>

	<Button item = "BW_Buff5_Button">
		<ScreenID>Buff5</ScreenID>
		<Font>2</Font>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>93</X>
			<Y>49</Y>
		</Location>
		<Size>
			<CX>198</CX>
			<CY>13</CY>
		</Size>
		<Style_VScroll>false</Style_VScroll>
		<Style_HScroll>false</Style_HScroll>
		<Style_Transparent>false</Style_Transparent>
		<Style_Checkbox>false</Style_Checkbox>
		<ButtonDrawTemplate>
			<Normal>RedIconBackground</Normal>
			<NormalDecal>BuffIcons</NormalDecal>
		</ButtonDrawTemplate>
		<DecalOffset>
			<X>0</X>
			<Y>0</Y>
		</DecalOffset>
		<DecalSize>
			<CX>12</CX>
			<CY>12</CY>
		</DecalSize>
	</Button>

	<Button item = "BW_Buff6_Button">
		<ScreenID>Buff6</ScreenID>
		<Font>2</Font>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>3</X>
			<Y>95</Y>
		</Location>
		<Size>
			<CX>198</CX>
			<CY>13</CY>
		</Size>
		<Style_VScroll>false</Style_VScroll>
		<Style_HScroll>false</Style_HScroll>
		<Style_Transparent>false</Style_Transparent>
		<Style_Checkbox>false</Style_Checkbox>
		<ButtonDrawTemplate>
			<Normal>BlueIconBackground</Normal>
			<NormalDecal>BuffIcons</NormalDecal>
		</ButtonDrawTemplate>
		<DecalOffset>
			<X>0</X>
			<Y>0</Y>
		</DecalOffset>
		<DecalSize>
			<CX>12</CX>
			<CY>12</CY>
		</DecalSize>
	</Button>

	<Button item = "BW_Buff7_Button">
		<ScreenID>Buff7</ScreenID>
		<Font>2</Font>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>48</X>
			<Y>95</Y>
		</Location>
		<Size>
			<CX>198</CX>
			<CY>13</CY>
		</Size>
		<Style_VScroll>false</Style_VScroll>
		<Style_HScroll>false</Style_HScroll>
		<Style_Transparent>false</Style_Transparent>
		<Style_Checkbox>false</Style_Checkbox>
		<ButtonDrawTemplate>
			<Normal>RedIconBackground</Normal>
			<NormalDecal>BuffIcons</NormalDecal>
		</ButtonDrawTemplate>
		<DecalOffset>
			<X>0</X>
			<Y>0</Y>
		</DecalOffset>
		<DecalSize>
			<CX>12</CX>
			<CY>12</CY>
		</DecalSize>
	</Button>

	<Button item = "BW_Buff8_Button">
		<ScreenID>Buff8</ScreenID>
		<Font>2</Font>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>93</X>
			<Y>95</Y>
		</Location>
		<Size>
			<CX>198</CX>
			<CY>13</CY>
		</Size>
		<Style_VScroll>false</Style_VScroll>
		<Style_HScroll>false</Style_HScroll>
		<Style_Transparent>false</Style_Transparent>
		<Style_Checkbox>false</Style_Checkbox>
		<ButtonDrawTemplate>
			<Normal>RedIconBackground</Normal>
			<NormalDecal>BuffIcons</NormalDecal>
		</ButtonDrawTemplate>
		<DecalOffset>
			<X>0</X>
			<Y>0</Y>
		</DecalOffset>
		<DecalSize>
			<CX>12</CX>
			<CY>12</CY>
		</DecalSize>
	</Button>

	<Button item = "BW_Buff9_Button">
		<ScreenID>Buff9</ScreenID>
		<Font>2</Font>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>3</X>
			<Y>141</Y>
		</Location>
		<Size>
			<CX>198</CX>
			<CY>13</CY>
		</Size>
		<Style_VScroll>false</Style_VScroll>
		<Style_HScroll>false</Style_HScroll>
		<Style_Transparent>false</Style_Transparent>
		<Style_Checkbox>false</Style_Checkbox>
		<ButtonDrawTemplate>
			<Normal>BlueIconBackground</Normal>
			<NormalDecal>BuffIcons</NormalDecal>
		</ButtonDrawTemplate>
		<DecalOffset>
			<X>0</X>
			<Y>0</Y>
		</DecalOffset>
		<DecalSize>
			<CX>12</CX>
			<CY>12</CY>
		</DecalSize>
	</Button>

	<Button item = "BW_Buff10_Button">
		<ScreenID>Buff10</ScreenID>
		<Font>1</Font>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>48</X>
			<Y>141</Y>
		</Location>
		<Size>
			<CX>198</CX>
			<CY>13</CY>
		</Size>
		<Style_VScroll>false</Style_VScroll>
		<Style_HScroll>false</Style_HScroll>
		<Style_Transparent>false</Style_Transparent>
		<Style_Checkbox>false</Style_Checkbox>
		<ButtonDrawTemplate>
			<Normal>RedIconBackground</Normal>
			<NormalDecal>BuffIcons</NormalDecal>
		</ButtonDrawTemplate>
		<DecalOffset>
			<X>0</X>
			<Y>0</Y>
		</DecalOffset>
		<DecalSize>
			<CX>12</CX>
			<CY>12</CY>
		</DecalSize>
	</Button>

	<Button item = "BW_Buff11_Button">
		<ScreenID>Buff11</ScreenID>
		<Font>2</Font>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>93</X>
			<Y>141</Y>
		</Location>
		<Size>
			<CX>198</CX>
			<CY>13</CY>
		</Size>
		<Style_VScroll>false</Style_VScroll>
		<Style_HScroll>false</Style_HScroll>
		<Style_Transparent>false</Style_Transparent>
		<Style_Checkbox>false</Style_Checkbox>
		<ButtonDrawTemplate>
			<Normal>RedIconBackground</Normal>
			<NormalDecal>BuffIcons</NormalDecal>
		</ButtonDrawTemplate>
		<DecalOffset>
			<X>0</X>
			<Y>0</Y>
		</DecalOffset>
		<DecalSize>
			<CX>12</CX>
			<CY>12</CY>
		</DecalSize>
	</Button>

	<Button item = "BW_Buff12_Button">
		<ScreenID>Buff12</ScreenID>
		<Font>2</Font>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>3</X>
			<Y>187</Y>
		</Location>
		<Size>
			<CX>198</CX>
			<CY>13</CY>
		</Size>
		<Style_VScroll>false</Style_VScroll>
		<Style_HScroll>false</Style_HScroll>
		<Style_Transparent>false</Style_Transparent>
		<Style_Checkbox>false</Style_Checkbox>
		<ButtonDrawTemplate>
			<Normal>BlueIconBackground</Normal>
			<NormalDecal>BuffIcons</NormalDecal>
		</ButtonDrawTemplate>
		<DecalOffset>
			<X>0</X>
			<Y>0</Y>
		</DecalOffset>
		<DecalSize>
			<CX>12</CX>
			<CY>12</CY>
		</DecalSize>
	</Button>

	<Button item = "BW_Buff13_Button">
		<ScreenID>Buff13</ScreenID>
		<Font>2</Font>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>48</X>
			<Y>187</Y>
		</Location>
		<Size>
			<CX>198</CX>
			<CY>13</CY>
		</Size>
		<Style_VScroll>false</Style_VScroll>
		<Style_HScroll>false</Style_HScroll>
		<Style_Transparent>false</Style_Transparent>
		<Style_Checkbox>false</Style_Checkbox>
		<ButtonDrawTemplate>
			<Normal>RedIconBackground</Normal>
			<NormalDecal>BuffIcons</NormalDecal>
		</ButtonDrawTemplate>
		<DecalOffset>
			<X>0</X>
			<Y>0</Y>
		</DecalOffset>
		<DecalSize>
			<CX>12</CX>
			<CY>12</CY>
		</DecalSize>
	</Button>

	<Button item = "BW_Buff14_Button">
		<ScreenID>Buff14</ScreenID>
		<Font>2</Font>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>93</X>
			<Y>187</Y>
		</Location>
		<Size>
			<CX>198</CX>
			<CY>13</CY>
		</Size>
		<Style_VScroll>false</Style_VScroll>
		<Style_HScroll>false</Style_HScroll>
		<Style_Transparent>false</Style_Transparent>
		<Style_Checkbox>false</Style_Checkbox>
		<ButtonDrawTemplate>
			<Normal>RedIconBackground</Normal>
			<NormalDecal>BuffIcons</NormalDecal>
		</ButtonDrawTemplate>
		<DecalOffset>
			<X>0</X>
			<Y>0</Y>
		</DecalOffset>
		<DecalSize>
			<CX>12</CX>
			<CY>12</CY>
		</DecalSize>
	</Button>

	<Label item ="BW_Buff0">
		<ScreenID>Buff0Label</ScreenID>
		<EQType>9999</EQType>
		<Font>1</Font>
<TooltipReference>$if("$char(buff,1)"=="NULL","","$char(buff,1) $char(buff,1,durationsecs)")</TooltipReference>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>25</X>
			<Y>0</Y>
		</Location>
		<Size>
			<CX>344</CX>
			<CY>10</CY>
		</Size>
		<Text></Text>
		<TextColor>
				<R>255</R>
				<G>255</G>
				<B>255</B>
		</TextColor>
		<NoWrap>true</NoWrap>
		<AlignCenter>false</AlignCenter>
		<AlignRight>false</AlignRight>
	</Label>

	<Label item ="BW_Buff1">
		<ScreenID>Buff1Label</ScreenID>
		<EQType>9999</EQType>
		<Font>1</Font>
<TooltipReference>$if("$char(buff,2)"=="NULL","","$char(buff,2) $char(buff,2,durationsecs)")</TooltipReference>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>25</X>
			<Y>14</Y>
		</Location>
		<Size>
			<CX>344</CX>
			<CY>10</CY>
		</Size>
		<Text></Text>
		<TextColor>
				<R>255</R>
				<G>255</G>
				<B>255</B>
		</TextColor>
		<NoWrap>true</NoWrap>
		<AlignCenter>false</AlignCenter>
		<AlignRight>false</AlignRight>
	</Label>

	<Label item ="BW_Buff2">
		<ScreenID>Buff2Label</ScreenID>
		<EQType>9999</EQType>
		<Font>1</Font>
<TooltipReference>$if("$char(buff,3)"=="NULL","","$char(buff,3) $char(buff,3,durationsecs)")</TooltipReference>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>25</X>
			<Y>28</Y>
		</Location>
		<Size>
			<CX>344</CX>
			<CY>10</CY>
		</Size>
		<Text></Text>
		<TextColor>
				<R>255</R>
				<G>255</G>
				<B>255</B>
		</TextColor>
		<NoWrap>true</NoWrap>
		<AlignCenter>false</AlignCenter>
		<AlignRight>false</AlignRight>
	</Label>

	<Label item ="BW_Buff3">
		<ScreenID>Buff3Label</ScreenID>
		<EQType>9999</EQType>
		<Font>1</Font>
<TooltipReference>$if("$char(buff,4)"=="NULL","","$char(buff,4) $char(buff,4,durationsecs)")</TooltipReference>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>25</X>
			<Y>42</Y>
		</Location>
		<Size>
			<CX>344</CX>
			<CY>10</CY>
		</Size>
		<Text></Text>
		<TextColor>
				<R>255</R>
				<G>255</G>
				<B>255</B>
		</TextColor>
		<NoWrap>true</NoWrap>
		<AlignCenter>false</AlignCenter>
		<AlignRight>false</AlignRight>
	</Label>

	<Label item ="BW_Buff4">
		<ScreenID>Buff4Label</ScreenID>
		<EQType>9999</EQType>
		<Font>1</Font>
<TooltipReference>$if("$char(buff,5)"=="NULL","","$char(buff,5) $char(buff,5,durationsecs)")</TooltipReference>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>25</X>
			<Y>56</Y>
		</Location>
		<Size>
			<CX>344</CX>
			<CY>10</CY>
		</Size>
		<Text></Text>
		<TextColor>
				<R>255</R>
				<G>255</G>
				<B>255</B>
		</TextColor>
		<NoWrap>true</NoWrap>
		<AlignCenter>false</AlignCenter>
		<AlignRight>false</AlignRight>
	</Label>
	
	<Label item ="BW_Buff5">
		<ScreenID>Buff5Label</ScreenID>
		<EQType>9999</EQType>
		<Font>1</Font>
<TooltipReference>$if("$char(buff,6)"=="NULL","","$char(buff,6) $char(buff,6,durationsecs)")</TooltipReference>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>25</X>
			<Y>70</Y>
		</Location>
		<Size>
			<CX>344</CX>
			<CY>10</CY>
		</Size>
		<Text></Text>
		<TextColor>
				<R>255</R>
				<G>255</G>
				<B>255</B>
		</TextColor>
		<NoWrap>true</NoWrap>
		<AlignCenter>false</AlignCenter>
		<AlignRight>false</AlignRight>
	</Label>
	
	<Label item ="BW_Buff6">
		<ScreenID>Buff6Label</ScreenID>
		<EQType>9999</EQType>
		<Font>1</Font>
<TooltipReference>$if("$char(buff,7)"=="NULL","","$char(buff,7) $char(buff,7,durationsecs)")</TooltipReference>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>25</X>
			<Y>84</Y>
		</Location>
		<Size>
			<CX>344</CX>
			<CY>10</CY>
		</Size>
		<Text></Text>
		<TextColor>
				<R>255</R>
				<G>255</G>
				<B>255</B>
		</TextColor>
		<NoWrap>true</NoWrap>
		<AlignCenter>false</AlignCenter>
		<AlignRight>false</AlignRight>
	</Label>
	
	<Label item ="BW_Buff7">
		<ScreenID>Buff7Label</ScreenID>
		<EQType>9999</EQType>
		<Font>1</Font>
<TooltipReference>$if("$char(buff,8)"=="NULL","","$char(buff,8) $char(buff,8,durationsecs)")</TooltipReference>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>25</X>
			<Y>98</Y>
		</Location>
		<Size>
			<CX>344</CX>
			<CY>10</CY>
		</Size>
		<Text></Text>
		<TextColor>
				<R>255</R>
				<G>255</G>
				<B>255</B>
		</TextColor>
		<NoWrap>true</NoWrap>
		<AlignCenter>false</AlignCenter>
		<AlignRight>false</AlignRight>
	</Label>
	
	<Label item ="BW_Buff8">
		<ScreenID>Buff8Label</ScreenID>
		<EQType>9999</EQType>
		<Font>1</Font>
<TooltipReference>$if("$char(buff,9)"=="NULL","","$char(buff,9) $char(buff,9,durationsecs)")</TooltipReference>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>25</X>
			<Y>112</Y>
		</Location>
		<Size>
			<CX>344</CX>
			<CY>10</CY>
		</Size>
		<Text></Text>
		<TextColor>
				<R>255</R>
				<G>255</G>
				<B>255</B>
		</TextColor>
		<NoWrap>true</NoWrap>
		<AlignCenter>false</AlignCenter>
		<AlignRight>false</AlignRight>
	</Label>
	
	<Label item ="BW_Buff9">
		<ScreenID>Buff9Label</ScreenID>
		<EQType>9999</EQType>
		<Font>1</Font>
<TooltipReference>$if("$char(buff,10)"=="NULL","","$char(buff,10) $char(buff,10,durationsecs)")</TooltipReference>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>25</X>
			<Y>126</Y>
		</Location>
		<Size>
			<CX>344</CX>
			<CY>10</CY>
		</Size>
		<Text></Text>
		<TextColor>
				<R>255</R>
				<G>255</G>
				<B>255</B>
		</TextColor>
		<NoWrap>true</NoWrap>
		<AlignCenter>false</AlignCenter>
		<AlignRight>false</AlignRight>
	</Label>
	
	<Label item ="BW_Buff10">
		<ScreenID>Buff10Label</ScreenID>
		<EQType>9999</EQType>
		<Font>1</Font>
<TooltipReference>$if("$char(buff,11)"=="NULL","","$char(buff,11) $char(buff,11,durationsecs)")</TooltipReference>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>25</X>
			<Y>140</Y>
		</Location>
		<Size>
			<CX>344</CX>
			<CY>10</CY>
		</Size>
		<Text></Text>
		<TextColor>
				<R>255</R>
				<G>255</G>
				<B>255</B>
		</TextColor>
		<NoWrap>true</NoWrap>
		<AlignCenter>false</AlignCenter>
		<AlignRight>false</AlignRight>
	</Label>
	
	<Label item ="BW_Buff11">
		<ScreenID>Buff11Label</ScreenID>
		<EQType>9999</EQType>
		<Font>1</Font>
<TooltipReference>$if("$char(buff,12)"=="NULL","","$char(buff,12) $char(buff,12,durationsecs)")</TooltipReference>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>25</X>
			<Y>154</Y>
		</Location>
		<Size>
			<CX>344</CX>
			<CY>10</CY>
		</Size>
		<Text></Text>
		<TextColor>
				<R>255</R>
				<G>255</G>
				<B>255</B>
		</TextColor>
		<NoWrap>true</NoWrap>
		<AlignCenter>false</AlignCenter>
		<AlignRight>false</AlignRight>
	</Label>
	
	<Label item ="BW_Buff12">
		<ScreenID>Buff12Label</ScreenID>
		<EQType>9999</EQType>
		<Font>1</Font>
<TooltipReference>$if("$char(buff,13)"=="NULL","","$char(buff,13) $char(buff,13,durationsecs)")</TooltipReference>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>25</X>
			<Y>169</Y>
		</Location>
		<Size>
			<CX>344</CX>
			<CY>10</CY>
		</Size>
		<Text></Text>
		<TextColor>
				<R>255</R>
				<G>255</G>
				<B>255</B>
		</TextColor>
		<NoWrap>true</NoWrap>
		<AlignCenter>false</AlignCenter>
		<AlignRight>false</AlignRight>
	</Label>
	
	<Label item ="BW_Buff13">
		<ScreenID>Buff13Label</ScreenID>
		<EQType>9999</EQType>
		<Font>1</Font>
<TooltipReference>$if("$char(buff,14)"=="NULL","","$char(buff,14) $char(buff,14,durationsecs)")</TooltipReference>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>25</X>
			<Y>182</Y>
		</Location>
		<Size>
			<CX>344</CX>
			<CY>10</CY>
		</Size>
		<Text></Text>
		<TextColor>
				<R>255</R>
				<G>255</G>
				<B>255</B>
		</TextColor>
		<NoWrap>true</NoWrap>
		<AlignCenter>false</AlignCenter>
		<AlignRight>false</AlignRight>
	</Label>

	<Label item ="BW_Buff14">
		<ScreenID>Buff14Label</ScreenID>
		<EQType>9999</EQType>
		<Font>1</Font>
<TooltipReference>$if("$char(buff,15)"=="NULL","","$char(buff,15) $char(buff,15,durationsecs)")</TooltipReference>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>25</X>
			<Y>197</Y>
		</Location>
		<Size>
			<CX>344</CX>
			<CY>10</CY>
		</Size>
		<Text></Text>
		<TextColor>
				<R>255</R>
				<G>255</G>
				<B>255</B>
		</TextColor>
		<NoWrap>true</NoWrap>
		<AlignCenter>false</AlignCenter>
		<AlignRight>false</AlignRight>
	</Label>


	<Screen item = "BuffWindow">
		<Text></Text>
		<RelativePosition>false</RelativePosition>
		<Location>
			<X>496</X>
			<Y>230</Y>
		</Location>
		<Size>
			<CX>210</CX>
			<CY>218</CY>
		</Size>
		<Style_VScroll>false</Style_VScroll>
		<Style_HScroll>false</Style_HScroll>
		<Style_Transparent>true</Style_Transparent>
		<DrawTemplate>WDT_RoundedNoTitle</DrawTemplate>
		<Style_Titlebar>false</Style_Titlebar>
		<Style_Closebox>true</Style_Closebox>
		<Style_Minimizebox>false</Style_Minimizebox>
		<Style_Border>false</Style_Border>
		<Style_Sizable>false</Style_Sizable>
		<Pieces>BW_Buff0_Button</Pieces>
		<Pieces>BW_Buff1_Button</Pieces>
		<Pieces>BW_Buff2_Button</Pieces>
		<Pieces>BW_Buff3_Button</Pieces>
		<Pieces>BW_Buff4_Button</Pieces>
		<Pieces>BW_Buff5_Button</Pieces>
		<Pieces>BW_Buff6_Button</Pieces>
		<Pieces>BW_Buff7_Button</Pieces>
		<Pieces>BW_Buff8_Button</Pieces>
		<Pieces>BW_Buff9_Button</Pieces>
		<Pieces>BW_Buff10_Button</Pieces>
		<Pieces>BW_Buff11_Button</Pieces>
		<Pieces>BW_Buff12_Button</Pieces>
		<Pieces>BW_Buff13_Button</Pieces>
		<Pieces>BW_Buff14_Button</Pieces>
		<Pieces>BW_Buff0</Pieces>
		<Pieces>BW_Buff1</Pieces>
		<Pieces>BW_Buff2</Pieces>
		<Pieces>BW_Buff3</Pieces>
		<Pieces>BW_Buff4</Pieces>
		<Pieces>BW_Buff5</Pieces>
		<Pieces>BW_Buff6</Pieces>
		<Pieces>BW_Buff7</Pieces>
		<Pieces>BW_Buff8</Pieces>
		<Pieces>BW_Buff9</Pieces>
		<Pieces>BW_Buff10</Pieces>
		<Pieces>BW_Buff11</Pieces>
		<Pieces>BW_Buff12</Pieces>
		<Pieces>BW_Buff13</Pieces>
		<Pieces>BW_Buff14</Pieces>
	</Screen>
</XML>

And the buffs duration/level casting I got from the macro depot.. it's as follows.

Code: Select all

| Buffs.mac 
| List the buffs you have and the time left on them 

#Turbo 

Sub Main 
   /declare time_sec local 
   /declare time_min local 
   /declare time_hou local 
   /declare loop local 
   /for loop 1 to 15 
      /if "$char(buff,@loop,spellid)"!="NULL" { 

         /if $defined(Param0)==true /if "$char(buff,@loop,spellid)"!~"@Param0" /next loop 

         /varcalc time_sec $char(buff,@loop,duration)*6 

         /varcalc time_hou @time_sec\3600 
         /varcalc time_min @time_sec%3600\60 
         /varcalc time_sec @time_sec%60 

         /echo $char(buff,@loop,spellid) (Level $char(buff,@loop,level)) @time_hou hrs @time_min mins @time_sec secs remaining 
      } 
   /next loop 
/return
I was wondering if there was a way to combine the way that macro works, with the way my buffs are currently listed in the window, or not. :-\

Posted: Wed Nov 26, 2003 12:16 pm
by Elric
/bump.

I know it's only a problem with $calcs. It has to be. :-\

Posted: Thu Nov 27, 2003 2:30 pm
by J-Squared
What I want to do is list the buffs in my buff window, and put a duration onto them(other than seconds.) as well as a level at which they were cast. But I don't know how to do that from INSIDE the UI file.
I'm not the expert here to help you.. but since no one else has replyed yet I guess I can suggest what I did.

Download the top 2 UI files you see here in this forum FreQuency's or Teh_ish's work. They have both posted there UI files for download. Unzip em and look at there Buff xml file as an example. With the exception if it telling you what level the buff was cast (something I dont' think you can do) they both do what you want... ie Show how much time you have left in mins and seconds right next to your buff icons.

J

Posted: Thu Nov 27, 2003 4:35 pm
by || Napolion ||

Code: Select all

| Buffs.mac
| List the buffs you have and the time left on them

#Turbo

Sub Main
   /declare time_sec local
   /declare time_min local
   /declare time_hou local
   /declare loop local
   /for loop 1 to 15
      /if "$char(buff,@loop,spellid)"!="NULL" {
         /varset time_sec $char(buff,@loop,duration)
         /varcalc time_sec @time_sec*6
         /varcalc time_min $int(@time_sec/60)
         /varsub time_sec $calc(@time_min*60)
         /varcalc time_hou $int(@time_min/60)
         /varsub time_min $calc(@time_hou*60)
         /varset time_sec $int(@time_sec)
         /varset time_min $int(@time_min)
         /varset time_hou $int(@time_hou)
         /echo $char(buff,@loop,spellid) (Level $char(buff,@loop,level)) @time_hou hrs @time_min mins @time_sec secs remaining
      }
   /next loop
/return
This work I use it all the time

Posted: Fri Nov 28, 2003 1:17 am
by Elric
J-Squared, thanks for trying to help out. :-) I would do with just the time in hours and minutes rather than a mass of minutes.

Napolion, thanks for your help, too. But I wanted it to show up in my buff window, not as a macro, but as a labelid. :-)

Posted: Fri Nov 28, 2003 12:24 pm
by Guest
Ahh! ok I understand now. Actually.. I was trying to figure out how to do this exact thing a few days ago and felt I was close.. However SoE gave us a new exe right before my trip and I'm now out of town unable to really do anything but read and post till I get back.

I was working with the buff.xml file from FreQuency's as a base. I was also trying to get the timer display as hours and min rather then xxx mins and yy seconds.

I'm not there yet and I can't even start working on it again till I get back in a few days.. but this is where I was going.. perhaps we can work on it together.

I had decided the way to go was to make two tags per spell buff. One that $calcs it in hours only and then the other that $calcs it in mins and seconds as the others have been doing. Make the first one that calcs it in hours do so with an absolute value and have it display in the hour position and then have the 2nd calc display the vaule again in mins and seconds by subtracting the absoulte vaule from the first equation from the second and displaying the remaining mins and seconds in a 2nd tag right next to the hours displayed in the first.

That was/is my basic plan but I didn't get a chance to finish it before I left for the holidays. Give that a try and let me know. I wont' get another chance to look at it till next week.

J

Posted: Fri Nov 28, 2003 12:29 pm
by Lax
uhhh... I made a buff window with duration and posted it when this was first possible, why dont you just do what i did

Code: Select all

	<Label item ="BW_Buff0_Duration">
		<ScreenID>Buff0Duration</ScreenID>
		<EQType>9999</EQType>
                <TooltipReference>$char(buff,1,durationsecs)</TooltipReference>
		<Font>2</Font>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>23</X>
			<Y>3</Y>
		</Location>
		<Size>
			<CX>153</CX>
			<CY>14</CY>
		</Size>
		<Text></Text>
		<TextColor>
				<R>255</R>
				<G>255</G>
				<B>255</B>
		</TextColor>
		<NoWrap>true</NoWrap>
		<AlignCenter>false</AlignCenter>
		<AlignRight>false</AlignRight>
	</Label>
you dont need a macro, you dont need $calc, $char(buff,1,durationsecs) shows MM:SS ..

Posted: Fri Nov 28, 2003 2:05 pm
by Elric
Yeah. But I want something to show like HH:MM:SS ... IE: for KEI and other "more than an hour" buffs. So durationsecs works fine, but it's not what I want the labels to read as. Still trying to figure it out. Hehe.