Thread Tools Display Modes
Prev Previous Post   Next Post Next
04/15/14, 08:09 AM   #1
zireko
 
zireko's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 63
Help with my xml coding

This is my xml code so far. What I'm trying to do is have a box with a list of quests in it and later in my lua I want to make each quest clickable so that the text well turn to a dark gray and if they click it again it'll go back to the original color. I currently have just two quest in it. How I want it to look is like this example below.

A Pinch of Sugar
Cast Adrift

My question is if my code has errors and if so what do I need to do to fix them so far?

Lua Code:
  1. <GuiXml>
  2.     <Controls>
  3.         <TopLevelControl name="QuestMaster" mouseEnabled="true" movable="true">
  4.             <Dimensions x="300" y="400" />
  5.             <Anchor point="CENTER" />
  6.  
  7.             <OnUpdate>
  8.                 QuestMasterUpdate()
  9.             </OnUpdate>
  10.  
  11.             <OnMouseDown>
  12.                 QuestMasterReset()
  13.             </OnMouseDown>
  14.  
  15.             <Controls>
  16.                 <Backdrop name="$(parent)BG" inherits="ZO_ThinBackdrop" />
  17.                 <Label name="$(parent)" font="ZoFontAnnounceSmall" color="CFDCBD" wrapMode="ELLIPSIS" verticalAlignment="CENTER" text="A Pinch of Sugar">
  18.                 <Label name="$(parent)" font="ZoFontWindowSmall" color="CFDCBD" wrapMode="ELLIPSIS" verticalAlignment="CENTER" text="Cast Adrift">
  19.                     <AnchorFill />
  20.                 </Label>
  21.             </Controls>
  22.         </TopLevelControl>
  23.     </Controls>
  24. </GuiXml>
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » Help with my xml coding


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off