View Single Post
09/21/23, 10:24 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,001
I'd read this tutorial about GUI (XML):
https://wiki.esoui.com/SimpleNotebookTutorial/part6

You need to define a TopLevelControl and then anchor your buton on it.
Without the TLC you cannot draw any controls directly to the GUI.
Think about it as a rectangle where you anchor yoru button and other conrols to, like a menu, but not visible (unless you add a backdrop texture as background).

Code:
<GuiXml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sir.insidi.at/or/schema/esoui.xsd">
	<Controls>
            <TopLevelControl name="MyTestTLC" hidden="false" movable="true">
               <Dimensions x="200" y="200" />
              <Anchor point="CENTER" />
              <Controls>  
                 You button control etc. here
              </Controls>
           </TopLevelControl> 
	</Controls>
</GuiXml>

If you want to add the button to any existing control, you need to anchor it to that control so it shows (e.g. at the inventory).

Last edited by Baertram : 09/21/23 at 10:34 AM.
  Reply With Quote