Help with modifying UI with new MQ2Datatypes

Forum for posting custom UIs, portions of UIs, and HUD stuff using MQ's enhancements.

Moderator: MacroQuest Developers

Goofmester1
a hill giant
a hill giant
Posts: 241
Joined: Thu Nov 06, 2003 4:26 am

Help with modifying UI with new MQ2Datatypes

Post by Goofmester1 » Fri Apr 02, 2004 8:26 am

Trying to edit Mavranger UI. The Buff Window durations is the problem I am having. I got the durations to work the problem is when there is no buff I get a Null Null. One for the spell name and one for the duration.
I tried putting an if infront of it and that keeps coming out as text in the buff label.

Code: Select all

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

<!-- Coded by: Mavarien Thunderspirit -->

<!-- 15 Buff Definitions -->
  <Button item="BW_Buff0_Button">
    <ScreenID>Buff0</ScreenID>
    <EQType>45</EQType>
    <Location>
      <X>742</X>
      <Y>0</Y>
    </Location>
    <Size>
      <CX>105</CX>
      <CY>22</CY>
    </Size>
    <ButtonDrawTemplate>
      <Normal>RedIconBackground</Normal>
      <NormalDecal>BuffIcons</NormalDecal>
    </ButtonDrawTemplate>
    <DecalOffset>
      <X>1</X>
      <Y>1</Y>
    </DecalOffset>
    <DecalSize>
      <CX>20</CX>
      <CY>20</CY>
    </DecalSize>
  </Button>

  <Button item="BW_Buff1_Button">
    <ScreenID>Buff1</ScreenID>
    <EQType>46</EQType>
    <Location>
      <X>742</X>
      <Y>31</Y>
    </Location>
    <Size>
      <CX>105</CX>
      <CY>22</CY>
    </Size>
    <ButtonDrawTemplate>
      <Normal>BlueIconBackground</Normal>
      <NormalDecal>BuffIcons</NormalDecal>
    </ButtonDrawTemplate>
    <DecalOffset>
      <X>1</X>
      <Y>1</Y>
    </DecalOffset>
    <DecalSize>
      <CX>20</CX>
      <CY>20</CY>
    </DecalSize>
  </Button>

  <Button item="BW_Buff2_Button">
    <ScreenID>Buff2</ScreenID>
    <EQType>47</EQType>
    <Location>
      <X>742</X>
      <Y>0</Y>
    </Location>
    <Size>
      <CX>105</CX>
      <CY>22</CY>
    </Size>
    <ButtonDrawTemplate>
      <Normal>RedIconBackground</Normal>
      <NormalDecal>BuffIcons</NormalDecal>
    </ButtonDrawTemplate>
    <DecalOffset>
      <X>1</X>
      <Y>1</Y>
    </DecalOffset>
    <DecalSize>
      <CX>20</CX>
      <CY>20</CY>
    </DecalSize>
  </Button>

  <Button item="BW_Buff3_Button">
    <ScreenID>Buff3</ScreenID>
    <EQType>48</EQType>
    <Location>
      <X>636</X>
      <Y>31</Y>
    </Location>
    <Size>
      <CX>105</CX>
      <CY>22</CY>
    </Size>
    <ButtonDrawTemplate>
      <Normal>BlueIconBackground</Normal>
      <NormalDecal>BuffIcons</NormalDecal>
    </ButtonDrawTemplate>
    <DecalOffset>
      <X>1</X>
      <Y>1</Y>
    </DecalOffset>
    <DecalSize>
      <CX>20</CX>
      <CY>20</CY>
    </DecalSize>
  </Button>

  <Button item="BW_Buff4_Button">
    <ScreenID>Buff4</ScreenID>
    <EQType>49</EQType>
    <Location>
      <X>530</X>
      <Y>0</Y>
    </Location>
    <Size>
      <CX>105</CX>
      <CY>22</CY>
    </Size>
    <ButtonDrawTemplate>
      <Normal>RedIconBackground</Normal>
      <NormalDecal>BuffIcons</NormalDecal>
    </ButtonDrawTemplate>
    <DecalOffset>
      <X>1</X>
      <Y>1</Y>
    </DecalOffset>
    <DecalSize>
      <CX>20</CX>
      <CY>20</CY>
    </DecalSize>
  </Button>

  <Button item="BW_Buff5_Button">
    <ScreenID>Buff5</ScreenID>
    <EQType>50</EQType>
    <Location>
      <X>530</X>
      <Y>31</Y>
    </Location>
    <Size>
      <CX>105</CX>
      <CY>22</CY>
    </Size>
    <ButtonDrawTemplate>
      <Normal>BlueIconBackground</Normal>
      <NormalDecal>BuffIcons</NormalDecal>
    </ButtonDrawTemplate>
    <DecalOffset>
      <X>1</X>
      <Y>1</Y>
    </DecalOffset>
    <DecalSize>
      <CX>20</CX>
      <CY>20</CY>
    </DecalSize>
  </Button>

  <Button item="BW_Buff6_Button">
    <ScreenID>Buff6</ScreenID>
    <EQType>51</EQType>
    <Location>
      <X>424</X>
      <Y>0</Y>
    </Location>
    <Size>
      <CX>105</CX>
      <CY>22</CY>
    </Size>
    <ButtonDrawTemplate>
      <Normal>RedIconBackground</Normal>
      <NormalDecal>BuffIcons</NormalDecal>
    </ButtonDrawTemplate>
    <DecalOffset>
      <X>1</X>
      <Y>1</Y>
    </DecalOffset>
    <DecalSize>
      <CX>20</CX>
      <CY>20</CY>
    </DecalSize>
  </Button>

  <Button item="BW_Buff7_Button">
    <ScreenID>Buff7</ScreenID>
    <EQType>52</EQType>
    <Location>
      <X>424</X>
      <Y>31</Y>
    </Location>
    <Size>
      <CX>105</CX>
      <CY>22</CY>
    </Size>
    <ButtonDrawTemplate>
      <Normal>BlueIconBackground</Normal>
      <NormalDecal>BuffIcons</NormalDecal>
    </ButtonDrawTemplate>
    <DecalOffset>
      <X>1</X>
      <Y>1</Y>
    </DecalOffset>
    <DecalSize>
      <CX>20</CX>
      <CY>20</CY>
    </DecalSize>
  </Button>

  <Button item="BW_Buff8_Button">
    <ScreenID>Buff8</ScreenID>
    <EQType>53</EQType>
    <Location>
      <X>318</X>
      <Y>0</Y>
    </Location>
    <Size>
      <CX>105</CX>
      <CY>22</CY>
    </Size>
    <ButtonDrawTemplate>
      <Normal>BlueIconBackground</Normal>
      <NormalDecal>BuffIcons</NormalDecal>
    </ButtonDrawTemplate>
    <DecalOffset>
      <X>1</X>
      <Y>1</Y>
    </DecalOffset>
    <DecalSize>
      <CX>20</CX>
      <CY>20</CY>
    </DecalSize>
  </Button>

  <Button item="BW_Buff9_Button">
    <ScreenID>Buff9</ScreenID>
    <EQType>54</EQType>
    <Location>
      <X>318</X>
      <Y>31</Y>
    </Location>
    <Size>
      <CX>105</CX>
      <CY>22</CY>
    </Size>
    <ButtonDrawTemplate>
      <Normal>RedIconBackground</Normal>
      <NormalDecal>BuffIcons</NormalDecal>
    </ButtonDrawTemplate>
    <DecalOffset>
      <X>1</X>
      <Y>1</Y>
    </DecalOffset>
    <DecalSize>
      <CX>20</CX>
      <CY>20</CY>
    </DecalSize>
  </Button>

  <Button item="BW_Buff10_Button">
    <ScreenID>Buff10</ScreenID>
    <EQType>55</EQType>
    <Location>
      <X>212</X>
      <Y>0</Y>
    </Location>
    <Size>
      <CX>105</CX>
      <CY>22</CY>
    </Size>
    <ButtonDrawTemplate>
      <Normal>BlueIconBackground</Normal>
      <NormalDecal>BuffIcons</NormalDecal>
    </ButtonDrawTemplate>
    <DecalOffset>
      <X>1</X>
      <Y>1</Y>
    </DecalOffset>
    <DecalSize>
      <CX>20</CX>
      <CY>20</CY>
    </DecalSize>
  </Button>

  <Button item="BW_Buff11_Button">
    <ScreenID>Buff11</ScreenID>
    <EQType>56</EQType>
    <Location>
      <X>212</X>
      <Y>31</Y>
    </Location>
    <Size>
      <CX>105</CX>
      <CY>23</CY>
    </Size>
    <ButtonDrawTemplate>
      <Normal>RedIconBackground</Normal>
      <NormalDecal>BuffIcons</NormalDecal>
    </ButtonDrawTemplate>
    <DecalOffset>
      <X>1</X>
      <Y>1</Y>
    </DecalOffset>
    <DecalSize>
      <CX>20</CX>
      <CY>20</CY>
    </DecalSize>
  </Button>

  <Button item="BW_Buff12_Button">
    <ScreenID>Buff12</ScreenID>
    <EQType>57</EQType>
    <Location>
      <X>106</X>
      <Y>0</Y>
    </Location>
    <Size>
      <CX>105</CX>
      <CY>22</CY>
    </Size>
    <ButtonDrawTemplate>
      <Normal>BlueIconBackground</Normal>
      <NormalDecal>BuffIcons</NormalDecal>
    </ButtonDrawTemplate>
    <DecalOffset>
      <X>1</X>
      <Y>1</Y>
    </DecalOffset>
    <DecalSize>
      <CX>20</CX>
      <CY>20</CY>
    </DecalSize>
  </Button>

  <Button item="BW_Buff13_Button">
    <ScreenID>Buff13</ScreenID>
    <EQType>58</EQType>
    <Location>
      <X>106</X>
      <Y>31</Y>
    </Location>
    <Size>
      <CX>105</CX>
      <CY>22</CY>
    </Size>
    <ButtonDrawTemplate>
      <Normal>RedIconBackground</Normal>
      <NormalDecal>BuffIcons</NormalDecal>
    </ButtonDrawTemplate>
    <DecalOffset>
      <X>1</X>
      <Y>1</Y>
    </DecalOffset>
    <DecalSize>
      <CX>20</CX>
      <CY>20</CY>
    </DecalSize>
  </Button>

  <Button item="BW_Buff14_Button">
    <ScreenID>Buff14</ScreenID>
    <EQType>59</EQType>
    <Location>
      <X>0</X>
      <Y>0</Y>
    </Location>
    <Size>
      <CX>105</CX>
      <CY>22</CY>
    </Size>
    <ButtonDrawTemplate>
      <Normal>BlueIconBackground</Normal>
      <NormalDecal>BuffIcons</NormalDecal>
    </ButtonDrawTemplate>
    <DecalOffset>
      <X>1</X>
      <Y>1</Y>
    </DecalOffset>
    <DecalSize>
      <CX>20</CX>
      <CY>20</CY>
    </DecalSize>
  </Button>

<!-- 15 Buff Label Definitions -->
  <Label item="BW_Buff0_Label">
    <ScreenID>BW_Buff0_Label</ScreenID>
<RelativePosition>true</RelativePosition>
<EQType>9999</EQType>
    <Font>1</Font>
<TooltipReference>${Me.Buff[1].Spell.Name} ${Me.Buff[1].Duration.Time}</TooltipReference>
    <Location>
      <X>451</X>
      <Y>0</Y>
    </Location>
    <Size>
      <CX>80</CX>
      <CY>25</CY>
    </Size>
    <TextColor>
      <R>255</R>
      <G>255</G>
      <B>0</B>
    </TextColor>
    <Text />
  </Label>

  <Label item="BW_Buff1_Label">
    <ScreenID>BW_Buff1_Label</ScreenID>
    <EQType>9999</EQType>
    <Font>1</Font>
<TooltipReference>${Me.Buff[2].Spell.Name} ${Me.Buff[2].Duration.Time}</TooltipReference>
    <Location>
      <X>451</X>
      <Y>23</Y>
    </Location>
    <Size>
      <CX>80</CX>
      <CY>25</CY>
    </Size>
    <TextColor>
      <R>255</R>
      <G>255</G>
      <B>0</B>
    </TextColor>
    <Text />
  </Label>

  <Label item="BW_Buff2_Label">
    <ScreenID>BW_Buff2_Label</ScreenID>
    <EQType>9999</EQType>
<TooltipReference>${Me.Buff[3].Spell.Name} ${Me.Buff[3].Duration.Time}</TooltipReference>
    <Font>1</Font>
    <Location>
      <X>451</X>
      <Y>46</Y>
    </Location>
    <Size>
      <CX>80</CX>
      <CY>25</CY>
    </Size>
    <TextColor>
      <R>255</R>
      <G>255</G>
      <B>0</B>
    </TextColor>
    <Text />
  </Label>

  <Label item="BW_Buff3_Label">
    <ScreenID>BW_Buff3_Label</ScreenID>
    <EQType>9999</EQType>
    <Font>1</Font>
<TooltipReference>${Me.Buff[4].Spell.Name} ${Me.Buff[4].Duration.Time}</TooltipReference>
    <Location>
      <X>344</X>
      <Y>0</Y>
    </Location>
    <Size>
      <CX>80</CX>
      <CY>25</CY>
    </Size>
    <TextColor>
      <R>255</R>
      <G>255</G>
      <B>0</B>
    </TextColor>
    <Text />
  </Label>

  <Label item="BW_Buff4_Label">
    <ScreenID>BW_Buff4_Label</ScreenID>
    <EQType>9999</EQType>
    <Font>1</Font>
<TooltipReference>${Me.Buff[5].Spell.Name} ${Me.Buff[5].Duration.Time}</TooltipReference>
    <Location>
      <X>344</X>
      <Y>23</Y>
    </Location>
    <Size>
      <CX>80</CX>
      <CY>25</CY>
    </Size>
    <TextColor>
      <R>255</R>
      <G>255</G>
      <B>0</B>
    </TextColor>
    <Text />
  </Label>

  <Label item="BW_Buff5_Label">
    <ScreenID>BW_Buff5_Label</ScreenID>
    <EQType>9999</EQType>
    <Font>1</Font>
<TooltipReference>${Me.Buff[6].Spell.Name} ${Me.Buff[6].Duration.Time}</TooltipReference>
    <Location>
      <X>344</X>
      <Y>46</Y>
    </Location>
    <Size>
      <CX>80</CX>
      <CY>25</CY>
    </Size>
    <TextColor>
      <R>255</R>
      <G>255</G>
      <B>0</B>
    </TextColor>
    <Text />
  </Label>

  <Label item="BW_Buff6_Label">
    <ScreenID>BW_Buff6_Label</ScreenID>
    <EQType>9999</EQType>
    <Font>1</Font>
<TooltipReference>${Me.Buff[7].Spell.Name} ${Me.Buff[7].Duration.Time}</TooltipReference>
    <Location>
      <X>238</X>
      <Y>0</Y>
    </Location>
    <Size>
      <CX>80</CX>
      <CY>25</CY>
    </Size>
    <TextColor>
      <R>255</R>
      <G>255</G>
      <B>0</B>
    </TextColor>
    <Text />
  </Label>

  <Label item="BW_Buff7_Label">
    <ScreenID>BW_Buff7_Label</ScreenID>
    <EQType>9999</EQType>
    <Font>1</Font>
<TooltipReference>${Me.Buff[8].Spell.Name} ${Me.Buff[8].Duration.Time}</TooltipReference>
    <Location>
      <X>238</X>
      <Y>23</Y>
    </Location>
    <Size>
      <CX>80</CX>
      <CY>25</CY>
    </Size>
    <TextColor>
      <R>255</R>
      <G>255</G>
      <B>0</B>
    </TextColor>
    <Text />
  </Label>

  <Label item="BW_Buff8_Label">
    <ScreenID>BW_Buff8_Label</ScreenID>
    <EQType>9999</EQType>
    <Font>1</Font>
<TooltipReference>${Me.Buff[9].Spell.Name} ${Me.Buff[9].Duration.Time}</TooltipReference>
    <Location>
      <X>238</X>
      <Y>46</Y>
    </Location>
    <Size>
      <CX>80</CX>
      <CY>25</CY>
    </Size>
    <TextColor>
      <R>255</R>
      <G>255</G>
      <B>0</B>
    </TextColor>
    <Text />
  </Label>

  <Label item="BW_Buff9_Label">
    <ScreenID>BW_Buff9_Label</ScreenID>
    <EQType>9999</EQType>
    <Font>1</Font>
<TooltipReference>${Me.Buff[10].Spell.Name} ${Me.Buff[10].Duration.Time}</TooltipReference>
    <Location>
      <X>132</X>
      <Y>0</Y>
    </Location>
    <Size>
      <CX>80</CX>
      <CY>25</CY>
    </Size>
    <TextColor>
      <R>255</R>
      <G>255</G>
      <B>0</B>
    </TextColor>
    <Text />
  </Label>

  <Label item="BW_Buff10_Label">
    <ScreenID>BW_Buff10_Label</ScreenID>
    <EQType>9999</EQType>
    <Font>1</Font>
<TooltipReference>${Me.Buff[11].Spell.Name} ${Me.Buff[11].Duration.Time}</TooltipReference>
    <Location>
      <X>132</X>
      <Y>23</Y>
    </Location>
    <Size>
      <CX>80</CX>
      <CY>25</CY>
    </Size>
    <TextColor>
      <R>255</R>
      <G>255</G>
      <B>0</B>
    </TextColor>
    <Text />
  </Label>

  <Label item="BW_Buff11_Label">
    <ScreenID>BW_Buff11_Label</ScreenID>
    <EQType>9999</EQType>
    <Font>1</Font>
<TooltipReference>${Me.Buff[12].Spell.Name} ${Me.Buff[12].Duration.Time}</TooltipReference>
    <Location>
      <X>132</X>
      <Y>46</Y>
    </Location>
    <Size>
      <CX>80</CX>
      <CY>25</CY>
    </Size>
    <TextColor>
      <R>255</R>
      <G>255</G>
      <B>0</B>
    </TextColor>
    <Text />
  </Label>

  <Label item="BW_Buff12_Label">
    <ScreenID>BW_Buff12_Label</ScreenID>
    <EQType>9999</EQType>
    <Font>1</Font>
<TooltipReference>${Me.Buff[13].Spell.Name} ${Me.Buff[13].Duration.Time}</TooltipReference>
    <Location>
      <X>25</X>
      <Y>0</Y>
    </Location>
    <Size>
      <CX>80</CX>
      <CY>25</CY>
    </Size>
    <TextColor>
      <R>255</R>
      <G>255</G>
      <B>0</B>
    </TextColor>
    <Text />
  </Label>

  <Label item="BW_Buff13_Label">
    <ScreenID>BW_Buff13_Label</ScreenID>
    <EQType>9999</EQType>
    <Font>1</Font>
<TooltipReference>${Me.Buff[14].Spell.Name} ${Me.Buff[14].Duration.Time}</TooltipReference>
    <Location>
      <X>25</X>
      <Y>23</Y>
    </Location>
    <Size>
      <CX>80</CX>
      <CY>25</CY>
    </Size>
    <TextColor>
      <R>255</R>
      <G>255</G>
      <B>0</B>
    </TextColor>
    <Text />
  </Label>

  <Label item="BW_Buff14_Label">
    <ScreenID>BW_Buff14_Label</ScreenID>
    <EQType>9999</EQType>
    <Font>1</Font>
<TooltipReference>${Me.Buff[15].Spell.Name} ${Me.Buff[15].Duration.Time}</TooltipReference>
    <Location>
      <X>25</X>
      <Y>46</Y>
    </Location>
    <Size>
      <CX>80</CX>
      <CY>25</CY>
    </Size>
    <TextColor>
      <R>255</R>
      <G>255</G>
      <B>0</B>
    </TextColor>
    <Text />
  </Label>

  <Screen item="BuffWindow">
    <Text>Buffs</Text>
    <RelativePosition>false</RelativePosition>
    <Location>
      <X>168</X>
      <Y>0</Y>
    </Location>
    <Size>
      <CX>540</CX>
      <CY>77</CY>
    </Size>
    <Style_Transparent>false</Style_Transparent>
    <DrawTemplate>WDT_RoundedNoTitle</DrawTemplate>
    <Style_Titlebar>false</Style_Titlebar>
    <Style_Closebox>false</Style_Closebox>
    <Style_Minimizebox>false</Style_Minimizebox>
    <Style_Border>true</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_Label</Pieces>
    <Pieces>BW_Buff1_Label</Pieces>
    <Pieces>BW_Buff2_Label</Pieces>
    <Pieces>BW_Buff3_Label</Pieces>
    <Pieces>BW_Buff4_Label</Pieces>
    <Pieces>BW_Buff5_Label</Pieces>
    <Pieces>BW_Buff6_Label</Pieces>
    <Pieces>BW_Buff7_Label</Pieces>
    <Pieces>BW_Buff8_Label</Pieces>
    <Pieces>BW_Buff9_Label</Pieces>
    <Pieces>BW_Buff10_Label</Pieces>
    <Pieces>BW_Buff11_Label</Pieces>
    <Pieces>BW_Buff12_Label</Pieces>
    <Pieces>BW_Buff13_Label</Pieces>
    <Pieces>BW_Buff14_Label</Pieces>
  </Screen>
</XML>

fryfrog
a hill giant
a hill giant
Posts: 271
Joined: Fri Jun 20, 2003 5:37 am

Post by fryfrog » Fri Apr 02, 2004 9:51 am

Why bother using macroquest spell names when you can just use normal EQ spell names? From there, all you need is the duration and that should be... ${Me.Buff[n].Duration.Time}

Goofmester1
a hill giant
a hill giant
Posts: 241
Joined: Thu Nov 06, 2003 4:26 am

Post by Goofmester1 » Fri Apr 02, 2004 11:40 am

If I dont add the MQ spell name all I get is the duration and no spell name.

fryfrog
a hill giant
a hill giant
Posts: 271
Joined: Fri Jun 20, 2003 5:37 am

Post by fryfrog » Fri Apr 02, 2004 6:49 pm

That is because you are not using the built in, eqtype for it. I guess it doesn't really matter which one you use, I just assumed that for data that EQ provides legitimatly... you may as well use it.