vanilla-wow-addons – Rev 1
?pathlinks?
<UI xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\FrameXML\UI.xsd">
<CheckButton name="DHUD_Check_Template" inherits="OptionsCheckButtonTemplate" hidden="false" virtual="true">
<HitRectInsets><AbsInset left="0" right="0" top="0" bottom="0"/></HitRectInsets>
<Size><AbsDimension x="25" y="25"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="DHUDOptionsFrame">
<Offset><AbsDimension x="0" y="0"/></Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
this.setting_name = string.gsub( this:GetName() , "DHUD_Check_", "");
getglobal( this:GetName().."Text"):SetText( " "..DHUDO_locale[this.setting_name] );
</OnLoad>
<OnClick>
DHUD:ToggleConfig(this.setting_name);
</OnClick>
<OnShow>
getglobal(this:GetName()):SetChecked(DHUD:GetConfig(this.setting_name));
</OnShow>
<OnEnter>
GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
GameTooltip:SetText(DHUDO_locale[this.setting_name.."_tooltip"], 1, 1, 1, 1);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<!-- Header Text -->
<Frame name="DHUD_HeaderTemplate" hidden="false" virtual="true">
<Layers>
<Layer level="ARTWORK">
<FontString name="$parentText" inherits="GameFontHighlight" text=""></FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
DHUDO_Header_OnLoad(0,0);
</OnLoad>
</Scripts>
</Frame>
<Button name="DHUD_TabButtonTemplate" virtual="true">
<Size>
<AbsDimension x="115" y="32"/>
</Size>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentLeftDisabled" file="Interface\AddOns\DHUD_Options\tab1">
<Size>
<AbsDimension x="20" y="50"/>
</Size>
<Anchors>
<Anchor point="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-25"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0" right="0.20" top="0" bottom="1.0"/>
</Texture>
<Texture name="$parentMiddleDisabled" file="Interface\AddOns\DHUD_Options\tab1">
<Size>
<AbsDimension x="32" y="50"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentLeftDisabled" relativePoint="RIGHT"/>
</Anchors>
<TexCoords left="0.20" right="0.80" top="0" bottom="1.0"/>
</Texture>
<Texture name="$parentRightDisabled" file="Interface\AddOns\DHUD_Options\tab1">
<Size>
<AbsDimension x="20" y="50"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentMiddleDisabled" relativePoint="RIGHT"/>
</Anchors>
<TexCoords left="0.80" right="1.0" top="0" bottom="1.0"/>
</Texture>
<Texture name="$parentLeft" file="Interface\AddOns\DHUD_Options\tab2">
<Size>
<AbsDimension x="20" y="50"/>
</Size>
<Anchors>
<Anchor point="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-25"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0" right="0.20" top="0" bottom="1.0"/>
</Texture>
<Texture name="$parentMiddle" file="Interface\AddOns\DHUD_Options\tab2">
<Size>
<AbsDimension x="32" y="50"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
</Anchors>
<TexCoords left="0.20" right="0.80" top="0" bottom="1.0"/>
</Texture>
<Texture name="$parentRight" file="Interface\AddOns\DHUD_Options\tab2">
<Size>
<AbsDimension x="20" y="50"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
</Anchors>
<TexCoords left="0.80" right="1.0" top="0" bottom="1.0"/>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnLoad>
PanelTemplates_TabResize(0);
getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 31);
</OnLoad>
</Scripts>
<NormalText name="$parentText" inherits="GameFontNormalSmall">
<Size>
<AbsDimension x="0" y="13"/>
</Size>
<Anchors>
<Anchor point="BOTTOM">
<Offset>
<AbsDimension x="0" y="5"/>
</Offset>
</Anchor>
</Anchors>
</NormalText>
<HighlightText name="$parentHighlightText" inherits="GameFontHighlightSmall">
<Size>
<AbsDimension x="0" y="13"/>
</Size>
<Anchors>
<Anchor point="BOTTOM">
<Offset>
<AbsDimension x="0" y="5"/>
</Offset>
</Anchor>
</Anchors>
</HighlightText>
<DisabledText name="$parentDisabledText" inherits="GameFontHighlightSmall">
<Size>
<AbsDimension x="0" y="13"/>
</Size>
<Anchors>
<Anchor point="BOTTOM">
<Offset>
<AbsDimension x="0" y="5"/>
</Offset>
</Anchor>
</Anchors>
</DisabledText>
<HighlightTexture name="$parentHighlightTexture" file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD">
<Size>
<AbsDimension x="4" y="38"/>
</Size>
<Anchors>
<Anchor point="BOTTOM">
<Offset>
<AbsDimension x="1" y="-8"/>
</Offset>
</Anchor>
</Anchors>
</HighlightTexture>
<Scripts>
<OnLoad>
this:SetText(DHUDO_locale[this:GetName()]);
getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 31);
PanelTemplates_TabResize(-15, nil, nil, 150);
</OnLoad>
<OnClick>
PanelTemplates_SetTab(DHUDOptionsFrame, this:GetID());
for i = 1, DHUDO_NUMTABS do
if i == this:GetID() then
getglobal("DHUD_Tab"..i):Show();
else
getglobal("DHUD_Tab"..i):Hide();
end
end
</OnClick>
</Scripts>
</Button>
<Button name="DHUD_DecButtonTemplate" virtual="true">
<Size>
<AbsDimension x="23" y="22"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="DHUDOptionsFrame" relativePoint="RIGHT">
<Offset>
<AbsDimension x="1" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
local parent = this:GetParent();
this.setting_name = string.gsub( parent:GetName() , "DHUD_Pos_", "");
this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
</OnLoad>
<OnClick>
if (arg1 == "RightButton") then
DHUD:SetConfig(this.setting_name, DHUD:GetConfig(this.setting_name) - 10);
else
DHUD:SetConfig(this.setting_name, DHUD:GetConfig(this.setting_name) - 1);
end
local parent = this:GetParent();
local text = getglobal(parent:GetName().."_Minitext");
text:SetText( DHUD:GetConfig(this.setting_name) );
DHUD:init();
</OnClick>
</Scripts>
<NormalTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Up"/>
<PushedTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Down"/>
<DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Disabled"/>
<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
</Button>
<Button name="DHUD_IncButtonTemplate" virtual="true">
<Size>
<AbsDimension x="23" y="22"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="DHUDOptionsFrame" relativePoint="RIGHT">
<Offset>
<AbsDimension x="-1" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
local parent = this:GetParent();
this.setting_name = string.gsub( parent:GetName() , "DHUD_Pos_", "");
this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
</OnLoad>
<OnClick>
if (arg1 == "RightButton") then
DHUD:SetConfig(this.setting_name, DHUD:GetConfig(this.setting_name) + 10);
else
DHUD:SetConfig(this.setting_name, DHUD:GetConfig(this.setting_name) + 1);
end
local parent = this:GetParent();
local text = getglobal(parent:GetName().."_Minitext");
text:SetText( DHUD:GetConfig(this.setting_name) );
DHUD:init();
</OnClick>
</Scripts>
<NormalTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Up"/>
<PushedTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Down"/>
<DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Disabled"/>
<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
</Button>
<EditBox name="DHUD_MiniTextTemplate" letters="5" historyLines="0" autoFocus="false" virtual="true">
<Size>
<AbsDimension x="40" y="20"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="DHUDOptionsFrame" relativePoint="RIGHT">
<Offset>
<AbsDimension x="3" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentLeft" file="Interface\Common\Common-Input-Border">
<Size>
<AbsDimension x="8" y="20"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="-5" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0" right="0.0625" top="0" bottom="0.625"/>
</Texture>
<Texture name="$parentRight" file="Interface\Common\Common-Input-Border">
<Size>
<AbsDimension x="8" y="20"/>
</Size>
<Anchors>
<Anchor point="RIGHT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0.9375" right="1.0" top="0" bottom="0.625"/>
</Texture>
<Texture name="$parentMiddle" file="Interface\Common\Common-Input-Border">
<Size>
<AbsDimension x="10" y="20"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
<Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT"/>
</Anchors>
<TexCoords left="0.0625" right="0.9375" top="0" bottom="0.625"/>
</Texture>
</Layer>
<Layer level="ARTWORK">
<FontString name="$parentText" inherits="GameFontNormalSmall" text="test text">
<Size>
<AbsDimension x="0" y="13"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="60" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
local parent = this:GetParent();
this.setting_name = string.gsub( parent:GetName() , "DHUD_Pos_", "");
getglobal( this:GetName().."Text"):SetText( " "..(DHUDO_locale[this.setting_name] or "No Locale") );
this:SetText( tonumber(DHUD:GetConfig(this.setting_name)) or 0 );
this.oldvalue = this:GetText();
</OnLoad>
<OnEnterPressed>
this:ClearFocus();
</OnEnterPressed>
<OnEscapePressed>
this:ClearFocus();
</OnEscapePressed>
<OnTextChanged>
if this:GetNumber() == this:GetText() then
this.oldvalue = this:GetText();
end
this:SetText( this:GetNumber() or 0 );
DHUD:SetConfig( this.setting_name, this:GetText() );
</OnTextChanged>
<OnEditFocusLost>
this:HighlightText(0, 0);
DHUD:init();
</OnEditFocusLost>
<OnEditFocusGained>
this:HighlightText();
</OnEditFocusGained>
</Scripts>
<FontString inherits="ChatFontNormal"/>
</EditBox>
<Frame name="DHUD_PosTemplate" virtual="true">
<Size>
<AbsDimension x="200" y="25"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="DHUDOptionsFrame" relativePoint="TOPLEFT">
<Offset><AbsDimension x="10" y="-70"/></Offset>
</Anchor>
</Anchors>
<Frames>
<Button name="$parent_DecButton" inherits="DHUD_DecButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT">
<Offset><AbsDimension x="0" y="0"/></Offset>
</Anchor>
</Anchors>
</Button>
<EditBox name="$parent_Minitext" inherits="DHUD_MiniTextTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT">
<Offset><AbsDimension x="23" y="0"/></Offset>
</Anchor>
</Anchors>
</EditBox>
<Button name="$parent_IncButton" inherits="DHUD_IncButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT">
<Offset><AbsDimension x="60" y="0"/></Offset>
</Anchor>
</Anchors>
</Button>
</Frames>
</Frame>
<!-- DROPDOWN TEMPLATE -->
<Frame name="DHUD_DropdownTemplate" inherits="UIDropDownMenuTemplate" virtual="true">
<Size>
<AbsDimension x="128" y="16"/>
</Size>
<Layers>
<Layer level="BACKGROUND">
<FontString name="$parentLabel" inherits="GameFontNormalSmall">
<Anchors>
<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="21" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
UIDropDownMenu_Initialize(this, DHUDO_DropDown_Initialize);
</OnLoad>
<OnEnter>
if ( this.tooltipText ) then
GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
GameTooltip:SetText(this.tooltipText, nil, nil, nil, nil, 1);
end
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Frame>
<Frame name="DHUD_Edit_Template" virtual="true">
<Size>
<AbsDimension x="330" y="46"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="DHUD_Header_textText" relativePoint="TOPLEFT">
<Offset><AbsDimension x="10" y="-25"/></Offset>
</Anchor>
</Anchors>
<Backdrop bgFile="Interface\ChatFrame\ChatFrameBackground" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true">
<BackgroundInsets>
<AbsInset left="3" right="22" top="6" bottom="6" />
</BackgroundInsets>
<TileSize>
<AbsValue val="16" />
</TileSize>
<EdgeSize>
<AbsValue val="9" />
</EdgeSize>
</Backdrop>
<Frames>
<ScrollFrame name="$parentScrollFrame" inherits="UIPanelScrollFrameTemplate">
<Size>
<AbsDimension x="295" y="33"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="8" y="-7"/>
</Offset>
</Anchor>
</Anchors>
<ScrollChild>
<EditBox name="$parentText" multiLine="true" letters="255" autoFocus="false" enableMouse="true">
<Size>
<AbsDimension x="295" y="33"/>
</Size>
<Scripts>
<OnTextChanged>
local scrollBar = getglobal(this:GetParent():GetName().."ScrollBar")
this:GetParent():UpdateScrollChildRect();
local min, max = scrollBar:GetMinMaxValues();
if ( max > 0 and (this.max ~= max) ) then
this.max = max;
scrollBar:SetValue(max);
end
</OnTextChanged>
<OnEscapePressed>
this:ClearFocus();
</OnEscapePressed>
<OnEditFocusGained>
DHUDHelpFrame:Show();
</OnEditFocusGained>
<OnEditFocusLost>
local name = string.gsub( this:GetParent():GetParent():GetName() , "DHUD_Edit_", "");
local dropdown = getglobal("DHUD_Edit_"..name.."_Selection");
DHUD:SetConfig( name , this:GetText() );
UIDropDownMenu_SetSelectedID( dropdown, 1 );
UIDropDownMenu_SetText( DHUDO_SELECTION[name]["table"][1] , dropdown);
for key, str in DHUDO_SELECTION[name]["values"] do
if DHUD:GetConfig(name) == str then
UIDropDownMenu_SetSelectedID( dropdown, key );
droptext = DHUDO_SELECTION[name]["table"][key];
UIDropDownMenu_SetText(droptext, dropdown);
end
end
DHUD:init();
DHUDO_updateTexts(name);
DHUDHelpFrame:Hide();
</OnEditFocusLost>
</Scripts>
<FontString font="Fonts\ARIALN.TTF">
<Color r="1" g="1" b="1"/>
<FontHeight>
<AbsValue val="12"/>
</FontHeight>
</FontString>
</EditBox>
</ScrollChild>
</ScrollFrame>
<Button name="$parentClicker">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="-80" y="-8"/>
</Offset>
</Anchor>
<Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT">
<Offset>
<AbsDimension x="-8" y="8"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
getglobal(this:GetParent():GetName().."ScrollFrameText"):SetFocus();
</OnClick>
</Scripts>
</Button>
<Frame name="$parent_Selection" inherits="DHUD_DropdownTemplate" hidden="false">
<Anchors>
<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="$parent">
<Offset>
<AbsDimension x="-10" y="-15"/>
</Offset>
</Anchor>
</Anchors>
</Frame>
</Frames>
<Scripts>
<OnLoad>
this:SetBackdropColor(.1,.1,.1,1);
this.setting_name = string.gsub( this:GetName() , "DHUD_Edit_", "");
</OnLoad>
<OnShow>
local droptext;
local dropdown = getglobal(this:GetName().."_Selection");
local label = getglobal(this:GetName().."_SelectionLabel");
label:SetText(DHUDO_locale[this.setting_name] or "no Locale");
local box = getglobal(this:GetName().."ScrollFrameText");
box:SetText( DHUD:GetConfig(this.setting_name) );
local tipptext = DHUDO_SELECTION[this.setting_name]["ttt"];
dropdown.tooltipText = tipptext;
UIDropDownMenu_SetSelectedID( dropdown, 1 );
UIDropDownMenu_SetText( DHUDO_SELECTION[this.setting_name]["table"][1] , dropdown);
for key, str in DHUDO_SELECTION[this.setting_name]["values"] do
if DHUD:GetConfig(this.setting_name) == str then
UIDropDownMenu_SetSelectedID( dropdown, key );
droptext = DHUDO_SELECTION[this.setting_name]["table"][key];
UIDropDownMenu_SetText(droptext, dropdown);
end
end
</OnShow>
</Scripts>
</Frame>
<!-- slider -->
<Slider name="DHUD_Slider_Template" inherits="OptionsSliderTemplate" hidden="false" virtual="true">
<Size><AbsDimension x="135" y="16"/></Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent">
<Offset><AbsDimension x="0" y="0"/></Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
DHUDO_FrameSlider_OnLoad( 0.1, 1, 0.1 );
</OnLoad>
<OnShow>
DHUDO_FrameSlider_OnShow( this.setting_name , (DHUDO_locale[this.setting_name] or "") );
</OnShow>
<OnValueChanged>
DHUDO_FrameSlider_OnValueChanged( this.setting_name, (DHUDO_locale[this.setting_name] or "") );
</OnValueChanged>
<OnEnter>
GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
GameTooltip:SetText((DHUDO_locale[this.setting_name.."_tooltip"] or ""), 1, 1, 1, 1);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Slider>
<CheckButton name="DHUD_RadioButtonTemplate" virtual="true">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Layers>
<Layer level="BACKGROUND">
<FontString name="$parentText" inherits="GameFontNormalSmall">
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT">
<Offset>
<AbsDimension x="5" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<NormalTexture file="Interface\Buttons\UI-RadioButton">
<TexCoords left="0" right="0.25" top="0" bottom="1"/>
</NormalTexture>
<HighlightTexture file="Interface\Buttons\UI-RadioButton" alphaMode="ADD">
<TexCoords left="0.5" right="0.75" top="0" bottom="1"/>
</HighlightTexture>
<CheckedTexture file="Interface\Buttons\UI-RadioButton">
<TexCoords left="0.25" right="0.5" top="0" bottom="1"/>
</CheckedTexture>
</CheckButton>
<Frame name="DHUD_Colorbox_Template" virtual="true">
<Size>
<AbsDimension x="360" y="20"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
<Offset><AbsDimension x="110" y="-25"/></Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<FontString name="$parentText" inherits="GameFontNormalSmall" justifyH="LEFT" text="Player Health">
<Size>
<AbsDimension x="150" y="16"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativePoint="LEFT">
<Offset><AbsDimension x="-100" y="0"/></Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<Button name="$parent1">
<Size>
<AbsDimension x="20" y="20"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
<Offset><AbsDimension x="0" y="0"/></Offset>
</Anchor>
</Anchors>
<Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border">
<EdgeSize>
<AbsValue val="8"/>
</EdgeSize>
</Backdrop>
<Layers>
<Layer level="ARTWORK">
<Texture name="$parentTexture">
<Size><AbsDimension y="15" x="15"/></Size>
<Anchors><Anchor point="CENTER"></Anchor></Anchors>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnClick>
DHUDO_ColorPicker_OnClick(1);
</OnClick>
</Scripts>
<HighlightTexture file="Interface\Buttons\CheckButtonHilight" alphaMode="ADD"></HighlightTexture>
</Button>
<Button name="$parent2">
<Size>
<AbsDimension x="20" y="20"/>
</Size>
<Anchors>
<Anchor point="TOP" relativeTo="$parent" relativePoint="TOP">
<Offset><AbsDimension x="0" y="0"/></Offset>
</Anchor>
</Anchors>
<Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border">
<EdgeSize>
<AbsValue val="8"/>
</EdgeSize>
</Backdrop>
<Layers>
<Layer level="ARTWORK">
<Texture name="$parentTexture">
<Size><AbsDimension y="15" x="15"/></Size>
<Anchors><Anchor point="CENTER"></Anchor></Anchors>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnClick>
DHUDO_ColorPicker_OnClick(2);
</OnClick>
</Scripts>
<HighlightTexture file="Interface\Buttons\CheckButtonHilight" alphaMode="ADD"></HighlightTexture>
</Button>
<Button name="$parent3">
<Size>
<AbsDimension x="20" y="20"/>
</Size>
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT">
<Offset><AbsDimension x="0" y="0"/></Offset>
</Anchor>
</Anchors>
<Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border">
<EdgeSize>
<AbsValue val="8"/>
</EdgeSize>
</Backdrop>
<Layers>
<Layer level="ARTWORK">
<Texture name="$parentTexture">
<Size><AbsDimension y="15" x="15"/></Size>
<Anchors><Anchor point="CENTER"></Anchor></Anchors>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnClick>
DHUDO_ColorPicker_OnClick(3);
</OnClick>
</Scripts>
<HighlightTexture file="Interface\Buttons\CheckButtonHilight" alphaMode="ADD"></HighlightTexture>
</Button>
<Frame name="$parentG1">
<Size>
<AbsDimension x="50" y="10"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parent1" relativePoint="RIGHT">
<Offset><AbsDimension x="0" y="0"/></Offset>
</Anchor>
<Anchor point="RIGHT" relativeTo="$parent2" relativePoint="LEFT">
<Offset><AbsDimension x="0" y="0"/></Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentTexture" file="Interface\ChatFrame\ChatFrameBackground"/>
</Layer>
</Layers>
</Frame>
<Frame name="$parentG2">
<Size>
<AbsDimension x="50" y="10"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parent2" relativePoint="RIGHT">
<Offset><AbsDimension x="0" y="0"/></Offset>
</Anchor>
<Anchor point="RIGHT" relativeTo="$parent3" relativePoint="LEFT">
<Offset><AbsDimension x="0" y="0"/></Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentTexture" file="Interface\ChatFrame\ChatFrameBackground"/>
</Layer>
</Layers>
</Frame>
</Frames>
<Scripts>
<OnLoad>
this.setting_name = string.gsub( this:GetName() , "DHUD_Colorbox_", "");
getglobal( this:GetName().."Text"):SetText( " "..(DHUDO_locale[this.setting_name] or this.setting_name) );
</OnLoad>
<OnShow>
DHUDO_changeG(this.setting_name);
</OnShow>
</Scripts>
</Frame>
</UI>
Generated by GNU Enscript 1.6.5.90.