<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">
<Script file="CharacterSelect.lua"/>
<Button name="CharSelectMoveButtonTemplate" motionScriptsWhileDisabled="true" virtual="true" hidden="true">
<Size x="24" y="24"/>
<!-- insets to stop a flickering bug when mousing right on the edge -->
<HitRectInsets>
<AbsInset left="1" right="1" top="1" bottom="1"/>
</HitRectInsets>
<Scripts>
<OnMouseDown>
if ( self:IsEnabled() ) then
self.normalTexture:SetPoint("CENTER", 1, -1);
self.highlightTexture:SetPoint("CENTER", 1, -1);
end
</OnMouseDown>
<OnMouseUp>
self.normalTexture:SetPoint("CENTER", 0, 0);
self.highlightTexture:SetPoint("CENTER", 0, 0);
</OnMouseUp>
<OnEnter>
self:GetParent():LockHighlight();
</OnEnter>
<OnLeave>
self:GetParent():UnlockHighlight();
</OnLeave>
</Scripts>
</Button>
<Button name="CharSelectCharacterButtonTemplate" virtual="true" hidden="true">
<Size x="256" y="70"/>
<HitRectInsets>
<AbsInset left="-10" right="30" top="0" bottom="15"/>
</HitRectInsets>
<Layers>
<Layer level="ARTWORK">
<Texture file="Interface\Glues\CharacterSelect\Glue-CharacterSelect-Highlight" alphaMode="ADD" parentKey="selection" hidden="true">
<Size x="256" y="74"/>
<Anchors>
<Anchor point="TOPLEFT" x="-20" y="8"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<Frames>
<Frame name="$parentButtonText" setAllPoints="true" parentKey="buttonText">
<Layers>
<Layer level="BORDER">
<FontString name="$parentName" inherits="GlueFontNormal" justifyH="LEFT" parentKey="name">
<Anchors>
<Anchor point="TOPLEFT" x="0" y="-5"/>
</Anchors>
</FontString>
<FontString name="$parentInfo" inherits="GlueFontHighlightSmall" justifyH="LEFT">
<Size x="217" y="12"/>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentName" relativePoint="BOTTOMLEFT" x="0" y="-1"/>
</Anchors>
</FontString>
<FontString name="$parentLocation" inherits="GlueFontDisableSmall" justifyH="LEFT">
<Size x="217" y="16"/>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentInfo" relativePoint="BOTTOMLEFT" x="0" y="-1"/>
</Anchors>
</FontString>
</Layer>
</Layers>
</Frame>
<Button name="$parentMoveUp" parentKey="upButton" inherits="CharSelectMoveButtonTemplate">
<Anchors>
<Anchor point="TOPRIGHT" x="-35" y="-4"/>
</Anchors>
<NormalTexture file="Interface\Glues\CharacterSelect\Glue-Char-Up" parentKey="normalTexture">
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</NormalTexture>
<HighlightTexture file="Interface\Glues\CharacterSelect\Glue-Char-Up-Glow" parentKey="highlightTexture">
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</HighlightTexture>
<Scripts>
<OnClick>
PlaySound("igMainMenuOptionCheckBoxOn");
local index = self:GetParent().index;
MoveCharacter(index, index - 1);
</OnClick>
</Scripts>
</Button>
<Button name="$parentMoveDown" parentKey="downButton" inherits="CharSelectMoveButtonTemplate">
<Anchors>
<Anchor point="BOTTOMRIGHT" x="-35" y="18"/>
</Anchors>
<NormalTexture file="Interface\Glues\CharacterSelect\Glue-Char-Down" parentKey="normalTexture">
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</NormalTexture>
<HighlightTexture file="Interface\Glues\CharacterSelect\Glue-Char-Down-Glow" parentKey="highlightTexture">
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</HighlightTexture>
<Scripts>
<OnClick>
PlaySound("igMainMenuOptionCheckBoxOn");
local index = self:GetParent().index;
MoveCharacter(index, index + 1);
</OnClick>
</Scripts>
</Button>
</Frames>
<Scripts>
<OnLoad>
self:RegisterForDrag("LeftButton");
</OnLoad>
<OnClick>
CharacterSelectButton_OnClick(self);
</OnClick>
<OnDoubleClick>
CharacterSelectButton_OnDoubleClick(self);
</OnDoubleClick>
<OnDragStart>
CharacterSelectButton_OnDragStart(self);
</OnDragStart>
<OnDragStop>
CharacterSelectButton_OnDragStop(self);
</OnDragStop>
<OnMouseDown>
CharacterSelect.pressDownButton = self;
CharacterSelect.pressDownTime = 0;
</OnMouseDown>
<OnMouseUp>
CharacterSelectButton_OnDragStop(self);
</OnMouseUp>
<OnEnter>
if ( self.selection:IsShown() ) then
CharacterSelectButton_ShowMoveButtons(self);
end
</OnEnter>
<OnLeave>
if ( self.upButton:IsShown() and not (self.upButton:IsMouseOver() or self.downButton:IsMouseOver()) ) then
self.upButton:Hide();
self.downButton:Hide();
end
</OnLeave>
</Scripts>
<HighlightTexture file="Interface\Glues\CharacterSelect\Glue-CharacterSelect-Hover" alphaMode="ADD">
<Size x="256" y="74"/>
<Anchors>
<Anchor point="TOPLEFT" x="-20" y="8"/>
</Anchors>
</HighlightTexture>
<NormalFont style="GlueFontNormal"/>
<HighlightFont style="GlueFontHighlight"/>
</Button>
<Button name="CharSelectPaidServiceTemplate" virtual="true" hidden="true" motionScriptsWhileDisabled="true">
<Size x="64" y="64"/>
<Scripts>
<OnClick>
CharacterSelect_PaidServiceOnClick(self, button, down, self.serviceType);
</OnClick>
<OnEnter>
GlueTooltip:SetOwner(self);
if ( self:IsEnabled() ) then
GlueTooltip:SetText(self.tooltip, 1.0, 1.0, 1.0);
else
GlueTooltip:SetText(self.disabledTooltip, 1.0, 1.0, 1.0);
end
</OnEnter>
<OnLeave>
GlueTooltip:Hide();
</OnLeave>
</Scripts>
<NormalTexture file="Interface\Buttons\UI-PaidCharacterCustomization-Button" parentKey="texture">
<TexCoords left="0" right=".5" top="0" bottom=".5"/>
</NormalTexture>
<HighlightTexture file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD">
<Size x="46" y="46"/>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</HighlightTexture>
</Button>
<Frame name="UpgradeFrameBorderedTemplate" virtual="true">
<Layers>
<Layer level="ARTWORK" textureSubLevel="1">
<Texture name="$parentBorderTopLeft" file="Interface\Glues\AccountUpgrade\golden-main">
<Size x="35" y="41"/>
<Anchors>
<Anchor point="TOPLEFT" x="-15" y="15"/>
</Anchors>
<TexCoords left="0.00390625" right="0.14062500" top="0.33984375" bottom="0.50000000"/>
</Texture>
<Texture name="$parentBorderTopRight" file="Interface\Glues\AccountUpgrade\golden-main">
<Size x="35" y="41"/>
<Anchors>
<Anchor point="TOPRIGHT" x="15" y="15"/>
</Anchors>
<TexCoords left="0.00390625" right="0.14062500" top="0.00390625" bottom="0.16406250"/>
</Texture>
<Texture name="$parentBorderBottomLeft" file="Interface\Glues\AccountUpgrade\golden-main">
<Size x="35" y="41"/>
<Anchors>
<Anchor point="BOTTOMLEFT" x="-15" y="-15"/>
</Anchors>
<TexCoords left="0.00390625" right="0.14062500" top="0.50781250" bottom="0.66796875"/>
</Texture>
<Texture name="$parentBorderBottomRight" file="Interface\Glues\AccountUpgrade\golden-main">
<Size x="35" y="41"/>
<Anchors>
<Anchor point="BOTTOMRIGHT" x="15" y="-15"/>
</Anchors>
<TexCoords left="0.00390625" right="0.14062500" top="0.17187500" bottom="0.33203125"/>
</Texture>
<Texture name="$parentBorderBottom" file="Interface\Glues\AccountUpgrade\golden-h" horizTile="true">
<Size x="128" y="32"/>
<Anchors>
<Anchor point="BOTTOMLEFT" relativeTo="$parentBorderBottomLeft" relativePoint="BOTTOMRIGHT" x="0" y="-4"/>
<Anchor point="BOTTOMRIGHT" relativeTo="$parentBorderBottomRight" relativePoint="BOTTOMLEFT" x="0" y="-4"/>
</Anchors>
</Texture>
<Texture name="$parentBorderTop" file="Interface\Glues\AccountUpgrade\golden-h" horizTile="true">
<Size x="128" y="32"/>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentBorderTopLeft" relativePoint="TOPRIGHT" x="0" y="4"/>
<Anchor point="TOPRIGHT" relativeTo="$parentBorderTopRight" relativePoint="TOPLEFT" x="0" y="4"/>
</Anchors>
<TexCoords left="0.0" right="1.0" top="1.0" bottom="0.0"/>
</Texture>
<Texture name="$parentBorderLeft" file="Interface\Glues\AccountUpgrade\golden-v" vertTile="true">
<Size x="32" y="128"/>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentBorderTopLeft" relativePoint="BOTTOMLEFT" x="-1" y="0"/>
<Anchor point="BOTTOMLEFT" relativeTo="$parentBorderBottomLeft" relativePoint="TOPLEFT" x="-1" y="0"/>
</Anchors>
</Texture>
<Texture name="$parentBorderRight" file="Interface\Glues\AccountUpgrade\golden-v" vertTile="true">
<Size x="32" y="128"/>
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="$parentBorderTopRight" relativePoint="BOTTOMRIGHT" x="1" y="0"/>
<Anchor point="BOTTOMRIGHT" relativeTo="$parentBorderBottomRight" relativePoint="TOPRIGHT" x="1" y="0"/>
</Anchors>
<TexCoords left="1.0" right="0.0" top="0.0" bottom="1.0"/>
</Texture>
</Layer>
</Layers>
</Frame>
<Frame name="UpgradeFrameFeatureTemplate" virtual="true">
<Size x="195" y="50"/>
<Layers>
<Layer level="OVERLAY">
<Texture name="$parentIconFrame" file="Interface\AchievementFrame\UI-Achievement-IconFrame">
<Size x="50" y="50"/>
<Anchors>
<Anchor point="TOPLEFT"/>
</Anchors>
<TexCoords left="0" right="0.5625" top="0" bottom="0.5625"/>
</Texture>
</Layer>
<Layer level="ARTWORK">
<FontString name="$parentText" inherits="GlueFontNormalSmall" parentKey="text" justifyH="LEFT" justifyV="MIDDLE" text="Heal the land ravaged by the evil dragon Deathwing!">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentIconFrame" relativePoint="TOPRIGHT" x="0" y="0"/>
<Anchor point="BOTTOMRIGHT"/>
</Anchors>
</FontString>
<Texture name="$parentIcon" parentKey="icon">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentIconFrame" relativePoint="TOPLEFT" x="5" y="-5"/>
<Anchor point="BOTTOMRIGHT" relativeTo="$parentIconFrame" relativePoint="BOTTOMRIGHT" x="-5" y="5"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnLoad>
local parent = self:GetParent();
if ( not parent.featureFrames ) then
parent.featureFrames = {};
end
tinsert(parent.featureFrames, self);
</OnLoad>
</Scripts>
</Frame>
<ModelFFX name="CharacterSelect" toplevel="true" parent="GlueParent" setAllPoints="true" enableKeyboard="true" hidden="true">
<Frames>
<Frame name="CharacterSelectUI" setAllPoints="true" enableMouse="true">
<Layers>
<Layer level="ARTWORK">
<FontString name="CharSelectCharacterName" inherits="GlueFontNormalHuge">
<Anchors>
<Anchor point="BOTTOM" x="0" y="100"/>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<Frame name="LogoHoist" frameStrata="HIGH">
<Size x="1" y="1"/>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="0" y="0"/>
</Anchors>
<Layers>
<Layer level="OVERLAY">
<Texture name="CharacterSelectLogo">
<Size x="256" y="128"/>
<Anchors>
<Anchor point="TOPLEFT" x="3" y="-7"/>
</Anchors>
</Texture>
</Layer>
</Layers>
</Frame>
<Button name="CharSelectAccountUpgradeButton" inherits="GlueButtonTemplate" text="UPGRADE">
<Size x="203" y="72"/>
<Anchors>
<Anchor point="TOP" relativeTo="CharacterSelectLogo" relativePoint="BOTTOM" x="0" y="-10"/>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentChains1" file="Interface\Glues\AccountUpgrade\golden-main">
<Size x="20" y="62"/>
<Anchors>
<Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="20" y="-15"/>
</Anchors>
<TexCoords left="0.148" right="0.227" top="0.508" bottom="0.777"/>
</Texture>
<Texture name="$parentChains2" file="Interface\Glues\AccountUpgrade\golden-main">
<Size x="20" y="62"/>
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT" x="-20" y="-15"/>
</Anchors>
<TexCoords left="0.148" right="0.227" top="0.508" bottom="0.777"/>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Texture name="$parentBorder" file="Interface\Glues\AccountUpgrade\golden-main">
<Size x="208" y="72"/>
<Anchors>
<Anchor point="CENTER" x="-2" y="3"/>
</Anchors>
<TexCoords left="0.14843750" right="0.96093750" top="0.00390625" bottom="0.28515625"/>
</Texture>
</Layer>
</Layers>
<Frames>
<Button name="$parentExpandCollapseButton" parentKey="expandCollapseButton">
<Size x="32" y="32"/>
<Anchors>
<Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT" x="-31" y="2"/>
</Anchors>
<Layers>
<Layer level="OVERLAY">
<Texture name="$parentIconFrame" file="Interface\AchievementFrame\UI-Achievement-IconFrame">
<Size x="32" y="32"/>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
<TexCoords left="0" right="0.5625" top="0" bottom="0.5625"/>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnClick>
PlaySound("igMainMenuOptionCheckBoxOn");
AccountUpgradePanel_ToggleExpandState();
</OnClick>
</Scripts>
<NormalTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Up"/>
<PushedTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Down"/>
<DisabledTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Disabled"/>
<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
</Button>
</Frames>
<Scripts>
<OnLoad>
self.isExpanded = GetCVarBool("expandUpgradePanel");
self:RegisterEvent("ACCOUNT_DATA_INITIALIZED");
</OnLoad>
<OnEvent>
if ( event == "ACCOUNT_DATA_INITIALIZED" ) then
if ( IsTrialAccount() ) then
self.isExpanded = true;
self.expandCollapseButton:Disable();
else
self.expandCollapseButton:Enable();
end
AccountUpgradePanel_Update(self.isExpanded);
end
</OnEvent>
<OnClick>
UpgradeAccount();
</OnClick>
</Scripts>
</Button>
<Frame name="CharSelectAccountUpgradeMiniPanel" inherits="UpgradeFrameBorderedTemplate">
<Size x="200" y="100"/>
<Anchors>
<Anchor point="TOP" relativeTo="CharSelectAccountUpgradeButton" relativePoint="BOTTOM" x="0" y="15"/>
</Anchors>
<Layers>
<Layer level="BACKGROUND" textureSubLevel="-1">
<Texture name="$parentBG" setAllPoints="true">
<Color r="0.0" g="0.0" b="0.0"/>
</Texture>
</Layer>
<Layer level="ARTWORK">
<Texture name="$parentBanner" parentKey="banner" file="Interface\Glues\AccountUpgrade\banners">
<Size x="198" y="138"/>
<Anchors>
<Anchor point="TOP" relativeTo="$parent" relativePoint="TOP" x="0" y="0"/>
</Anchors>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Texture name="$parentUpgradeLogo" parentKey="logo">
<Size x="128" y="64"/>
<Anchors>
<Anchor point="CENTER" relativeTo="$parent" relativePoint="BOTTOM" x="0" y="0"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnLoad>
self:SetFrameLevel(CharSelectAccountUpgradeButton:GetFrameLevel() - 1);
</OnLoad>
</Scripts>
</Frame>
<Frame name="CharSelectAccountUpgradePanel" inherits="UpgradeFrameBorderedTemplate">
<Size x="200" y="250"/>
<Anchors>
<Anchor point="TOP" relativeTo="CharSelectAccountUpgradeButton" relativePoint="BOTTOM" x="0" y="-40"/>
</Anchors>
<Layers>
<Layer level="BACKGROUND" textureSubLevel="-1">
<Texture name="$parentChains1" file="Interface\Glues\AccountUpgrade\golden-main">
<Size x="20" y="62"/>
<Anchors>
<Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="18" y="-10"/>
</Anchors>
<TexCoords left="0.148" right="0.227" top="0.293" bottom="0.508"/>
</Texture>
<Texture name="$parentChains2" file="Interface\Glues\AccountUpgrade\golden-main">
<Size x="20" y="62"/>
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT" x="-18" y="-10"/>
</Anchors>
<TexCoords left="0.148" right="0.227" top="0.293" bottom="0.508"/>
</Texture>
<Texture name="$parentBG" setAllPoints="true">
<Color r="0.0" g="0.0" b="0.0" a="0.8"/>
</Texture>
</Layer>
<Layer level="ARTWORK">
<Texture name="$parentBanner" parentKey="banner" file="Interface\Glues\AccountUpgrade\banners">
<Size x="198" y="138"/>
<Anchors>
<Anchor point="TOP" relativeTo="$parent" relativePoint="TOP" x="0" y="0"/>
</Anchors>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Texture name="$parentUpgradeLogo" parentKey="logo">
<Size x="128" y="64"/>
<Anchors>
<Anchor point="CENTER" relativeTo="$parent" relativePoint="TOP" x="0" y="10"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<Frames>
<Frame name="$parentFeature1" inherits="UpgradeFrameFeatureTemplate">
<Anchors>
<Anchor point="TOPLEFT" x="-5" y="-90"/>
</Anchors>
</Frame>
</Frames>
</Frame>
<Button name="CharSelectEnterWorldButton" inherits="GlueButtonTemplate" text="ENTER_WORLD">
<Size>
<AbsDimension x="200" y="60"/>
</Size>
<Anchors>
<Anchor point="BOTTOM" x="0" y="30"/>
</Anchors>
<Scripts>
<OnClick>
CharacterSelect_EnterWorld();
</OnClick>
<OnUpdate>
CharacterSelect_DeathKnightSwap(self);
</OnUpdate>
</Scripts>
</Button>
<Button name="CharacterSelectRotateLeft">
<Size x="50" y="50"/>
<Anchors>
<Anchor point="TOP" relativeTo="CharSelectEnterWorldButton" relativePoint="BOTTOM" x="-15" y="19"/>
</Anchors>
<HitRectInsets>
<AbsInset left="13" right="13" top="10" bottom="13"/>
</HitRectInsets>
<Scripts>
<OnLoad>
self:RegisterForClicks("LeftButtonDown", "LeftButtonUp");
</OnLoad>
<OnClick>
PlaySound("igInventoryRotateCharacter");
</OnClick>
<OnUpdate>
CharacterSelectRotateLeft_OnUpdate(self);
</OnUpdate>
</Scripts>
<NormalTexture file="Interface\Glues\CharacterCreate\UI-RotationRight-Big-Up">
<TexCoords left="1.0" right="0" top="0" bottom="1.0"/>
</NormalTexture>
<PushedTexture file="Interface\Glues\CharacterCreate\UI-RotationRight-Big-Down">
<TexCoords left="1.0" right="0" top="0" bottom="1.0"/>
</PushedTexture>
<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD">
<Size x="30" y="30"/>
<Anchors>
<Anchor point="CENTER" x="0" y="0"/>
</Anchors>
</HighlightTexture>
</Button>
<Button name="CharacterSelectRotateRight">
<Size x="50" y="50"/>
<Anchors>
<Anchor point="LEFT" relativeTo="CharacterSelectRotateLeft" relativePoint="RIGHT" x="-19" y="0"/>
</Anchors>
<HitRectInsets>
<AbsInset left="13" right="13" top="10" bottom="13"/>
</HitRectInsets>
<Scripts>
<OnLoad>
self:RegisterForClicks("LeftButtonDown", "LeftButtonUp");
</OnLoad>
<OnClick>
PlaySound("igInventoryRotateCharacter");
</OnClick>
<OnUpdate>
CharacterSelectRotateRight_OnUpdate(self);
</OnUpdate>
</Scripts>
<NormalTexture file="Interface\Glues\CharacterCreate\UI-RotationRight-Big-Up"/>
<PushedTexture file="Interface\Glues\CharacterCreate\UI-RotationRight-Big-Down"/>
<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD">
<Size x="30" y="30"/>
<Anchors>
<Anchor point="CENTER" x="0" y="0"/>
</Anchors>
</HighlightTexture>
</Button>
<Button name="CharacterSelectBackButton" inherits="GlueButtonSmallTemplate" text="BACK">
<Size x="100" y="35"/>
<Anchors>
<Anchor point="BOTTOMRIGHT" x="-2" y="10"/>
</Anchors>
<Scripts>
<OnClick>
CharacterSelect_Exit();
</OnClick>
<OnUpdate>
CharacterSelect_DeathKnightSwap(self);
</OnUpdate>
</Scripts>
</Button>
<Button name="CharacterSelectAddonsButton" inherits="GlueButtonSmallTemplate" hidden="true" text="ADDONS">
<Size x="150" y="35"/>
<Anchors>
<Anchor point="BOTTOMLEFT" x="30" y="25"/>
</Anchors>
<Layers>
<Layer level="OVERLAY">
<Texture name="$parentGlow" file="Interface\Glues\Common\Glue-Panel-Button-Glow" hidden="true" alphaMode="ADD">
<TexCoords left="0" right="0.578125" top="0" bottom="0.75"/>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnClick>
PlaySound("gsCharacterSelectionDelCharacter");
AddonList:Show();
</OnClick>
<OnUpdate>
GlueButtonMaster_OnUpdate(self, elapsed);
CharacterSelect_DeathKnightSwap(self);
</OnUpdate>
</Scripts>
</Button>
<Button name="CharacterSelectRealmSplitButton" inherits="GlueButtonTemplate" hidden="true" text="SERVER_SPLIT_BUTTON">
<Size x="150" y="55"/>
<Anchors>
<Anchor point="TOP" relativeTo="CharacterSelectLogo" relativePoint="BOTTOM" x="0" y="-5"/>
</Anchors>
<Layers>
<Layer level="OVERLAY">
<Texture name="$parentGlow" file="Interface\Glues\Common\Glue-Panel-Button-Glow" hidden="false" alphaMode="ADD">
<TexCoords left="0" right="0.578125" top="0" bottom="0.75"/>
</Texture>
</Layer>
<Layer level="BACKGROUND">
<FontString name="RealmSplitCurrentChoice" inherits="GlueFontNormal" justifyH="CENTER">
<Size x="256" y="0"/>
<Anchors>
<Anchor point="TOP" relativePoint="BOTTOM" x="0" y="0"/>
</Anchors>
</FontString>
<FontString name="RealmSplitPending" inherits="GlueFontNormal" justifyH="CENTER" text="SERVER_SPLIT_PENDING">
<Size x="256" y="0"/>
<Anchors>
<Anchor point="TOP" relativeTo="RealmSplitCurrentChoice" relativePoint="BOTTOM" x="0" y="-10"/>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnClick>
SERVER_SPLIT_SHOW_DIALOG = true;
</OnClick>
<OnUpdate>
GlueButtonMaster_OnUpdate(self, elapsed);
</OnUpdate>
</Scripts>
<NormalFont style="GlueFontHighlight"/>
</Button>
<Button name="CharacterSelectDeleteButton" inherits="GlueButtonSmallTemplate" text="DELETE_CHARACTER">
<Size x="165" y="35"/>
<Anchors>
<Anchor point="RIGHT" relativeTo="CharacterSelectBackButton" relativePoint="LEFT" x="0" y="0"/>
</Anchors>
<Scripts>
<OnClick>
CharacterSelect_Delete();
</OnClick>
<OnUpdate>
CharacterSelect_DeathKnightSwap(self);
</OnUpdate>
</Scripts>
</Button>
<Frame name="CharacterSelectCharacterFrame">
<Size x="260" y="710"/>
<Anchors>
<Anchor point="TOPRIGHT" x="-5" y="-15"/>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<FontString name="CharSelectRealmName" inherits="GlueFontDisableLarge">
<Size x="1" y="13"/>
<Anchors>
<Anchor point="TOP" x="0" y="-10"/>
<Anchor point="LEFT" x="8" y="0"/>
<Anchor point="RIGHT" x="-8" y="0"/>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<Slider name="$parentScrollBar" frameStrata="DIALOG" parentKey="scrollBar" inherits="GlueScrollBarTemplate" hidden="true">
<Anchors>
<Anchor point="TOPRIGHT" x="-6" y="-20"/>
<Anchor point="BOTTOMRIGHT" x="-6" y="24"/>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture>
<Anchors>
<Anchor point="TOPLEFT" x="-2" y="0"/>
<Anchor point="BOTTOMRIGHT" x="-1" y="0"/>
</Anchors>
<Color r="0" g="0" b="0"/>
</Texture>
</Layer>
<Layer level="BORDER">
<Texture file="Interface\Glues\CharacterCreate\Frame-Sides">
<Size x="16" y="0"/>
<Anchors>
<Anchor point="TOPLEFT" x="-11" y="15"/>
<Anchor point="BOTTOMLEFT" x="-11" y="-15"/>
</Anchors>
<TexCoords left="0.5" right="1" top="0" bottom="1"/>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnLoad>
self:SetValueStep(1);
CharacterSelectCharacterFrameScrollBarScrollUpButton:SetPoint("BOTTOM", self, "TOP", 0, -3);
CharacterSelectCharacterFrameScrollBarScrollDownButton:SetPoint("TOP", self, "BOTTOM", 0, 3);
</OnLoad>
<OnValueChanged>
GlueScrollFrame_OnVerticalScroll(self:GetParent(), value);
CharacterSelect_ScrollList(self, value);
</OnValueChanged>
</Scripts>
</Slider>
<Button name="CharSelectChangeRealmButton" inherits="GlueButtonSmallTemplate" text="CHANGE_REALM">
<Size x="135" y="33"/>
<Anchors>
<Anchor point="TOP" relativeTo="CharSelectRealmName" relativePoint="BOTTOM" x="0" y="0"/>
</Anchors>
<Scripts>
<OnLoad>
self:SetWidth(self:GetTextWidth() + 50);
</OnLoad>
<OnClick>
CharacterSelect_ChangeRealm();
</OnClick>
<OnUpdate>
CharacterSelect_DeathKnightSwap(self);
</OnUpdate>
</Scripts>
</Button>
<Button name="CharSelectCharacterButton1" inherits="CharSelectCharacterButtonTemplate" id="1">
<Anchors>
<Anchor point="TOP" x="0" y="-65"/>
<Anchor point="LEFT" x="24" y="0"/>
</Anchors>
</Button>
<Button name="CharSelectCharacterButton2" inherits="CharSelectCharacterButtonTemplate" id="2">
<Anchors>
<Anchor point="TOP" relativeTo="CharSelectCharacterButton1" relativePoint="BOTTOM" x="0" y="13"/>
<Anchor point="LEFT" x="24" y="0"/>
</Anchors>
</Button>
<Button name="CharSelectCharacterButton3" inherits="CharSelectCharacterButtonTemplate" id="3">
<Anchors>
<Anchor point="TOP" relativeTo="CharSelectCharacterButton2" relativePoint="BOTTOM" x="0" y="13"/>
<Anchor point="LEFT" x="24" y="0"/>
</Anchors>
</Button>
<Button name="CharSelectCharacterButton4" inherits="CharSelectCharacterButtonTemplate" id="4">
<Anchors>
<Anchor point="TOP" relativeTo="CharSelectCharacterButton3" relativePoint="BOTTOM" x="0" y="13"/>
<Anchor point="LEFT" x="24" y="0"/>
</Anchors>
</Button>
<Button name="CharSelectCharacterButton5" inherits="CharSelectCharacterButtonTemplate" id="5">
<Anchors>
<Anchor point="TOP" relativeTo="CharSelectCharacterButton4" relativePoint="BOTTOM" x="0" y="13"/>
<Anchor point="LEFT" x="24" y="0"/>
</Anchors>
</Button>
<Button name="CharSelectCharacterButton6" inherits="CharSelectCharacterButtonTemplate" id="6">
<Anchors>
<Anchor point="TOP" relativeTo="CharSelectCharacterButton5" relativePoint="BOTTOM" x="0" y="13"/>
<Anchor point="LEFT" x="24" y="0"/>
</Anchors>
</Button>
<Button name="CharSelectCharacterButton7" inherits="CharSelectCharacterButtonTemplate" id="7">
<Anchors>
<Anchor point="TOP" relativeTo="CharSelectCharacterButton6" relativePoint="BOTTOM" x="0" y="13"/>
<Anchor point="LEFT" x="24" y="0"/>
</Anchors>
</Button>
<Button name="CharSelectCharacterButton8" inherits="CharSelectCharacterButtonTemplate" id="8">
<Anchors>
<Anchor point="TOP" relativeTo="CharSelectCharacterButton7" relativePoint="BOTTOM" x="0" y="13"/>
<Anchor point="LEFT" x="24" y="0"/>
</Anchors>
</Button>
<Button name="CharSelectCharacterButton9" inherits="CharSelectCharacterButtonTemplate" id="9">
<Anchors>
<Anchor point="TOP" relativeTo="CharSelectCharacterButton8" relativePoint="BOTTOM" x="0" y="13"/>
<Anchor point="LEFT" x="24" y="0"/>
</Anchors>
</Button>
<Button name="CharSelectCharacterButton10" inherits="CharSelectCharacterButtonTemplate" id="10">
<Anchors>
<Anchor point="TOP" relativeTo="CharSelectCharacterButton9" relativePoint="BOTTOM" x="0" y="13"/>
<Anchor point="LEFT" x="24" y="0"/>
</Anchors>
</Button>
<Button name="CharSelectCharacterButton11" inherits="CharSelectCharacterButtonTemplate" id="11">
<Anchors>
<Anchor point="TOP" relativeTo="CharSelectCharacterButton10" relativePoint="BOTTOM" x="0" y="13"/>
<Anchor point="LEFT" x="24" y="0"/>
</Anchors>
</Button>
<Button name="CharSelectCreateCharacterButton" inherits="GlueButtonSmallTemplate" hidden="true" text="CREATE_NEW_CHARACTER">
<Size x="200" y="45"/>
<Anchors>
<Anchor point="BOTTOM" x="0" y="15"/>
</Anchors>
<Scripts>
<OnLoad>
self:SetWidth(self:GetTextWidth() + 50);
</OnLoad>
<OnClick>
CharacterSelect_SelectCharacter(self:GetID());
</OnClick>
<OnUpdate>
CharacterSelect_DeathKnightSwap(self);
</OnUpdate>
</Scripts>
</Button>
<Button name="CharSelectPaidService1" inherits="CharSelectPaidServiceTemplate" id="1">
<Anchors>
<Anchor point="TOP" relativeTo="CharSelectCharacterButton1" relativePoint="TOP" x="0" y="6"/>
<Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT" x="9" y="0"/>
</Anchors>
</Button>
<Button name="CharSelectPaidService2" inherits="CharSelectPaidServiceTemplate" id="2">
<Anchors>
<Anchor point="TOP" relativeTo="CharSelectCharacterButton2" relativePoint="TOP" x="0" y="6"/>
<Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT" x="9" y="0"/>
</Anchors>
</Button>
<Button name="CharSelectPaidService3" inherits="CharSelectPaidServiceTemplate" id="3">
<Anchors>
<Anchor point="TOP" relativeTo="CharSelectCharacterButton3" relativePoint="TOP" x="0" y="6"/>
<Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT" x="9" y="0"/>
</Anchors>
</Button>
<Button name="CharSelectPaidService4" inherits="CharSelectPaidServiceTemplate" id="4">
<Anchors>
<Anchor point="TOP" relativeTo="CharSelectCharacterButton4" relativePoint="TOP" x="0" y="6"/>
<Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT" x="9" y="0"/>
</Anchors>
</Button>
<Button name="CharSelectPaidService5" inherits="CharSelectPaidServiceTemplate" id="5">
<Anchors>
<Anchor point="TOP" relativeTo="CharSelectCharacterButton5" relativePoint="TOP" x="0" y="6"/>
<Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT" x="9" y="0"/>
</Anchors>
</Button>
<Button name="CharSelectPaidService6" inherits="CharSelectPaidServiceTemplate" id="6">
<Anchors>
<Anchor point="TOP" relativeTo="CharSelectCharacterButton6" relativePoint="TOP" x="0" y="6"/>
<Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT" x="9" y="0"/>
</Anchors>
</Button>
<Button name="CharSelectPaidService7" inherits="CharSelectPaidServiceTemplate" id="7">
<Anchors>
<Anchor point="TOP" relativeTo="CharSelectCharacterButton7" relativePoint="TOP" x="0" y="6"/>
<Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT" x="9" y="0"/>
</Anchors>
</Button>
<Button name="CharSelectPaidService8" inherits="CharSelectPaidServiceTemplate" id="8">
<Anchors>
<Anchor point="TOP" relativeTo="CharSelectCharacterButton8" relativePoint="TOP" x="0" y="6"/>
<Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT" x="9" y="0"/>
</Anchors>
</Button>
<Button name="CharSelectPaidService9" inherits="CharSelectPaidServiceTemplate" id="9">
<Anchors>
<Anchor point="TOP" relativeTo="CharSelectCharacterButton9" relativePoint="TOP" x="0" y="6"/>
<Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT" x="9" y="0"/>
</Anchors>
</Button>
<Button name="CharSelectPaidService10" inherits="CharSelectPaidServiceTemplate" id="10">
<Anchors>
<Anchor point="TOP" relativeTo="CharSelectCharacterButton10" relativePoint="TOP" x="0" y="6"/>
<Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT" x="9" y="0"/>
</Anchors>
</Button>
<Button name="CharSelectPaidService11" inherits="CharSelectPaidServiceTemplate" id="11">
<Anchors>
<Anchor point="TOP" relativeTo="CharSelectCharacterButton11" relativePoint="TOP" x="0" y="6"/>
<Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT" x="9" y="0"/>
</Anchors>
</Button>
</Frames>
<Backdrop bgFile="Interface\Glues\Common\Glue-Tooltip-Background" edgeFile="Interface\Glues\Common\Glue-Tooltip-Border" tile="true">
<BackgroundInsets>
<AbsInset left="10" right="5" top="4" bottom="9"/>
</BackgroundInsets>
<TileSize>
<AbsValue val="16"/>
</TileSize>
<EdgeSize>
<AbsValue val="16"/>
</EdgeSize>
</Backdrop>
<Scripts>
<OnMouseWheel>
self.scrollBar:SetValue(self.scrollBar:GetValue() - delta);
</OnMouseWheel>
</Scripts>
</Frame>
<Button name="CreateCharacterButtonSpecial" inherits="GlueButtonSmallTemplate" hidden="true" text="CREATE_NEW_CHARACTER">
<Size x="200" y="45"/>
<Anchors>
<Anchor point="TOP" relativeTo="CharacterSelectCharacterFrame" relativePoint="BOTTOM" x="-220" y="0"/>
</Anchors>
<Scripts>
<OnLoad>
self:SetWidth(self:GetTextWidth() + 50);
</OnLoad>
<OnClick>
PlaySound("gsCharacterSelectionCreateNew");
SetGlueScreen("charcreate");
</OnClick>
<OnUpdate>
CharacterSelect_DeathKnightSwap(self);
</OnUpdate>
</Scripts>
</Button>
<Frame name="CharacterTemplatesFrame" hidden="true">
<Size x="220" y="150"/>
<Anchors>
<Anchor point="BOTTOMLEFT" x="32" y="86"/>
</Anchors>
<Backdrop bgFile="Interface\Glues\Common\Glue-Tooltip-Background" edgeFile="Interface\Glues\Common\Glue-Tooltip-Border" tile="true">
<BackgroundInsets>
<AbsInset left="10" right="5" top="4" bottom="9"/>
</BackgroundInsets>
<TileSize>
<AbsValue val="16"/>
</TileSize>
<EdgeSize>
<AbsValue val="16"/>
</EdgeSize>
</Backdrop>
<Layers>
<Layer level="ARTWORK">
<FontString inherits="GlueFontNormal" text="TEMPLATE_CHARACTER">
<Anchors>
<Anchor point="TOP" x="0" y="-12"/>
</Anchors>
</FontString>
<FontString inherits="GlueFontHighlightSmall" text="TEMPLATE_CHARACTER_LABEL">
<Anchors>
<Anchor point="TOP" x="0" y="-38"/>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<Frame name="$parentDropDown" inherits="GlueDropDownMenuTemplate" enableMouse="true" parentKey="dropDown">
<Anchors>
<Anchor point="TOP" x="0" y="-54"/>
</Anchors>
</Frame>
<Button inherits="GlueButtonSmallTemplate" text="CREATE_CHARACTER">
<Size x="200" y="45"/>
<Anchors>
<Anchor point="BOTTOM" x="0" y="10"/>
</Anchors>
<Scripts>
<OnLoad>
self:SetWidth(self:GetTextWidth() + 50);
</OnLoad>
<OnClick>
PlaySound("gsCharacterSelectionCreateNew");
SetCharacterTemplate(GlueDropDownMenu_GetSelectedID(CharacterTemplatesFrameDropDown));
SetGlueScreen("charcreate");
</OnClick>
</Scripts>
</Button>
</Frames>
</Frame>
</Frames>
<Scripts>
<OnMouseDown>
CharacterSelectFrame_OnMouseDown(button);
</OnMouseDown>
<OnMouseUp>
CharacterSelectFrame_OnMouseUp(button);
</OnMouseUp>
<OnUpdate>
CharacterSelectFrame_OnUpdate();
</OnUpdate>
</Scripts>
</Frame>
<Frame name="BillingWarningFrame" hidden="true">
<Layers>
<Layer level="ARTWORK">
<FontString name="BillingWarningText" inherits="GlueFontHighlight">
<Size x="300" y="0"/>
<Anchors>
<Anchor point="BOTTOM" relativeTo="CharacterSelect" relativePoint="BOTTOMLEFT" x="200" y="120"/>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<Button name="BillingWarningButton" inherits="GlueButtonTemplate" text="MANAGE_ACCOUNT">
<Anchors>
<Anchor point="BOTTOM" relativeTo="CharacterSelect" relativePoint="BOTTOMLEFT" x="200" y="50"/>
</Anchors>
<Scripts>
<OnClick>
CharacterSelect_ManageAccount();
</OnClick>
</Scripts>
</Button>
</Frames>
</Frame>
<Frame name="GameRoomBillingFrame" hidden="true">
<Size x="255" y="60"/>
<Anchors>
<Anchor point="TOP" relativeTo="CharacterSelectLogo" relativePoint="BOTTOM" x="0" y="-50"/>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<FontString name="GameRoomBillingFrameText" inherits="GlueFontNormalSmall" justifyH="LEFT">
<Size x="235" y="0"/>
<Anchors>
<Anchor point="TOPLEFT" x="13" y="-10"/>
</Anchors>
</FontString>
</Layer>
</Layers>
<Backdrop bgFile="Interface\Glues\Common\Glue-Tooltip-Background" edgeFile="Interface\Glues\Common\Glue-Tooltip-Border" tile="true">
<BackgroundInsets>
<AbsInset left="10" right="5" top="4" bottom="9"/>
</BackgroundInsets>
<TileSize>
<AbsValue val="16"/>
</TileSize>
<EdgeSize>
<AbsValue val="16"/>
</EdgeSize>
</Backdrop>
</Frame>
</Frames>
<Scripts>
<OnLoad>
CharacterSelect_OnLoad(self);
</OnLoad>
<OnShow>
CharacterSelect_OnShow();
</OnShow>
<OnHide function="CharacterSelect_OnHide"/>
<OnUpdate function="CharacterSelect_OnUpdate"/>
<OnKeyDown>
CharacterSelect_OnKeyDown(self,key);
</OnKeyDown>
<OnEvent>
CharacterSelect_OnEvent(self, event, ...);
</OnEvent>
<OnUpdateModel>
CharacterSelect_UpdateModel(self);
</OnUpdateModel>
</Scripts>
</ModelFFX>
<Frame name="CharacterDeleteDialog" toplevel="true" parent="GlueParent" setAllPoints="true" enableMouse="true" enableKeyboard="true" frameStrata="DIALOG" hidden="true">
<Frames>
<Frame name="CharacterDeleteBackground">
<Size x="512" y="256"/>
<Anchors>
<Anchor point="CENTER" x="0" y="0"/>
</Anchors>
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
<BackgroundInsets>
<AbsInset left="11" right="12" top="12" bottom="11"/>
</BackgroundInsets>
<TileSize>
<AbsValue val="32"/>
</TileSize>
<EdgeSize>
<AbsValue val="32"/>
</EdgeSize>
</Backdrop>
<Layers>
<Layer level="ARTWORK">
<FontString name="CharacterDeleteText1" inherits="GlueFontNormalLarge">
<Size x="400" y="0"/>
<Anchors>
<Anchor point="TOP" x="0" y="-16"/>
</Anchors>
</FontString>
<FontString name="CharacterDeleteText2" inherits="GlueFontNormalSmall" text="CONFIRM_CHAR_DELETE_INSTRUCTIONS">
<Size x="400" y="0"/>
<Anchors>
<Anchor point="TOP" relativeTo="CharacterDeleteText1" relativePoint="BOTTOM" x="0" y="-20"/>
</Anchors>
</FontString>
<Texture name="CharacterDeleteAlertIcon" file="Interface\DialogFrame\UI-Dialog-Icon-AlertNew">
<Size x="48" y="48"/>
<Anchors>
<Anchor point="LEFT" x="24" y="10"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<Frames>
<Button name="CharacterDeleteButton1" inherits="GlueDialogButtonTemplate" id="1" text="OKAY">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="CharacterDeleteBackground" relativePoint="BOTTOM">
<Offset x="-6" y="16"/>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
DeleteCharacter(GetCharIDFromIndex(CharacterSelect.selectedIndex));
CharacterDeleteDialog:Hide();
PlaySound("gsTitleOptionOK");
</OnClick>
<OnUpdate>
CharacterSelect_DeathKnightSwap(self);
</OnUpdate>
</Scripts>
</Button>
<Button name="CharacterDeleteButton2" inherits="GlueDialogButtonTemplate" id="2" text="CANCEL">
<Anchors>
<Anchor point="LEFT" relativeTo="CharacterDeleteButton1" relativePoint="RIGHT" x="13" y="0"/>
</Anchors>
<Scripts>
<OnClick>
CharacterDeleteDialog:Hide();
PlaySound("gsTitleOptionExit");
</OnClick>
<OnUpdate>
CharacterSelect_DeathKnightSwap(self);
</OnUpdate>
</Scripts>
</Button>
</Frames>
</Frame>
<EditBox name="CharacterDeleteEditBox" letters="32" historyLines="1">
<Size x="130" y="32"/>
<Anchors>
<Anchor point="TOP" relativeTo="CharacterDeleteText2" relativePoint="BOTTOM" x="0" y="-5"/>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture file="Interface\ChatFrame\UI-ChatInputBorder-Left">
<Size x="75" y="32"/>
<Anchors>
<Anchor point="LEFT" x="-10" y="0"/>
</Anchors>
<TexCoords left="0" right="0.29296875" top="0" bottom="1.0"/>
</Texture>
<Texture file="Interface\ChatFrame\UI-ChatInputBorder-Right">
<Size x="75" y="32"/>
<Anchors>
<Anchor point="RIGHT" x="10" y="0"/>
</Anchors>
<TexCoords left="0.70703125" right="1.0" top="0" bottom="1.0"/>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnTextChanged>
if ( strupper(self:GetText()) == strupper(DELETE_CONFIRM_STRING) ) then
CharacterDeleteButton1:Enable();
else
CharacterDeleteButton1:Disable();
end
</OnTextChanged>
<OnEnterPressed>
if ( CharacterDeleteButton1:IsEnabled() ) then
DeleteCharacter(GetCharIDFromIndex(CharacterSelect.selectedIndex));
CharacterDeleteDialog:Hide();
end
</OnEnterPressed>
<OnEscapePressed>
CharacterDeleteDialog:Hide();
</OnEscapePressed>
</Scripts>
<FontString inherits="GlueFontHighlight"/>
</EditBox>
</Frames>
<Scripts>
<OnShow>
self:Raise();
CharacterDeleteDialog_OnShow();
</OnShow>
<OnHide>
CharacterDeleteEditBox:SetText("");
</OnHide>
</Scripts>
</Frame>
<Frame name="CharacterRenameDialog" toplevel="true" parent="GlueParent" setAllPoints="true" enableMouse="true" enableKeyboard="true" frameStrata="DIALOG" hidden="true">
<Frames>
<Frame name="CharacterRenameBackground">
<Size x="512" y="256"/>
<Anchors>
<Anchor point="CENTER" x="0" y="0"/>
</Anchors>
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
<BackgroundInsets>
<AbsInset left="11" right="12" top="12" bottom="11"/>
</BackgroundInsets>
<TileSize>
<AbsValue val="32"/>
</TileSize>
<EdgeSize>
<AbsValue val="32"/>
</EdgeSize>
</Backdrop>
<Layers>
<Layer level="ARTWORK">
<FontString name="CharacterRenameText1" inherits="GlueFontNormalLarge" text="CHAR_RENAME_DESCRIPTION">
<Size x="400" y="0"/>
<Anchors>
<Anchor point="TOP" x="0" y="-16"/>
</Anchors>
</FontString>
<FontString name="CharacterRenameText2" inherits="GlueFontNormalSmall" text="CHAR_RENAME_INSTRUCTIONS">
<Size x="400" y="0"/>
<Anchors>
<Anchor point="TOP" relativeTo="CharacterRenameText1" relativePoint="BOTTOM" x="0" y="-20"/>
</Anchors>
</FontString>
<Texture name="CharacterRenameAlertIcon" file="Interface\DialogFrame\UI-Dialog-Icon-AlertNew">
<Size x="48" y="48"/>
<Anchors>
<Anchor point="LEFT" x="24" y="10"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<Frames>
<Button name="CharacterRenameButton1" inherits="GlueDialogButtonTemplate" id="1" text="OKAY">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="CharacterRenameBackground" relativePoint="BOTTOM" x="-6" y="16"/>
</Anchors>
<Scripts>
<OnClick>
if ( RenameCharacter(GetCharIDFromIndex(CharacterSelect.selectedIndex), CharacterRenameEditBox:GetText()) ) then
CharacterRenameDialog:Hide();
end
</OnClick>
<OnUpdate>
CharacterSelect_DeathKnightSwap(self);
</OnUpdate>
</Scripts>
</Button>
<Button name="CharacterRenameButton2" inherits="GlueDialogButtonTemplate" id="2" text="CANCEL">
<Anchors>
<Anchor point="LEFT" relativeTo="CharacterRenameButton1" relativePoint="RIGHT" x="13" y="0"/>
</Anchors>
<Scripts>
<OnClick>
CharacterRenameDialog:Hide();
</OnClick>
<OnUpdate>
CharacterSelect_DeathKnightSwap(self);
</OnUpdate>
</Scripts>
</Button>
</Frames>
</Frame>
<EditBox name="CharacterRenameEditBox" letters="12" historyLines="1">
<Size x="130" y="32"/>
<Anchors>
<Anchor point="TOP" relativeTo="CharacterRenameText2" relativePoint="BOTTOM" x="0" y="-5"/>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<Texture file="Interface\ChatFrame\UI-ChatInputBorder-Left">
<Size x="75" y="32"/>
<Anchors>
<Anchor point="LEFT" x="-10" y="0"/>
</Anchors>
<TexCoords left="0" right="0.29296875" top="0" bottom="1.0"/>
</Texture>
<Texture file="Interface\ChatFrame\UI-ChatInputBorder-Right">
<Size x="75" y="32"/>
<Anchors>
<Anchor point="RIGHT" x="10" y="0"/>
</Anchors>
<TexCoords left="0.70703125" right="1.0" top="0" bottom="1.0"/>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnEnterPressed>
if ( RenameCharacter(GetCharIDFromIndex(CharacterSelect.selectedIndex), CharacterRenameEditBox:GetText()) ) then
CharacterRenameDialog:Hide();
end
</OnEnterPressed>
<OnEscapePressed>
CharacterRenameDialog:Hide();
</OnEscapePressed>
</Scripts>
<FontString inherits="GlueFontHighlight"/>
</EditBox>
</Frames>
<Scripts>
<OnShow>
self:Raise();
</OnShow>
<OnHide>
CharacterRenameEditBox:SetText("");
</OnHide>
</Scripts>
</Frame>
</Ui>