Thread Tools Display Modes
Prev Previous Post   Next Post Next
05/17/14, 01:57 PM   #1
Tar000un
 
Tar000un's Avatar
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 47
ZO xml newb

Hi,

i ve started to code an addon today, my first addon and dev in lua x)
And i ve few problems with the xml part.

Code:
<GuiXml>
    <Controls>
        <TopLevelControl name="MyAddOnUI" mouseEnabled="true" movable="true" clampedToScreen="true" >
		  <Anchor point="TOPLEFT" offsetX="10" offsetY="50" />

          <OnMoveStop>
			MyAddOn.OnMoveStop( self )
          </OnMoveStop>

          <OnUpdate>
            MyAddOn.Update()
          </OnUpdate>
          
          <Controls>
            <Backdrop name="$(parent)BG" inherits="ZO_DefaultBackdrop" centerColor="000000" alpha="0.8" >
              <AnchorFill />
              <Edge edgeSize="2" />
            </Backdrop>
            <Label name="$(parent)Window" font="ZoFontAnnounceSmall" 
				verticalAlignment="CENTER" text="MyAddOn" 
				horizontalAlignment="CENTER" alpha="0.85" >
              <AnchorFill />
            </Label>			
          </Controls>		  
          
        </TopLevelControl>
    </Controls>
</GuiXml>
First, i ve a problem with padding of the backdrop, where i tryed to use a <ResizeToFitPadding />, after the <AnchorFill />, but still with this horrible thing : http://i60.tinypic.com/33113bb.jpg

In a second step, i want to use a dds and modifiy the texture of the windows, but i didnt succed.

Moreover, can we draw a circle ? or would i draw a square then fill it with a circle dds ?

Last edited by Tar000un : 05/17/14 at 02:00 PM.
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » ZO xml newb


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