The parts about the concerned code :
Lua Code:
UI_Texture:ClearAnchors();
UI_Label:ClearAnchors();
UI_BG:ClearAnchors();
UI:ClearAnchors();
UI:SetAnchor( TOPLEFT, GuiRoot, TOPLEFT, defaults.x, defaults.y );
UI_BG:SetAnchor(TOPLEFT, UI, TOPLEFT, 0, 0);
UI_Texture:SetAnchor(TOPLEFT, UI_BG, TOPLEFT, 0, 0);
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>