<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">
<Frame name="UpgradeFrameFeatureLargeTemplate" virtual="true">
<Size x="420" 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="GlueFontNormal" parentKey="text" justifyH="LEFT" justifyV="MIDDLE">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentIconFrame" relativePoint="TOPRIGHT" x="15" 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>
</Frame>
<Frame name="StarterEditionPopUp" toplevel="true" setAllPoints="true" parent="GlueParent" enableMouse="true" enableKeyboard="true" frameStrata="DIALOG" hidden="true">
<Layers>
<Layer level="BACKGROUND">
<Texture>
<Color r="0" g="0" b="0" a="0.7"/>
</Texture>
</Layer>
<Layer level="BACKGROUND" textureSubLevel="2">
<Texture name="$parentBG" file="Interface\Glues\AccountUpgrade\upgrade-texture">
<Size x="783" y="524"/>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
<TexCoords left="0.00097656" right="0.76562500" top="0.18261719" bottom="0.69433594"/>
</Texture>
</Layer>
<Layer level="ARTWORK">
<Texture parentKey="Logo" file="Interface/Glues/Common/Glues-WoW-StarterLogo">
<Size x="320" y="160"/>
<Anchors>
<Anchor point="CENTER" relativeTo="$parentBG" relativePoint="TOP" x="0" y="-30"/>
</Anchors>
</Texture>
<FontString name="$parentUpgradeText" inherits="GlueFontHighlightHuge" text="UPGRADE_NOW">
<Size x="400" y="0"/>
<Anchors>
<Anchor point="CENTER" relativePoint="TOPLEFT" relativeTo="$parentBG" x="275" y="-180"/>
</Anchors>
</FontString>
<FontString name="$parentUnlockText" inherits="GlueFontNormal" text="UNLOCK_TEXT">
<Size x="400" y="0"/>
<Anchors>
<Anchor point="CENTER" relativeTo="$parentUpgradeText" x="0" y="-20"/>
</Anchors>
</FontString>
<Texture name="$parentDivider" file="Interface\Glues\AccountUpgrade\upgrade-texture">
<Anchors>
<Anchor point="CENTER" relativeTo="$parentUnlockText" x="0" y="-20"/>
</Anchors>
<Size x="317" y="2"/>
<TexCoords left="0.45019531" right="0.75976563" top="0.09179688" bottom="0.09375000"/>
</Texture>
</Layer>
</Layers>
<Frames>
<Button name="$parentUpgradeButton" text="UPGRADE">
<Size x="228" y="91"/>
<Anchors>
<Anchor point="BOTTOMLEFT" relativeTo="$parentBG" x="40" y="40"/>
</Anchors>
<Scripts>
<OnClick>
PlaySound("igCharacterInfoTab");
UpgradeAccount();
self:GetParent():Hide();
</OnClick>
</Scripts>
<NormalTexture file="Interface\Glues\AccountUpgrade\upgrade-texture">
<TexCoords left="0.45019531" right="0.67285156" top="0.00097656" bottom="0.08984375"/>
</NormalTexture>
<PushedTexture file="Interface\Glues\AccountUpgrade\upgrade-texture">
<TexCoords left="0.22558594" right="0.44824219" top="0.00097656" bottom="0.08984375"/>
</PushedTexture>
<HighlightTexture file="Interface\Glues\AccountUpgrade\upgrade-texture" alphaMode="ADD">
<TexCoords left="0.67480469" right="0.89746094" top="0.00097656" bottom="0.08984375"/>
<Color r="1" g="1" b="1" a="0.3"/>
</HighlightTexture>
<NormalFont style="GlueFontNormalHuge"/>
</Button>
<Button name="$parentExitButton" text="PLAY_STARTER_EDITION">
<Size x="228" y="91"/>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentUpgradeButton" relativePoint="RIGHT" x="10" y="0"/>
</Anchors>
<Scripts>
<OnClick>
PlaySound("igCharacterInfoTab");
self:GetParent():Hide();
</OnClick>
</Scripts>
<NormalTexture file="Interface\Glues\AccountUpgrade\upgrade-texture">
<TexCoords left="0.00097656" right="0.22363281" top="0.09179688" bottom="0.18066406"/>
</NormalTexture>
<PushedTexture file="Interface\Glues\AccountUpgrade\upgrade-texture">
<TexCoords left="0.22558594" right="0.44824219" top="0.09179688" bottom="0.18066406"/>
</PushedTexture>
<HighlightTexture file="Interface\Glues\AccountUpgrade\upgrade-texture" alphaMode="ADD">
<TexCoords left="0.00097656" right="0.22363281" top="0.00097656" bottom="0.08984375"/>
<Color r="1" g="1" b="1" a="0.3"/>
</HighlightTexture>
<NormalFont style="GlueFontNormal"/>
</Button>
<Frame name="$parentFeature1" inherits="UpgradeFrameFeatureLargeTemplate">
<Anchors>
<Anchor point="CENTER" relativeTo="$parentUnlockText" x="0" y="-60"/>
</Anchors>
</Frame>
</Frames>
<Scripts>
<OnShow>
local featureTable = ACCOUNT_UPGRADE_FEATURES["TRIAL"];
self.Logo:SetTexture(featureTable.logo);
for i=1, #featureTable do
local frame = _G["StarterEditionPopUpFeature"..i];
if ( not frame ) then
frame = CreateFrame("FRAME", "StarterEditionPopUpFeature"..i, StarterEditionPopUp, "UpgradeFrameFeatureLargeTemplate");
frame:SetPoint("TOPLEFT", _G["StarterEditionPopUpFeature"..(i-1)], "BOTTOMLEFT", 0, 0);
end
frame.icon:SetTexture(featureTable[i].icon);
frame.text:SetText(featureTable[i].text);
end
local index = #featureTable+1;
local frame = _G["StarterEditionPopUpFeature"..index];
while ( frame ) do
frame:Hide();
index = index + 1;
frame = _G["StarterEditionPopUpFeature"..index];
end
</OnShow>
<OnKeyDown>
local key = key;--Used to catch key input
</OnKeyDown>
</Scripts>
</Frame>
</Ui>