vanilla-wow-addons – Rev 1

Subversion Repositories:
Rev:
<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/ C:ProjectsWoWBinInterfaceFrameXMLUI.xsd">

        <Script file="BGInvite_BlackListFrame.lua"/>
        <Script file="localization.lua"/>
        
        <!--Button Widget Template-->
        <Button name="BGInvitePlayerButtonTemplate" enableMouse="true" virtual="true">
                <Size>
                        <AbsDimension x="295" y="32"/>
                </Size>
                <NormalText name="$parentText" inherits="GameFontNormal" justifyH="LEFT">
                        <Size>
                                <AbsDimension x="275" y="12"/>
                        </Size>
                        <Anchors>
                                <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentItem">
                                        <Offset>
                                                <AbsDimension x="35" y="0"/>
                                        </Offset>
                                </Anchor>
                        </Anchors> 
                </NormalText>
                <HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD"/>
                <HighlightText name="$parentHighlightText" inherits="GameFontHighlight" justifyH="LEFT">
                        <Size>
                                <AbsDimension x="275" y="12"/>
                        </Size>
                        <Anchors>
                                <Anchor point="LEFT" relativePoint="LEFT" relativeTo="$parentItem">
                                        <Offset>
                                                <AbsDimension x="35" y="0"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                </HighlightText>        
                <Scripts>
                        <OnClick>
                                BGInvite_BlackListFrameItemButton_OnClick(arg1,this:GetText());
                        </OnClick>
                </Scripts>
        </Button>

-- Interface viewable objects

        <Frame name="BGInvite_BlackListFrame" setAllPoints="true" enableMouse="true" parent="BGInviteFrame" hidden="true" id="2">
                <HitRectInsets>
                        <AbsInset left="0" right="30" top="0" bottom="75"/>
                </HitRectInsets>
                <Layers>
                        <Layer level="BACKGROUND">
                                <Texture name="$parentListFrameHorizontalBarLeft" file="Interface\ClassTrainerFrame\UI-ClassTrainer-HorizontalBar">
                                        <Size>
                                                <AbsDimension x="256" y="16"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOPLEFT">
                                                        <Offset>
                                                                <AbsDimension x="15" y="-312"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                        <TexCoords left="0" right="1.0" top="0" bottom="0.25"/>
                                </Texture>
                                <Texture name="$parentListFrameHorizontalBarRight" file="Interface\ClassTrainerFrame\UI-ClassTrainer-HorizontalBar">
                                        <Size>
                                                <AbsDimension x="75" y="16"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="LEFT" relativeTo="$parentListFrameHorizontalBarLeft" relativePoint="RIGHT">
                                                        <Offset>
                                                                <AbsDimension x="0" y="0"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                        <TexCoords left="0" right="0.29296875" top="0.25" bottom="0.5"/>
                                </Texture>
                        </Layer>
                </Layers>
                <Frames>
                        <Frame name="$parentHeaderText" hidden="false">
                                <Size>
                                        <AbsDimension x="320" y="50"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="20" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="ARTWORK">
                                                <FontString inherits="GameFontNormalLarge" justifyH="CENTER" text="BGlocal_BLACKLISTED_PLAYERS">
                                                        <Size>
                                                                <AbsDimension x="320" y="0"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="TOP" relativePoint="TOP">
                                                                        <Offset>
                                                                                <AbsDimension x="0" y="-58"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </FontString>
                                        </Layer>                                        
                                </Layers>                               
                        </Frame>
                        

-- Start of Buttons to use as ListBox
                        <Button name="$parentItem1" inherits="BGInvitePlayerButtonTemplate" id="1" hidden="true">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="$parentHeaderText" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="25" y="-50"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentItem2" inherits="BGInvitePlayerButtonTemplate" id="2" hidden="true">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="$parentItem1" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="1"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentItem3" inherits="BGInvitePlayerButtonTemplate" id="3" hidden="true">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="$parentItem2" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="1"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentItem4" inherits="BGInvitePlayerButtonTemplate" id="4" hidden="true">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="$parentItem3" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="1"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentItem5" inherits="BGInvitePlayerButtonTemplate" id="5" hidden="true">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="$parentItem4" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="1"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentItem6" inherits="BGInvitePlayerButtonTemplate" id="6" hidden="true">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="$parentItem5" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="1"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentItem7" inherits="BGInvitePlayerButtonTemplate" id="7" hidden="true">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="$parentItem6" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="1"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentItem8" inherits="BGInvitePlayerButtonTemplate" id="8" hidden="true">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="$parentItem7" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="1"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentItem9" inherits="BGInvitePlayerButtonTemplate" id="9" hidden="true">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="$parentItem8" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="1"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentItem10" inherits="BGInvitePlayerButtonTemplate" id="10" hidden="true">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="$parentItem9" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="1"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentItem11" inherits="BGInvitePlayerButtonTemplate" id="11" hidden="true">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="$parentItem10" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="1"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentItem12" inherits="BGInvitePlayerButtonTemplate" id="12" hidden="true">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="$parentItem11" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="1"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentItem13" inherits="BGInvitePlayerButtonTemplate" id="13" hidden="true">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="$parentItem12" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="1"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentItem14" inherits="BGInvitePlayerButtonTemplate" id="14" hidden="true">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="$parentItem13" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="1"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>

-- List box scroller pane                       
                        <ScrollFrame name="BGInvite_BlackListFrameListScrollFrame" inherits="ClassTrainerListScrollFrameTemplate">
                                <Size>
                                        <AbsDimension x="296" y="215"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPRIGHT" relativeTo="$parentHeaderText" relativePoint="BOTTOMRIGHT">
                                                <Offset>
                                                        <AbsDimension x="-20" y="-46"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnVerticalScroll>
                                                FauxScrollFrame_OnVerticalScroll(BGInvite_ITEM_HEIGHT, BGInvite_BlackListFrame_Update);
                                        </OnVerticalScroll>
                                </Scripts>
                        </ScrollFrame>  

                <Button name="BGInvite_BlackList_Clear" inherits="OptionsButtonTemplate" text="BGINVITE_CLEAR_BLACKLIST">
                        <Size>
                                <AbsDimension x="150" y="25"/>
                        </Size>
                        <Anchors>
                                <Anchor point="CENTER" relativePoint="CENTER" relativeTo="BGInvite_BlackListFrame">
                                        <Offset>
                                                <AbsDimension x="0" y="-100"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Scripts>
                                <OnClick>
                                        getglobal(this:GetName().."_Update")();
                                </OnClick>
                                <OnEnter>GameTooltip:SetOwner(getglobal(this:GetName()), "ANCHOR_BOTTOMRIGHT");
                                                 GameTooltip:SetText(BGINVITE_CLEAR_BL_NOTE);
                                </OnEnter>
                        </Scripts>
                </Button>
                <Button name="BGInvite_BlackList_AddPlayer" inherits="OptionsButtonTemplate" text="Add Player">
                        <Size>
                                <AbsDimension x="150" y="25"/>
                        </Size>
                        <Anchors>
                                <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="BGInvite_BlackList_Clear">
                                        <Offset>
                                                <AbsDimension x="0" y="0"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Scripts>
                                <OnClick>
                                        BGInvite_BlackListAddPlayerDialog:Show();
                                </OnClick>
                                <OnEnter>GameTooltip:SetOwner(getglobal(this:GetName()), "ANCHOR_BOTTOMRIGHT");
                                                 --GameTooltip:SetText(BGINVITE_CLEAR_BL_NOTE);
                                </OnEnter>
                        </Scripts>
                </Button>
                </Frames>               
                <Scripts>
                        <OnShow>
                                getglobal(this:GetName().."_OnShow")();
                        </OnShow>
                </Scripts>

                
        </Frame>

<Frame name="BGInvite_BlackListAddPlayerDialog" toplevel="true" setAllPoints="true" enableMouse="true" parent="BGInviteFrame" hidden="true" frameStrata="DIALOG">
        <Size>
                <AbsDimension x="200" y="120"/>
        </Size>
        <Anchors>
                <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="BGInviteMagicwordChange">
                        <Offset>
                                <AbsDimension x="0" y="0"/>
                        </Offset>
                </Anchor>
        </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>

        <Frames>
                <Frame name="BGInvite_BlackListAddPlayer_WidgetGroup" hidden="false">
                        <Size>
                                <AbsDimension x="32" y="32"/>
                        </Size>
                        <Anchors>
                                <Anchor point="CENTER" relativePoint="TOP">
                                        <Offset>
                                                <AbsDimension x="0" y="-45"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Layers>
                                <Layer level="OVERLAY">
                                        <FontString inherits="GameFontNormal" name="$parent_Text" text="BGINVITE_ADD_PLAYER_TO_BLACKLIST">
                                                <Anchors>
                                                        <Anchor point="CENTER" relativePoint="TOP">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="0"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                        </FontString>
                                </Layer>
                        </Layers>
                </Frame>
                <EditBox name="BGInvite_BlackListAddPlayer_EditBox" letters="20" inherits="BGI_OptionsEditBoxTemplate">
                        <Anchors>
                                <Anchor point="CENTER" relativePoint="CENTER">
                                        <Offset>
                                                <AbsDimension x="0" y="0"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Scripts>
                                <OnEnterPressed>
                                        BGInvite_AddBlackList( BGInvite_BlackListAddPlayer_EditBox:GetText(), BGINVITE_MANUAL_ADD);
                                        BGInvite_BlackListFrame_Update();
                                        BGInvite_BlackListAddPlayerDialog:Hide();
                                </OnEnterPressed>
                                <OnShow>getglobal(this:GetName()):SetText("");</OnShow>
                        </Scripts>
                </EditBox>
                
                
                <Button name="BGInvite_BlackListAddPlayer_Add" inherits="OptionsButtonTemplate" text="OK">
                        <Size>
                                <AbsDimension x="70" y="20"/>
                        </Size>
                        <Anchors>
                                <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="BGInvite_BlackListAddPlayer_EditBox">
                                        <Offset>
                                                <AbsDimension x="-20" y="-15"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Scripts>
                                <OnClick>                                       
                                        local name = BGInvite_BlackListAddPlayer_EditBox:GetText();
                                        if ( name ~= "" ) then
                                                BGInvite_AddBlackList( BGInvite_BlackListAddPlayer_EditBox:GetText(), BGINVITE_MANUAL_ADD);
                                        end
                                        BGInvite_BlackListFrame_Update();
                                        BGInvite_BlackListAddPlayerDialog:Hide();
                                </OnClick>
                        </Scripts>
        </Button>
                <Button name="BGInvite_BlackListAddPlayer_Cancel" inherits="OptionsButtonTemplate" text="Cancel">
                        <Size>
                                <AbsDimension x="70" y="20"/>
                        </Size>
                        <Anchors>
                                <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT" relativeTo="BGInvite_BlackListAddPlayer_EditBox">
                                        <Offset>
                                                <AbsDimension x="20" y="-15"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                        <Scripts>
                                <OnClick>
                                        BGInvite_BlackListAddPlayerDialog:Hide();
                                </OnClick>
                        </Scripts>
        </Button>
        </Frames>
</Frame>

</Ui>

Generated by GNU Enscript 1.6.5.90.