View Single Post
04/15/14, 09:23 AM   #3
zireko
 
zireko's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 63
Here is my updated code so far. And as for the QuestMasterUpdate & QuestMasterReset I'm not sure yet I want to make the text change colors to dark gray and if they click on it again turn back to the original color. I don't know exactly if I need to pull the update and reset out or if they can be used for the text color.

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.                     <AnchorFill />
  19.                 </Label>
  20.                 <Label name="$(parent)" font="ZoFontWindowSmall" color="CFDCBD" wrapMode="ELLIPSIS" verticalAlignment="CENTER" text="Cast Adrift">
  21.                     <AnchorFill />
  22.                 </Label>
  23.             </Controls>
  24.         </TopLevelControl>
  25.     </Controls>
  26. </GuiXml>
  Reply With Quote