View Single Post
03/29/17, 01:55 PM   #1
fritzOSU03
 
fritzOSU03's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 19
Question Window with Dynamic Elements is Immovable

I have the following things (this is a simplified representation) in my xml file. I'm able to add the row template dynamically from my lua file. After the virtual elements are added, the window is frozen in place and cannot be moved. I've tried moving and duplicating the movable tag. I've also tried resizing the window in order to use the new, unoccupied window space. Any ideas why this window cannot be moved and what I need to do to make it movable? Thanks in advance.

xml Code:
  1. <GuiXml>
  2.     <Controls>
  3.         <TopLevelControl name="MY_GUI" mouseEnabled="true" movable="true" hidden="true" resizeHandleSize="2" >
  4.             <Settings />
  5.             <Controls>
  6.                 <Backdrop name="$(parent)_BG" inherits="ZO_DefaultBackdrop" >
  7.                     <AnchorFill />
  8.                     <TextureCoords left="0" right="1" top="0" bottom=".875" />
  9.                 </Backdrop>
  10.                 <Control name="$(parent)_Container" mouseEnabled="true">
  11.                     <Settings.../>
  12.                 </Control>
  13.             </Controls>
  14.         </TopLevelControl>
  15.  
  16.         <Control name="RowTemplate" virtual="true">
  17.             <Dimensions x="230" y="24" />
  18.             <Controls>
  19.                 <Texture name="$(parent)_BgImage">
  20.                     <Settings.../>
  21.                 </Texture>
  22.                 <Texture name="$(parent)_Icon">
  23.                     <Settings.../>
  24.                 </Texture>
  25.                 <Label name="$(parent)_Text1" font="ZoFontGameShadow">
  26.                     <Settings.../>
  27.                 </Label>
  28.                 <Label name="$(parent)_Text2" font="ZoFontGameShadow">
  29.                     <Settings.../>
  30.                 </Label>
  31.             </Controls>
  32.         </Control>
  33.     </Controls>
  34. </GuiXml>
  Reply With Quote