Blizzard_BindingUI/Blizzard_BindingUI.xml

Blizzard_BindingUI/Blizzard_BindingUI.xml (9.0.2.37474; unchanged since 9.0.1.36230)
  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" mixin="KeyBindingButtonMixin">
  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 method="OnClick"/>
  17.       <OnLoad method="OnLoad"/>
  18.     </Scripts>
  19.     <NormalFont style="GameFontHighlightSmall"/>
  20.     <DisabledFont style="GameFontDisableSmall"/>
  21.     <HighlightFont style="GameFontHighlightSmall"/>
  22.   </Button>
  23.   <Button name="KeyBindingFrameBindingButtonTemplateWithLabel" inherits="KeyBindingFrameBindingButtonTemplate" virtual="true">
  24.     <Layers>
  25.       <Layer level="BACKGROUND">
  26.         <FontString parentKey="KeyLabel" inherits="GameFontNormalSmall">
  27.           <Anchors>
  28.             <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" x="4" y="5" />
  29.           </Anchors>
  30.         </FontString>
  31.       </Layer>
  32.     </Layers>
  33.   </Button>
  34.   <Frame name="KeyBindingFrameBindingTemplate" virtual="true" mixin="KeyBindingFrameBindingTemplateMixin">
  35.     <Size x="560" y="25"/>
  36.     <Layers>
  37.       <Layer level="BACKGROUND">
  38.         <FontString parentKey="description" inherits="GameFontNormalSmall" justifyH="LEFT">
  39.           <Size x="170" y="24"/>
  40.           <Anchors>
  41.             <Anchor point="LEFT"/>
  42.           </Anchors>
  43.         </FontString>
  44.         <FontString parentKey="header" inherits="GameFontHighlight">
  45.           <Anchors>
  46.             <Anchor point="LEFT"/>
  47.           </Anchors>
  48.         </FontString>
  49.       </Layer>
  50.     </Layers>
  51.     <Frames>
  52.       <Button name="$parentKey1Button" parentKey="key1Button" inherits="KeyBindingFrameBindingButtonTemplate" id="1">
  53.         <Size x="180" y="22"/>
  54.         <Anchors>
  55.           <Anchor point="LEFT" x="185" y="0"/>
  56.         </Anchors>
  57.       </Button>
  58.       <Button name="$parentKey2Button" parentKey="key2Button" inherits="KeyBindingFrameBindingButtonTemplate" id="2">
  59.         <Size x="180" y="22"/>
  60.         <Anchors>
  61.           <Anchor point="LEFT" relativeTo="$parentKey1Button" relativePoint="RIGHT"/>
  62.         </Anchors>
  63.       </Button>
  64.     </Frames>
  65.   </Frame>
  66.   <Button name="KeybindingsCategoryListButtonTemplate" inherits="OptionsListButtonTemplate" virtual="true" mixin="KeybindingsCategoryListButtonMixin">
  67.     <Scripts>
  68.       <OnLoad>
  69.         OptionsListButton_OnLoad(self);
  70.       </OnLoad>
  71.       <OnClick method="OnClick"/>
  72.     </Scripts>
  73.   </Button>
  74.   <Button name="KeybindsCancelButtonTemplate" inherits="UIPanelButtonTemplate" text="CANCEL" virtual="true" mixin="KeybindingsCancelButtonMixin">
  75.     <Size x="96" y="22"/>
  76.     <Scripts>
  77.       <OnClick method="OnClick"/>
  78.     </Scripts>
  79.   </Button>
  80.   <CheckButton name="KeybindsCharacterSpecificButtonTemplate" inherits="UICheckButtonTemplate" virtual="true" mixin="KeybindingsCharacterSpecificButtonMixin">
  81.     <Size x="20" y="20"/>
  82.     <HitRectInsets left="0" right="-100" top="0" bottom="0"/>
  83.     <Scripts>
  84.       <OnLoad method="OnLoad"/>
  85.       <OnClick method="OnClick"/>
  86.       <OnEnter method="OnEnter"/>
  87.       <OnLeave method="OnHide"/>
  88.     </Scripts>
  89.   </CheckButton>
  90.   <Button name="KeybindingsOkayButtonTemplate" inherits="UIPanelButtonTemplate" text="OKAY" virtual="true" mixin="KeybindingsOkayButtonMixin">
  91.     <Size x="96" y="22"/>
  92.     <Scripts>
  93.       <OnClick method="OnClick"/>
  94.     </Scripts>
  95.   </Button>
  96.   <Button name="KeybindingsDefaultsButtonTemplate" inherits="UIPanelButtonTemplate" text="RESET_TO_DEFAULT" virtual="true" mixin="KeybindingsDefaultsButtonMixin">
  97.     <Size x="150" y="22"/>
  98.     <Scripts>
  99.       <OnClick method="OnClick"/>
  100.     </Scripts>
  101.   </Button>
  102.   <Button name="KeybindingsPhantomFrameTemplate" inherits="QuickKeybindButtonTemplate" registerForClicks="AnyUp" virtual="true"/>
  103.  
  104.   <Button name="KeyBindingFrame" parent="UIParent" toplevel="true" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" enableKeyboard="true" mixin="KeyBindingFrameMixin">
  105.     <Size x="858" y="660"/>
  106.     <Anchors>
  107.       <Anchor point="CENTER"/>
  108.     </Anchors>
  109.     <Layers>
  110.       <Layer level="BORDER">
  111.         <Texture parentKey="topSeparator">
  112.           <Size x="550" y="1"/>
  113.           <Anchors>
  114.             <Anchor point="TOP" relativeTo="$parent" relativePoint="TOP" x="90" y="-70"/>
  115.           </Anchors>
  116.           <Color r="0.25" g="0.25" b="0.25"/>
  117.         </Texture>
  118.         <FontString parentKey="commandLabel" inherits="GameFontWhite" text="COMMAND">
  119.           <Anchors>
  120.             <Anchor point="TOP" x="-141" y="-50"/>
  121.           </Anchors>
  122.         </FontString>
  123.         <FontString parentKey="key1Label" inherits="GameFontWhite" text="KEY1">
  124.           <Anchors>
  125.             <Anchor point="LEFT" relativeKey="$parent.commandLabel" relativePoint="RIGHT" x="185" y="0"/>
  126.           </Anchors>
  127.         </FontString>
  128.         <FontString parentKey="key2Label" inherits="GameFontWhite" text="KEY2">
  129.           <Anchors>
  130.             <Anchor point="LEFT" relativeKey="$parent.key1Label" relativePoint="RIGHT" x="145" y="0"/>
  131.           </Anchors>
  132.         </FontString>
  133.         <Texture parentKey="bottomSeparator">
  134.           <Size x="550" y="1"/>
  135.           <Anchors>
  136.             <Anchor point="BOTTOM" x="90" y="90"/>
  137.           </Anchors>
  138.           <Color r="0.25" g="0.25" b="0.25"/>
  139.         </Texture>
  140.         <FontString parentKey="outputText" inherits="GameFontWhite">
  141.           <Anchors>
  142.             <Anchor point="BOTTOM" x="90" y="70"/>
  143.           </Anchors>
  144.         </FontString>
  145.       </Layer>
  146.     </Layers>
  147.     <Frames>
  148.       <Frame parentKey="BG" inherits="DialogBorderTemplate"/>
  149.       <Frame parentKey="Header" inherits="DialogHeaderTemplate">
  150.         <KeyValues>
  151.           <KeyValue key="textString" value="KEY_BINDINGS" type="global"/>
  152.         </KeyValues>
  153.       </Frame>
  154.       <CheckButton parentKey="characterSpecificButton" inherits="KeybindsCharacterSpecificButtonTemplate">
  155.         <Anchors>
  156.           <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="-245" y="-20"/>
  157.         </Anchors>
  158.       </CheckButton>
  159.       <Frame name="$parentCategoryList" parentKey="categoryList" inherits="OptionsFrameListTemplate">
  160.         <Size x="175" y="569"/>
  161.         <Anchors>
  162.           <Anchor point="TOPLEFT" x="22" y="-40"/>
  163.         </Anchors>
  164.         <KeyValues>
  165.           <KeyValue key="labelText" value="CATEGORY" type="global"/>
  166.           <KeyValue key="buttonTemplate" value="KeyBindingsCategoryListButtonTemplate" type="string"/>
  167.         </KeyValues>
  168.       </Frame>
  169.       <Button parentKey="defaultsButton" inherits="KeybindingsDefaultsButtonTemplate">
  170.         <Anchors>
  171.           <Anchor point="BOTTOM" x="0" y="16"/>
  172.           <Anchor point="LEFT" relativeKey="$parent.categoryList" relativePoint="LEFT"/>
  173.         </Anchors>
  174.       </Button>
  175.       <Frame parentKey="bindingsContainer" inherits="TooltipBorderBackdropTemplate">
  176.         <Anchors>
  177.           <Anchor point="TOPLEFT" relativeKey="$parent.categoryList" relativePoint="TOPRIGHT" x="16" y="0"/>
  178.           <Anchor point="BOTTOMLEFT" relativeKey="$parent.categoryList" relativePoint="BOTTOMRIGHT" x="16" y="1"/>
  179.           <Anchor point="RIGHT" x="-22" y="0"/>
  180.         </Anchors>
  181.         <KeyValues>
  182.           <KeyValue key="backdropBorderColor" value="LIGHTGRAY_FONT_COLOR" type="global"/>
  183.         </KeyValues>
  184.       </Frame>
  185.       <Button parentKey="cancelButton" inherits="KeybindsCancelButtonTemplate">
  186.         <Anchors>
  187.           <Anchor point="BOTTOM" relativeKey="$parent.defaultsButton" relativePoint="BOTTOM"/>
  188.           <Anchor point="RIGHT" relativeKey="$parent.bindingsContainer" relativePoint="RIGHT"/>
  189.         </Anchors>
  190.       </Button>
  191.       <Button parentKey="okayButton" inherits="KeybindingsOkayButtonTemplate">
  192.         <Anchors>
  193.           <Anchor point="BOTTOMRIGHT" relativeKey="$parent.cancelButton" relativePoint="BOTTOMLEFT" x="-2" y="0"/>
  194.         </Anchors>
  195.       </Button>
  196.       <Button parentKey="unbindButton" inherits="UIPanelButtonTemplate" text="UNBIND" mixin="KeybindingsUnbindButtonMixin">
  197.         <Size x="130" y="22"/>
  198.         <Anchors>
  199.           <Anchor point="BOTTOMRIGHT" relativeKey="$parent.okayButton" relativePoint="BOTTOMLEFT" x="-2" y="0"/>
  200.         </Anchors>
  201.         <Scripts>
  202.           <OnClick method="OnClick"/>
  203.         </Scripts>
  204.       </Button>
  205.       <Button parentKey="quickKeybindButton" inherits="UIPanelButtonTemplate" text="QUICK_KEYBIND_MODE_BUTTON" mixin="QuickKeybindButtonMixin">
  206.         <Size x="200" y="22"/>
  207.         <Anchors>
  208.           <Anchor point="LEFT" relativeKey="$parent.bindingsContainer" relativePoint="LEFT" x="0" y="0"/>
  209.           <Anchor point="BOTTOM" relativeKey="$parent.cancelButton" relativePoint="BOTTOM"/>
  210.         </Anchors>
  211.         <Scripts>
  212.           <OnClick method="OnClick"/>
  213.         </Scripts>
  214.       </Button>
  215.       <ScrollFrame name="$parentScrollFrame" parentKey="scrollFrame" inherits="FauxScrollFrameTemplate" mixin="KeyBindingFrameScrollFrameMixin">
  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 method="OnVerticalScroll"/>
  256.           <OnMouseWheel method="OnMouseWheel"/>
  257.         </Scripts>
  258.       </ScrollFrame>
  259.     </Frames>
  260.     <Scripts>
  261.       <OnClick method="OnKeyDown"/>
  262.       <OnKeyDown method="OnKeyDown"/>
  263.       <OnGamePadButtonDown method="OnKeyDown"/>
  264.       <OnShow method="OnShow"/>
  265.       <OnHide method="OnHide"/>
  266.       <OnLoad method="OnLoad"/>
  267.       <OnEvent method="OnEvent"/>
  268.       <OnMouseWheel method="OnMouseWheel"/>
  269.     </Scripts>
  270.   </Button>
  271.  
  272.   <Button name="QuickKeybindFrame" parent="UIParent" toplevel="true" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" enableKeyboard="true" mixin="QuickKeybindFrameMixin">
  273.     <Size x="450" y="250"/>
  274.     <Anchors>
  275.       <Anchor point="CENTER"/>
  276.     </Anchors>
  277.     <Layers>
  278.       <Layer level="BORDER">
  279.         <FontString parentKey="instructionText" inherits="GameFontWhite" text="QUICK_KEYBIND_DESCRIPTION" wordwrap="true">
  280.           <Size x="400" y="50"/>
  281.           <Anchors>
  282.             <Anchor point="TOP" x="0" y="-20" />
  283.           </Anchors>
  284.         </FontString>
  285.         <FontString parentKey="cancelDescriptionText" inherits="GameFontWhite" text="QUICK_KEYBIND_CANCEL_DESCRIPTION" wordwrap="true">
  286.           <Size x="400" y="50"/>
  287.           <Anchors>
  288.             <Anchor point="CENTER" relativeKey="$parent.instructionText" relativePoint="CENTER" x="0" y="-50"/>
  289.           </Anchors>
  290.         </FontString>
  291.         <FontString parentKey="outputText" inherits="GameFontWhite">
  292.           <Anchors>
  293.             <Anchor point="CENTER" relativeKey="$parent.cancelDescriptionText" relativePoint="CENTER" x="0" y="-50"/>
  294.           </Anchors>
  295.         </FontString>
  296.       </Layer>
  297.     </Layers>
  298.     <Frames>
  299.       <Frame parentKey="BG" inherits="DialogBorderTemplate"/>
  300.       <Frame parentKey="Header" inherits="DialogHeaderTemplate">
  301.         <KeyValues>
  302.           <KeyValue key="textString" value="QUICK_KEYBIND_MODE" type="global"/>
  303.         </KeyValues>
  304.       </Frame>
  305.       <CheckButton parentKey="characterSpecificButton" inherits="KeybindsCharacterSpecificButtonTemplate">
  306.         <Anchors>
  307.           <Anchor point="CENTER" x="-82" y="-65"/>
  308.         </Anchors>
  309.       </CheckButton>
  310.       <Button parentKey="defaultsButton" inherits="KeybindingsDefaultsButtonTemplate">
  311.         <Anchors>
  312.           <Anchor point="CENTER" x="0" y="-95"/>
  313.         </Anchors>
  314.       </Button>
  315.       <Button parentKey="cancelButton" inherits="KeybindsCancelButtonTemplate">
  316.         <Anchors>
  317.           <Anchor point="BOTTOMLEFT" relativeKey="$parent.defaultsButton" relativePoint="BOTTOMRIGHT" x="25" y="0"/>
  318.         </Anchors>
  319.       </Button>
  320.       <Button parentKey="okayButton" inherits="KeybindingsOkayButtonTemplate">
  321.         <Anchors>
  322.           <Anchor point="BOTTOMRIGHT" relativeKey="$parent.defaultsButton" relativePoint="BOTTOMLEFT" x="-25" y="0"/>
  323.         </Anchors>
  324.       </Button>
  325.       <Button parentKey="phantomExtraActionButton" inherits="KeybindingsPhantomFrameTemplate" mixin="PhantomExtraActionButtonMixin">
  326.         <Size x="50" y="50"/>
  327.         <KeyValues>
  328.           <KeyValue key="commandName" value="EXTRAACTIONBUTTON1" type="string"/>
  329.         </KeyValues>
  330.         <Anchors>
  331.           <Anchor point="BOTTOM" relativeTo="UIParent" relativePoint="BOTTOM" x="0" y="150"/>
  332.         </Anchors>
  333.         <Layers>
  334.           <Layer level="ARTWORK">
  335.             <FontString parentKey="HotKey" inherits="NumberFontNormalSmallGray" justifyH="RIGHT">
  336.               <Size x="36" y="10"/>
  337.               <Anchors>
  338.                 <Anchor point="TOPRIGHT" x="-5" y="-8"/>
  339.               </Anchors>
  340.             </FontString>
  341.           </Layer>
  342.           <Layer level="BACKGROUND">
  343.             <Texture parentKey="normalTexture" file="Interface\Buttons\UI-Quickslot2">
  344.               <Anchors>
  345.                 <Anchor point="TOPLEFT" x="-16" y="16"/>
  346.                 <Anchor point="BOTTOMRIGHT" x="16" y="-16"/>
  347.               </Anchors>
  348.             </Texture>
  349.           </Layer>
  350.         </Layers>
  351.         <Scripts>
  352.           <OnLoad method="OnLoad"/>
  353.           <OnUpdate method="OnUpdate"/>
  354.           <OnEvent method="OnEvent"/>
  355.         </Scripts>
  356.       </Button>
  357.     </Frames>
  358.     <Scripts>
  359.       <OnShow method="OnShow"/>
  360.       <OnHide method="OnHide"/>
  361.       <OnKeyDown method="OnKeyDown"/>
  362.       <OnGamePadButtonDown method="OnKeyDown"/>
  363.       <OnMouseWheel method="OnMouseWheel"/>
  364.     </Scripts>
  365.   </Button>
  366. </Ui>