Blizzard_BindingUI/Blizzard_BindingUI.xml

Blizzard_BindingUI/Blizzard_BindingUI.xml (8.3.7.35662; unchanged since 8.3.0.33062)
  1. <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/
  2. ..\..\FrameXML\UI.xsd">
  3.   <Script file="Blizzard_BindingUI.lua"/>
  4.   <Button name="KeyBindingFrameBindingButtonTemplate" inherits="UIMenuButtonStretchTemplate" virtual="true">
  5.     <Layers>
  6.       <Layer level="OVERLAY">
  7.         <Texture parentKey="selectedHighlight" file="Interface\Buttons\UI-Silver-Button-Select" alphaMode="ADD" hidden="true">
  8.           <Size x="180" y="20"/>
  9.           <Anchors>
  10.             <Anchor point="CENTER" x="0" y="-3"/>
  11.           </Anchors>
  12.         </Texture>
  13.       </Layer>
  14.     </Layers>
  15.     <Scripts>
  16.       <OnClick>
  17.         KeyBindingButton_OnClick(self, button, down);
  18.       </OnClick>
  19.       <OnLoad>
  20.         self:RegisterForClicks("AnyUp");
  21.       </OnLoad>
  22.     </Scripts>
  23.     <NormalFont style="GameFontHighlightSmall"/>
  24.     <DisabledFont style="GameFontDisableSmall"/>
  25.     <HighlightFont style="GameFontHighlightSmall"/>
  26.   </Button>
  27.   <Button name="KeyBindingFrameBindingButtonTemplateWithLabel" inherits="KeyBindingFrameBindingButtonTemplate" virtual="true">
  28.     <Layers>
  29.       <Layer level="BACKGROUND">
  30.         <FontString parentKey="KeyLabel" inherits="GameFontNormalSmall">
  31.           <Anchors>
  32.             <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" x="4" y="5" />
  33.           </Anchors>
  34.         </FontString>
  35.       </Layer>
  36.     </Layers>
  37.   </Button>
  38.   <Frame name="KeyBindingFrameBindingTemplate" virtual="true">
  39.     <Size x="560" y="25"/>
  40.     <Layers>
  41.       <Layer level="BACKGROUND">
  42.         <FontString parentKey="description" inherits="GameFontNormalSmall" justifyH="LEFT">
  43.           <Size x="170" y="24"/>
  44.           <Anchors>
  45.             <Anchor point="LEFT"/>
  46.           </Anchors>
  47.         </FontString>
  48.         <FontString parentKey="header" inherits="GameFontHighlight">
  49.           <Anchors>
  50.             <Anchor point="LEFT"/>
  51.           </Anchors>
  52.         </FontString>
  53.       </Layer>
  54.     </Layers>
  55.     <Frames>
  56.       <Button name="$parentKey1Button" parentKey="key1Button" inherits="KeyBindingFrameBindingButtonTemplate" id="1">
  57.         <Size x="180" y="22"/>
  58.         <Anchors>
  59.           <Anchor point="LEFT" x="185" y="0"/>
  60.         </Anchors>
  61.       </Button>
  62.       <Button name="$parentKey2Button" parentKey="key2Button" inherits="KeyBindingFrameBindingButtonTemplate" id="2">
  63.         <Size x="180" y="22"/>
  64.         <Anchors>
  65.           <Anchor point="LEFT" relativeTo="$parentKey1Button" relativePoint="RIGHT"/>
  66.         </Anchors>
  67.       </Button>
  68.     </Frames>
  69.   </Frame>
  70.   <Button name="KeybindingsCategoryListButtonTemplate" inherits="OptionsListButtonTemplate" virtual="true">
  71.     <Scripts>
  72.       <OnLoad>
  73.         OptionsListButton_OnLoad(self);
  74.       </OnLoad>
  75.       <OnClick function="KeybindingsCategoryListButton_OnClick"/>
  76.     </Scripts>
  77.   </Button>
  78.  
  79.   <Button name="KeyBindingFrame" parent="UIParent" toplevel="true" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" enableKeyboard="true">
  80.     <Size x="858" y="660"/>
  81.     <Anchors>
  82.       <Anchor point="CENTER"/>
  83.     </Anchors>
  84.     <Layers>
  85.       <Layer level="BORDER">
  86.         <Texture parentKey="topSeparator">
  87.           <Size x="550" y="1"/>
  88.           <Anchors>
  89.             <Anchor point="TOP" relativeTo="$parent" relativePoint="TOP" x="90" y="-70"/>
  90.           </Anchors>
  91.           <Color r="0.25" g="0.25" b="0.25"/>
  92.         </Texture>
  93.         <FontString parentKey="commandLabel" inherits="GameFontWhite" text="COMMAND">
  94.           <Anchors>
  95.             <Anchor point="TOP" x="-141" y="-50"/>
  96.           </Anchors>
  97.         </FontString>
  98.         <FontString parentKey="key1Label" inherits="GameFontWhite" text="KEY1">
  99.           <Anchors>
  100.             <Anchor point="LEFT" relativeKey="$parent.commandLabel" relativePoint="RIGHT" x="185" y="0"/>
  101.           </Anchors>
  102.         </FontString>
  103.         <FontString parentKey="key2Label" inherits="GameFontWhite" text="KEY2">
  104.           <Anchors>
  105.             <Anchor point="LEFT" relativeKey="$parent.key1Label" relativePoint="RIGHT" x="145" y="0"/>
  106.           </Anchors>
  107.         </FontString>
  108.         <Texture parentKey="bottomSeparator">
  109.           <Size x="550" y="1"/>
  110.           <Anchors>
  111.             <Anchor point="BOTTOM" x="90" y="90"/>
  112.           </Anchors>
  113.           <Color r="0.25" g="0.25" b="0.25"/>
  114.         </Texture>
  115.         <FontString parentKey="outputText" inherits="GameFontWhite">
  116.           <Anchors>
  117.             <Anchor point="BOTTOM" x="90" y="70"/>
  118.           </Anchors>
  119.         </FontString>
  120.       </Layer>
  121.     </Layers>
  122.     <Frames>
  123.       <Frame parentKey="BG" inherits="DialogBorderTemplate"/>
  124.       <Frame parentKey="Header" inherits="DialogHeaderTemplate">
  125.         <KeyValues>
  126.           <KeyValue key="textString" value="KEY_BINDINGS" type="global"/>
  127.         </KeyValues>
  128.       </Frame>
  129.       <CheckButton parentKey="characterSpecificButton" inherits="UICheckButtonTemplate">
  130.         <Size x="20" y="20"/>
  131.         <Anchors>
  132.           <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="-245" y="-20"/>
  133.         </Anchors>
  134.         <HitRectInsets>
  135.           <AbsInset left="0" right="-100" top="0" bottom="0"/>
  136.         </HitRectInsets>
  137.         <Scripts>
  138.           <OnLoad function="CharacterSpecificButton_OnLoad"/>
  139.           <OnClick function="CharacterSpecificButton_OnClick"/>
  140.           <OnEnter function="CharacterSpecificButton_OnEnter"/>
  141.           <OnLeave function="CharacterSpecificButton_OnHide"/>
  142.         </Scripts>
  143.       </CheckButton>
  144.       <Button parentKey="unbindButton" inherits="UIPanelButtonTemplate" text="UNBIND">
  145.         <Size x="130" y="22"/>
  146.         <Anchors>
  147.           <Anchor point="BOTTOMRIGHT" x="-205" y="16"/>
  148.         </Anchors>
  149.         <Scripts>
  150.           <OnClick function="UnbindButton_OnClick"/>
  151.         </Scripts>
  152.       </Button>
  153.       <Button parentKey="okayButton" inherits="UIPanelButtonTemplate" text="OKAY">
  154.         <Size x="96" y="22"/>
  155.         <Anchors>
  156.           <Anchor point="BOTTOMLEFT" relativeKey="$parent.unbindButton" relativePoint="BOTTOMRIGHT"/>
  157.         </Anchors>
  158.         <Scripts>
  159.           <OnClick function="OkayButton_OnClick"/>
  160.         </Scripts>
  161.       </Button>
  162.       <Button parentKey="cancelButton" inherits="UIPanelButtonTemplate" text="CANCEL">
  163.         <Size x="96" y="22"/>
  164.         <Anchors>
  165.           <Anchor point="BOTTOMLEFT" relativeKey="$parent.okayButton" relativePoint="BOTTOMRIGHT"/>
  166.         </Anchors>
  167.         <Scripts>
  168.           <OnClick function="CancelButton_OnClick"/>
  169.         </Scripts>
  170.       </Button>
  171.       <Button parentKey="defaultsButton" inherits="UIPanelButtonTemplate" text="RESET_TO_DEFAULT">
  172.         <Size x="130" y="22"/>
  173.         <Anchors>
  174.           <Anchor point="BOTTOMLEFT" x="16" y="16"/>
  175.         </Anchors>
  176.         <Scripts>
  177.           <OnClick function="DefaultsButton_OnClick"/>
  178.         </Scripts>
  179.       </Button>
  180.       <Frame name="$parentCategoryList" parentKey="categoryList" inherits="OptionsFrameListTemplate">
  181.         <Size x="175" y="569"/>
  182.         <Anchors>
  183.           <Anchor point="TOPLEFT" x="22" y="-40"/>
  184.         </Anchors>
  185.         <Scripts>
  186.           <OnLoad>
  187.             self.labelText = CATEGORY;
  188.             OptionsList_OnLoad(self, "KeyBindingsCategoryListButtonTemplate");
  189.           </OnLoad>
  190.         </Scripts>
  191.       </Frame>
  192.       <Frame parentKey="bindingsContainer">
  193.         <Anchors>
  194.           <Anchor point="TOPLEFT" relativeKey="$parent.categoryList" relativePoint="TOPRIGHT" x="16" y="0"/>
  195.           <Anchor point="BOTTOMLEFT" relativeKey="$parent.categoryList" relativePoint="BOTTOMRIGHT" x="16" y="1"/>
  196.           <Anchor point="RIGHT" x="-22" y="0"/>
  197.         </Anchors>
  198.         <Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
  199.           <EdgeSize>
  200.             <AbsValue val="16"/>
  201.           </EdgeSize>
  202.           <TileSize>
  203.             <AbsValue val="16"/>
  204.           </TileSize>
  205.           <BackgroundInsets>
  206.             <AbsInset left="5" right="5" top="5" bottom="5"/>
  207.           </BackgroundInsets>
  208.         </Backdrop>
  209.         <Scripts>
  210.           <OnLoad>
  211.             self:SetBackdropBorderColor(.6, .6, .6, 1);
  212.           </OnLoad>
  213.         </Scripts>
  214.       </Frame>
  215.       <ScrollFrame name="$parentScrollFrame" parentKey="scrollFrame" inherits="FauxScrollFrameTemplate">
  216.         <Size x="560" y="554"/>
  217.         <Anchors>
  218.           <Anchor point="TOPRIGHT" x="-51" y="-49"/>
  219.         </Anchors>
  220.         <Layers>
  221.           <Layer level="BORDER">
  222.             <Texture parentKey="scrollBorderTop" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
  223.               <Size x="28" y="48"/>
  224.               <Anchors>
  225.                 <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="28" y="4"/>
  226.               </Anchors>
  227.               <TexCoords left="0" right="0.484375" top="0" bottom="0.2"/>
  228.             </Texture>
  229.             <Texture parentKey="scrollBorderBottom" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
  230.               <Size x="28" y="67"/>
  231.               <Anchors>
  232.                 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="28" y="-2"/>
  233.               </Anchors>
  234.               <TexCoords left="0.515625" right="1.0" top="0.1440625" bottom="0.4140625"/>
  235.             </Texture>
  236.             <Texture parentKey="scrollBorderMiddle" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
  237.               <Anchors>
  238.                 <Anchor point="TOPLEFT" relativeKey="$parent.scrollBorderTop" relativePoint="BOTTOMLEFT"/>
  239.                 <Anchor point="BOTTOMRIGHT" relativeKey="$parent.scrollBorderBottom" relativePoint="TOPRIGHT"/>
  240.               </Anchors>
  241.               <TexCoords left="0" right="0.484375" top="0.1640625" bottom="1"/>
  242.             </Texture>
  243.           </Layer>
  244.           <Layer level="BACKGROUND">
  245.             <Texture parentKey="scrollFrameScrollBarBackground">
  246.               <Anchors>
  247.                 <Anchor point="TOPLEFT" relativeKey="$parent.scrollBorderTop" relativePoint="TOPLEFT" x="2"/>
  248.                 <Anchor point="BOTTOMRIGHT" relativeKey="$parent.scrollBorderBottom" relativePoint="BOTTOMRIGHT"/>
  249.               </Anchors>
  250.               <Color r="0" g="0" b="0"/>
  251.             </Texture>
  252.           </Layer>
  253.         </Layers>
  254.         <Scripts>
  255.           <OnVerticalScroll>
  256.             FauxScrollFrame_OnVerticalScroll(self, offset, KEY_BINDING_HEIGHT, KeyBindingFrame_Update);
  257.           </OnVerticalScroll>
  258.           <OnMouseWheel>
  259.             if ( not KeyBindingFrame.selected ) then
  260.               ScrollFrameTemplate_OnMouseWheel(self, delta);
  261.             else
  262.               KeyBindingFrame_OnMouseWheel(KeyBindingFrame, delta);
  263.             end
  264.           </OnMouseWheel>
  265.         </Scripts>
  266.       </ScrollFrame>
  267.     </Frames>
  268.     <Scripts>
  269.       <OnClick function="KeyBindingFrame_OnKeyDown"/>
  270.       <OnKeyDown function="KeyBindingFrame_OnKeyDown"/>
  271.       <OnShow function="KeyBindingFrame_OnShow"/>
  272.       <OnHide function="KeyBindingFrame_OnHide"/>
  273.       <OnLoad function="KeyBindingFrame_OnLoad"/>
  274.       <OnEvent function="KeyBindingFrame_OnEvent"/>
  275.       <OnMouseWheel function="KeyBindingFrame_OnMouseWheel"/>
  276.     </Scripts>
  277.   </Button>
  278. </Ui>