<GuiXml> <Controls> <Button name="DynamicButton" virtual="true" text="Click"> <Controls> <Label name="$(parent)InnerLabel" text="Label" font="ZoFontGame"> </Label> </Controls> </Button> <Button name="OCDMenu" virtual="true"> <Dimensions x="60" y="20" /> <!-- <Anchor point="TOPLEFT" relativeTo="$(parent)TEXTX3" relativePoint="BOTTOMLEFT" /> --> <Controls> <Label name="$(parent)_Label" font="ZoFontGame" text="Click me #4"> <!-- <Anchor point="TOPLEFT" relativeTo="$(parent)TEXTX3" relativePoint="TOPLEFT" /> --> </Label> </Controls> <!-- Textures - mouseOverColor?--> <OnClicked>d("x")</OnClicked><!-- Work if You dont click exactly --> </Button> <TopLevelControl name="OCDDash" clampedToScreen="true" movable="true" mouseEnabled="true" hidden="true" resizeHandleSize="10"> <Dimensions x="750" y="800" /> <Anchor point="CENTER" /> <Controls> <Backdrop name="$(parent)BG" inherits="ZO_DefaultBackdrop"><DimensionConstraints minX="400" /></Backdrop> <Label name="$(parent)WindowTitle" font="ZoFontAnnounceMedium" text="|cffd700OCD Collector|r"> <Anchor point="TOPLEFT" relativeTo="$(parent)BG" relativePoint="TOPLEFT" offsetX="15" offsetY="15"/> </Label> <Texture name="$(parent)TopDivider" textureFile="/esoui/art/miscellaneous/horizontaldivider.dds" tier="HIGH"> <Dimensions x="800" y="4"/><!-- How to set 100%? --> <Anchor point="TOP" relativeTo="$(parent)BG" offsetY="38" /> </Texture> <Button name="$(parent)ButtonCloseAddon" inherits="ZO_ButtonBehaviorClickSound"> <Dimensions x="40" y="40" /> <Anchor point="TOPRIGHT" relativeTo="$(parent)BG" relativePoint="TOPRIGHT" offsetX="5" offsetY="10"/> <Textures normal="EsoUI/Art/Buttons/closebutton_up.dds" pressed="EsoUI/Art/Buttons/closebutton_down.dds" mouseOver="EsoUI/Art/Buttons/closebutton_mouseover.dds" disabled="EsoUI/Art/Buttons/closebutton_disabled.dds"/> <OnClicked>OCDDash:SetHidden(true)</OnClicked> </Button> <Backdrop name="$(parent)Left" edgeColor="FF0000" centerColor="6495ED" alpha="0.6" inherits="ZO_DefaultBackdrop"> <DimensionConstraints minX="200" maxX="250" /> <Anchor point="TOPLEFT" relativeTo="$(parent)" relativePoint="TOPLEFT" offsetY="45"/> <Anchor point="BOTTOMRIGHT" relativeTo="$(parent)" relativePoint="BOTTOM" /> </Backdrop> <!-- <Label name="$(parent)TestA" font="ZoFontAnnounceMedium" text="TESTA1"><Anchor point="TOPLEFT" relativeTo="$(parent)Left" relativePoint="TOPLEFT" /></Label> --> <!--<Label name="$(parent)TestB" font="ZoFontAnnounceMedium" text="TESTB1"><Anchor point="TOPLEFT" relativeTo="$(parent)A" relativePoint="BOTTOMLEFT" /></Label><!-- Not proper positioning --> <!--<Label name="$(parent)TestC" font="ZoFontAnnounceMedium" text="TESTC1"><Anchor point="TOPLEFT" relativeTo="$(parent)B" relativePoint="BOTTOMLEFT" /></Label><!-- Not proper positioning --> <Button name="$(parent)TEXTX"> <Dimensions x="20" y="20" /> <Anchor point="TOPLEFT" relativeTo="$(parent)Left" relativePoint="TOPLEFT" /> <Controls> <Label name="TESTXY" font="ZoFontGame" text="Click me."> <Anchor point="TOPLEFT" relativeTo="$(parent)Left" relativePoint="TOPLEFT" /> </Label> </Controls> <!-- Textures - mouseOverColor?--> <OnClicked> d('Clicked') OCDCollectorSpanCat() </OnClicked><!-- Work if You dont click exactly --> <!-- local last = "OCDDashLeft" for i = 1, 3 do d(i) d(last) local dynC = CreateControlFromVirtual("ABCDE", OCDDashLeft, "DynamicButton", i) dynC:SetText("TEST string #"..i) d(dynC) last = dynC dynC:SetText("TEST string #"..i) end if i==1 then dynC:SetAnchor(TOPLEFT, last, TOPLEFT, 0, 0) dynC:SetAnchor(TOPRIGHT, last, TOPRIGHT, 0, 0) else dynC:SetAnchor(TOPLEFT, last, BOTTOMLEFT, 0, 0) dynC:SetAnchor(TOPRIGHT, last, BOTTOMRIGHT, 0, 0) end --> </Button> <Button name="$(parent)TEXTX2"> <Dimensions x="20" y="20" /> <Anchor point="TOPLEFT" relativeTo="$(parent)TEXTX" relativePoint="BOTTOMLEFT" /> <Controls> <Label name="TESTXY2" font="ZoFontGame" text="Click me #2"> <Anchor point="TOPLEFT" relativeTo="$(parent)TEXTX" relativePoint="TOPLEFT" /> </Label> </Controls> <!-- Textures - mouseOverColor?--> <OnClicked>d('Clicked2222')</OnClicked><!-- Work if You dont click exactly --> </Button> <Button name="$(parent)TEXTX3"> <Dimensions x="20" y="20" /> <Anchor point="TOPLEFT" relativeTo="$(parent)TEXTX2" relativePoint="BOTTOMLEFT" /> <Controls> <Label name="TESTXY3" font="ZoFontGame" text="Click me #3"> <Anchor point="TOPLEFT" relativeTo="$(parent)TEXTX2" relativePoint="TOPLEFT" /> </Label> </Controls> <!-- Textures - mouseOverColor?--> <OnClicked>d('Clicked333')</OnClicked><!-- Work if You dont click exactly --> </Button> <Button name="$(parent)TEXTX4"> <Dimensions x="20" y="20" /> <Anchor point="TOPLEFT" relativeTo="$(parent)TEXTX3" relativePoint="BOTTOMLEFT" /> <Controls> <Label name="TESTXY4" font="ZoFontGame" text="Click me #4"> <Anchor point="TOPLEFT" relativeTo="$(parent)TEXTX3" relativePoint="TOPLEFT" /> </Label> </Controls> <!-- Textures - mouseOverColor?--> <OnClicked>d('Clicked444')</OnClicked><!-- Work if You dont click exactly --> </Button> <Backdrop name="$(parent)Right" edgeColor="00FF00" centerColor="95ED64" alpha="0.6" inherits="ZO_DefaultBackdrop"> <DimensionConstraints minX="200" /> <Anchor point="TOPLEFT" relativeTo="$(parent)Left" relativePoint="TOPRIGHT" /> <Anchor point="BOTTOMRIGHT" relativeTo="$(parent)" relativePoint="BOTTOMRIGHT" /> </Backdrop> </Controls> </TopLevelControl> </Controls> </GuiXml>