View Single Post
05/22/14, 07:18 AM   #6
Tar000un
 
Tar000un's Avatar
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 47
The parts about the concerned code :

Lua Code:
  1. UI_Texture:ClearAnchors();
  2. UI_Label:ClearAnchors();
  3. UI_BG:ClearAnchors();
  4. UI:ClearAnchors();
  5.  
  6. UI:SetAnchor( TOPLEFT, GuiRoot, TOPLEFT, defaults.x, defaults.y );
  7. UI_BG:SetAnchor(TOPLEFT, UI, TOPLEFT, 0, 0);
  8. UI_Texture:SetAnchor(TOPLEFT, UI_BG, TOPLEFT, 0, 0);
  9. UI_Label:SetAnchor(BOTTOM, UI_BG, BOTTOM, 0, 0);



The XML:
Code:
<Controls>
	<Backdrop name="$(parent)_BGcompassTiny" 
			inherits="ZO_CenterlessBackdrop" edgeColor="000000" 
			centerColor="000000" alpha="0">
		<AnchorFill />
	</Backdrop>
	<Texture name="$(parent)_TextureCompassTiny" />
	<Label name="$(parent)_LabelCompassTiny" 
		verticalAlignment="BOTTOM" horizontalAlignment="CENTER" 
		text="Label" alpha="1" 
	/>
</Controls>
  Reply With Quote