WoWInterface SVN LanguageCycle

[/] [trunk/] [LanguageCycle.xml] - Rev 11

Compare with Previous | Blame | View Log

<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="LanguageCycle.lua"/>

   <Frame name="Language_Cycle_Panel" parent="UIParent" enableMouse="true" toplevel="true" movable="true" frameStrata="HIGH">
      <Size>
         <AbsDimension x="151" y="56"/>
      </Size>
      <Anchors>
         <Anchor point="TOP" relativePoint="TOP">
            <Offset>
               <AbsDimension x="0" y="0"/>
            </Offset>
         </Anchor>
      </Anchors>
      <Scripts>
         <OnLoad function="Language_Cycle_OnLoad" />
         <OnEvent function="Language_Cycle_OnEvent" />
         <OnUpdate function="Language_Cycle_OnUpdate" />
         <OnDragStart>
            self:StartMoving();
         </OnDragStart>
         <OnDragStop>
            self:StopMovingOrSizing();
            ValidateFramePosition(this);
         </OnDragStop>
         <OnEnter function="Language_Cycle_Backdrop_Show" />
         <OnLeave function="Language_Cycle_Backdrop_Hide" />
      </Scripts>
      <Frames>
         <Frame name="Language_Cycle_Panel_Backdrop" parent="Language_Cycle_Panel" visible="false">
            <Backdrop name="$parentBackdrop" bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
               <EdgeSize>
                  <AbsValue val="16"/>
               </EdgeSize>
               <TileSize>
                  <AbsValue val="16"/>
               </TileSize>
               <BackgroundInsets>
                  <AbsInset left="5" right="5" top="5" bottom="5"/>
               </BackgroundInsets>
            </Backdrop>
            <Size>
               <AbsDimension x="151" y="56"/>
            </Size>
            <Anchors>
               <Anchor point="TOP" relativePoint="TOP">
               </Anchor>
            </Anchors>
            <Frames>
               <Button name="Language_Cycle_CloseButton" parent="Language_Cycle_Panel_Backdrop">
                  <Size>
                     <AbsDimension x="34" y="34"/>
                  </Size>
                  <Anchors>
                     <Anchor point="TOPRIGHT">
                        <Offset>
                           <AbsDimension x="3" y="3"/>
                        </Offset>
                     </Anchor>
                  </Anchors>
                  <Scripts>
                     <OnEnter function="Language_Cycle_Backdrop_Show" />
                     <OnLeave function="Language_Cycle_Backdrop_Hide" />
                     <OnClick>
                        PlaySound("igMainMenuOptionCheckBoxOff");
                        Language_Cycle_Panel_Visible();
                     </OnClick>
                  </Scripts>
                  <NormalTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Up"/>
                  <PushedTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Down"/>
                  <HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
               </Button>               
            </Frames>
            
         </Frame>
         <!-- Button for Language Cycling -->
         <Button name="Language_Cycle_Button" inherits="UIPanelButtonTemplate" enableMouse="true" visible="true" text="Loading...">
            <Size>
               <AbsDimension x="125" y="21"/>
            </Size>
            <Anchors>
               <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
                  <Offset>
                     <AbsDimension x="3" y="-3"/>
                  </Offset>
               </Anchor>
            </Anchors>
            <Scripts>
               <OnLoad>
                  self:RegisterForClicks("LeftButtonDown", "RightButtonDown")
               </OnLoad>
               <OnClick>
                  if (IsAltKeyDown()) then
                     Language_Cycle_Clear();
                     PlaySound("igMainMenuOptionCheckBoxOff");
                  else
                     Language_Cycle_Language_Clicked(button);
                     PlaySound("igMainMenuOptionCheckBoxOn");
                  end
               </OnClick>
               <OnEnter function="Language_Cycle_Backdrop_Show" />
               <OnLeave function="Language_Cycle_Backdrop_Hide" />
            </Scripts>
         </Button>                  
      </Frames>
   </Frame>
</Ui>

Compare with Previous | Blame