<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="weights.lua"/> <!-- virtual frame used for classes in tiered lists --> <Frame name="ww_classFrame" virtual="true"> <Size> <AbsDimension x="0" y="22"/> </Size> <Anchors> <Anchor point="RIGHT"/> </Anchors> <Frames> <Button name="$parentText" parentKey="text"> <Size> <AbsDimension x="0" y="20"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="5" y="-1"/> </Offset> </Anchor> <Anchor point="RIGHT"/> </Anchors> <NormalTexture file="Interface\Buttons\UI-MinusButton-UP"> <Size> <AbsDimension x="16" y="16"/> </Size> <Anchors> <Anchor point="LEFT"/> </Anchors> </NormalTexture> <PushedTexture file="Interface\Buttons\UI-MinusButton-DOWN"> <Size> <AbsDimension x="16" y="16"/> </Size> <Anchors> <Anchor point="LEFT"/> </Anchors> </PushedTexture> <HighlightTexture file="Interface\Buttons\UI-PlusButton-Hilight" alphaMode="ADD"> <Size> <AbsDimension x="16" y="16"/> </Size> <Anchors> <Anchor point="LEFT"/> </Anchors> </HighlightTexture> <Scripts> <OnLoad function="ww_normalFontString"/> <OnClick function="ww_toggleCollapse"/> </Scripts> </Button> </Frames> </Frame> <!-- virtual frame used for categories in tiered lists --> <Frame name="ww_categoryFrame" virtual="true"> <Size> <AbsDimension x="0" y="22"/> </Size> <Anchors> <Anchor point="RIGHT"/> </Anchors> <Frames> <Button name="$parentText" parentKey="text"> <Size> <AbsDimension x="0" y="20"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="0" y="-1"/> </Offset> </Anchor> <Anchor point="RIGHT"/> </Anchors> <NormalTexture file="Interface\Buttons\UI-MinusButton-UP"> <Size> <AbsDimension x="16" y="16"/> </Size> <Anchors> <Anchor point="LEFT"/> </Anchors> </NormalTexture> <PushedTexture file="Interface\Buttons\UI-MinusButton-DOWN"> <Size> <AbsDimension x="16" y="16"/> </Size> <Anchors> <Anchor point="LEFT"/> </Anchors> </PushedTexture> <HighlightTexture file="Interface\Buttons\UI-PlusButton-Hilight" alphaMode="ADD"> <Size> <AbsDimension x="16" y="16"/> </Size> <Anchors> <Anchor point="LEFT"/> </Anchors> </HighlightTexture> <Scripts> <OnLoad function="ww_highlightFontString"/> <OnClick function="ww_toggleCollapse"/> </Scripts> </Button> </Frames> </Frame> <!--virtual frame used to allow for script generated frames with stat information--> <Frame name="ww_statFrame" virtual="true"> <Size> <AbsDimension x="0" y="22"/> </Size> <Anchors> <Anchor point="RIGHT"> <Offset> <AbsDimension x="-5" y="0"/> </Offset> </Anchor> </Anchors> <Layers> <Layer level="OVERLAY"> <FontString name="$parentText" parentKey="text" inherits="GameFontNormal"> <Size> <AbsDimension x="0" y="20"/> </Size> <Anchors> <Anchor point="LEFT"/> </Anchors> </FontString> </Layer> </Layers> <Frames> <Frame name="$parentHighlightFrame" parentKey="highlightFrame" inherits="ww_highlightedFrame"> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="-5" y="-1"/> </Offset> </Anchor> <Anchor point="BOTTOMRIGHT"> <Offset> <AbsDimension x="-132" y="-1"/> </Offset> </Anchor> </Anchors> </Frame> <EditBox letters="16" name="$parentStatValue" parentKey="statValue" autoFocus="false"> <Size> <AbsDimension x="130" y="22"/> </Size> <Anchors> <Anchor point="RIGHT"/> </Anchors> <Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> <EdgeSize> <AbsValue val="10"/> </EdgeSize> <TileSize> <AbsValue val="10"/> </TileSize> <BackgroundInsets> <AbsInset left="0" right="0" top="5" bottom="5"/> </BackgroundInsets> </Backdrop> <FontString inherits="GameFontNormal"> <Anchors> <Anchor point="LEFT"/> </Anchors> </FontString> <Scripts> <OnLoad function="ww_editBoxTextInsets"/> <OnTextChanged function="ww_statValueTextChanged"/> <OnChar function="ww_statValueOnChar"/> <OnEditFocusGained function="ww_editFocusGained"/> <OnEditFocusLost function="ww_editFocusLost"/> <OnTabPressed function="ww_statValueTabPressed"/> <OnEscapePressed function="ww_clearFocus"/> </Scripts> </EditBox> </Frames> </Frame> <!--virtual frame used to allow for script generated frames with trigger information--> <Frame name="ww_triggerFrame" virtual="true"> <Size> <AbsDimension x="0" y="22"/> </Size> <Anchors> <Anchor point="RIGHT"> <Offset> <AbsDimension x="-5" y="0"/> </Offset> </Anchor> </Anchors> <Layers> <Layer level="OVERLAY"> <FontString name="$parentText" parentKey="text" inherits="GameFontNormal"> <Size> <AbsDimension x="0" y="20"/> </Size> <Anchors> <Anchor point="LEFT"/> </Anchors> </FontString> </Layer> </Layers> <Frames> <CheckButton name="$parentActive" parentKey="active" inherits="UICheckButtonTemplate"> <Size> <AbsDimension x="20" y="20"/> </Size> <Anchors> <Anchor point="RIGHT"> <Offset> <AbsDimension x="-112" y="0"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick function="ww_toggleTriggerActive"/> </Scripts> </CheckButton> </Frames> </Frame> <!--virtual frame used to allow for script generated frames with stat information--> <Frame name="ww_weightFrame" virtual="true"> <Size> <AbsDimension x="0" y="22"/> </Size> <Anchors> <Anchor point="RIGHT"/> </Anchors> <Frames> <CheckButton name="$parentCheckButton" parentKey="checkButton" inherits="UICheckButtonTemplate"> <Size> <AbsDimension x="20" y="20"/> </Size> <Anchors> <Anchor point="LEFT"> <Offset> <AbsDimension x="0" y="0"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick function="ww_toggleWeightActive"/> <OnEnter function="ww_showWeightTooltip"/> <OnLeave function="ww_hideTooltip"/> </Scripts> </CheckButton> <Button name="$parentText" parentKey="text"> <Size> <AbsDimension x="0" y="20"/> </Size> <Anchors> <Anchor point="LEFT"> <Offset> <AbsDimension x="25" y="0"/> </Offset> </Anchor> <Anchor point="RIGHT"/> </Anchors> <HighlightTexture file="Interface\Buttons\UI-Listbox-Highlight2" alphaMode="ADD"> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="-3" y="-2"/> </Offset> </Anchor> <Anchor point="BOTTOMRIGHT"> <Offset> <AbsDimension x="-7" y="0"/> </Offset> </Anchor> </Anchors> </HighlightTexture> <Frames> <Frame name="$parentHighlightFrame" parentKey="highlightFrame" inherits="ww_highlightedFrame"> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="-5" y="-1"/> </Offset> </Anchor> <Anchor point="BOTTOMRIGHT"> <Offset> <AbsDimension x="-5" y="-1"/> </Offset> </Anchor> </Anchors> </Frame> </Frames> <Scripts> <OnClick function="ww_confirmDiscardWeightChangesChangeWeight"/> <OnLoad function="ww_defaultFontString"/> </Scripts> </Button> </Frames> </Frame> <!-- The frame containing all weight-related content --> <Frame name="ww_weights" parent="UIParent" hidden="true" frameStrata="HIGH"> <Size> <AbsDimension x="650" y="600"/> </Size> <Anchors> <Anchor point="CENTER"/> </Anchors> <Layers> <Layer level="OVERLAY"> <FontString name="$parentTitle" parentKey="title" inherits="GameFontNormalLarge" text="WEIGHTS_TITLE"> <Anchors> <Anchor point="TOP"> <Offset> <AbsDimension x="0" y="-5"/> </Offset> </Anchor> </Anchors> </FontString> <!--Mr. Robot weight attribution--> <FontString name="$parentWeightsAttribution" parentKey="weightsAttribution" inherits="GameFontNormal" text="WEIGHTS_ATTRIBUTION"> <Anchors> <Anchor point="BOTTOM"> <Offset> <AbsDimension x="20" y="5"/> </Offset> </Anchor> </Anchors> </FontString> </Layer> <Layer level="BACKGROUND"> <Texture setAllPoints="true"> <!--Plain black background with 50% alpha--> <Color r="0" g="0" b="0" a="0.8"/> </Texture> </Layer> </Layers> <!--list of objects within the configuration window--> <Frames> <!--The Class Selection Frame--> <Frame name="$parentLeftPanel" parentKey="leftPanel"> <Size> <AbsDimension x="150" y="0"/> </Size> <Anchors> <Anchor point="TOP"> <Offset> <AbsDimension x="0" y="-25"/> </Offset> </Anchor> <Anchor point="LEFT"/> <Anchor point="BOTTOM"> <Offset> <AbsDimension x="0" y="25"/> </Offset> </Anchor> </Anchors> <Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> <EdgeSize> <AbsValue val="10"/> </EdgeSize> <TileSize> <AbsValue val="10"/> </TileSize> <BackgroundInsets> <AbsInset left="0" right="0" top="5" bottom="5"/> </BackgroundInsets> </Backdrop> <Frames> <!--used to hold a series of stat frames to maintain absolute position when scrolling--> <Frame name="$parentScrollContainer" parentKey="scrollContainer"> <Anchors> <Anchor point="LEFT"/> <Anchor point="RIGHT"/> </Anchors> </Frame> <!--Invisible frame with scroll bar that does the scrolling--> <ScrollFrame name="$parentScrollFrame" parentKey="scrollFrame" inherits="FauxScrollFrameTemplate"> <Anchors> <Anchor point="TOPLEFT"/> <Anchor point="BOTTOMRIGHT"> <Offset> <AbsDimension x="-5" y="0"/> </Offset> </Anchor> </Anchors> <Scripts> <OnShow function="ww_classListScrollFrameOnShow"/> <OnVerticalScroll function="ww_scrollFrameOnVerticalScroll"/> </Scripts> </ScrollFrame> </Frames> </Frame> <!--Right Frame for viewing the weights for each class--> <Frame name="$parentRightPanel" parentKey="rightPanel" hidden="true"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentLeftPanel" relativePoint="TOPRIGHT"> <Offset> <AbsDimension x="20" y="0"/> </Offset> </Anchor> <Anchor point="BOTTOM" relativeTo="$parentLeftPanel"/> <Anchor point="RIGHT"> <Offset> <AbsDimension x="-20" y="0"/> </Offset> </Anchor> </Anchors> <Layers> <Layer level="OVERLAY"> <FontString name="$parentHeader" parentKey="header" inherits="GameFontNormal"> <Anchors> <Anchor point="TOP"> <Offset> <AbsDimension x="0" y="-5"/> </Offset> </Anchor> </Anchors> </FontString> </Layer> </Layers> <Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> <EdgeSize> <AbsValue val="10"/> </EdgeSize> <TileSize> <AbsValue val="10"/> </TileSize> <BackgroundInsets> <AbsInset left="0" right="0" top="5" bottom="5"/> </BackgroundInsets> </Backdrop> <Frames> <!--Save button--> <Button name="$parentSaveButton" parentKey="saveButton" inherits="ww_localizedButton" text="Save"> <Size> <AbsDimension x="80" y="22"/> </Size> <Anchors> <Anchor point="BOTTOMLEFT"> <Offset> <AbsDimension x="5" y="5"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick function="ww_configSaveWeight"/> </Scripts> </Button> <!--Copy button--> <!-- Cannot inherit localized button as it needs its own onload handler --> <Button name="$parentCopyButton" parentKey="copyButton" inherits="UIPanelButtonTemplate" text="Copy"> <Size> <AbsDimension x="80" y="22"/> </Size> <Scripts> <OnClick function="ww_copyWeight"/> <OnLoad function="ww_copyButtonOnLoad"/> </Scripts> </Button> <!--Reset button--> <Button name="$parentResetButton" parentKey="resetButton" inherits="ww_localizedButton" text="Reset"> <Size> <AbsDimension x="80" y="22"/> </Size> <Anchors> <Anchor point="BOTTOMRIGHT"> <Offset> <AbsDimension x="-5" y="5"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick function="ww_configResetWeight"/> </Scripts> </Button> <!--Delete button--> <!-- Cannot inherit localized button as it needs its own onload handler --> <Button name="$parentDeleteButton" parentKey="deleteButton" inherits="UIPanelButtonTemplate" text="Delete"> <Size> <AbsDimension x="80" y="22"/> </Size> <Scripts> <OnClick function="ww_configDeleteWeight"/> <OnLoad function="ww_deleteButtonOnLoad"/> </Scripts> </Button> <!--used to hold a series of stat frames to maintain absolute position when scrolling--> <Frame name="$parentScrollContainer" parentKey="scrollContainer"> <Anchors> <Anchor point="LEFT"/> <Anchor point="RIGHT"/> </Anchors> </Frame> <!--Invisible frame with scroll bar that does the scrolling--> <ScrollFrame name="$parentScrollFrame" parentKey="scrollFrame" inherits="FauxScrollFrameTemplate"> <Anchors> <Anchor point="TOPLEFT"/> <Anchor point="BOTTOMRIGHT"> <Offset> <AbsDimension x="-5" y="0"/> </Offset> </Anchor> </Anchors> <Scripts> <OnShow function="ww_weightFrameScrollFrameOnShow"/> <OnVerticalScroll function="ww_scrollFrameOnVerticalScroll"/> </Scripts> </ScrollFrame> </Frames> <Scripts> <OnShow function="ww_weightFrameOnShow"/> </Scripts> </Frame> <!--Close Button for the configuration window--> <Button name="$parentCloseButton" parentKey="closeButton" inherits="UIPanelCloseButton"> <Anchors> <Anchor point="TOPRIGHT"/> </Anchors> </Button> <!--restore default button--> <Button name="$parentDefaultsButton" parentKey="defaultsButton" inherits="ww_localizedButton" text="Restore Defaults"> <Size> <AbsDimension x="150" y="22"/> </Size> <Anchors> <Anchor point="BOTTOMLEFT"/> </Anchors> <Scripts> <OnClick function="ww_restoreDefaultWeights"/> </Scripts> </Button> <!--Create new weight button--> <Button name="$parentNewWeightButton" parentKey="newWeightButton" inherits="ww_localizedButton" text="New Weight"> <Size> <AbsDimension x="100" y="22"/> </Size> <Anchors> <Anchor point="BOTTOMRIGHT"/> </Anchors> <Scripts> <OnClick function="ww_configNewWeight"/> </Scripts> </Button> </Frames> <Scripts> <OnLoad function="ww_weightsOnShow"/> <OnHide function="ww_weightsOnHide"/> </Scripts> </Frame> <Frame name="ww_newWeight" parent="UIParent" hidden="true" frameStrata="DIALOG"> <Size> <AbsDimension x="420" y="120"/> </Size> <Anchors> <Anchor point="CENTER"/> </Anchors> <Layers> <Layer level="ARTWORK"> <FontString name="$parentText" parentKey="text" inherits="GameFontHighlight" text="CHOOSE_WEIGHT_NAME"> <Size> <AbsDimension x="380" y="0"/> </Size> <Anchors> <Anchor point="TOP"> <Offset> <AbsDimension x="0" y="-16"/> </Offset> </Anchor> </Anchors> </FontString> </Layer> <Layer level="BACKGROUND"> <Texture setAllPoints="true"> <!--Plain black background with 50% alpha--> <Color r="0" g="0" b="0" a="0.5"/> </Texture> </Layer> </Layers> <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> <Button name="$parentDropDown" parentKey="dropdown" inherits="UIDropDownMenuTemplate"> <Anchors> <Anchor point="LEFT"/> </Anchors> <Scripts> <OnShow function="ww_initializeClassDropDown"/> </Scripts> </Button> <EditBox letters="50" name="$parentEditBox" parentKey="editBox"> <Size> <AbsDimension x="0" y="32"/> </Size> <Anchors> <Anchor point="BOTTOM" > <Offset> <AbsDimension x="0" y="45"/> </Offset> </Anchor> <Anchor point="RIGHT"> <Offset> <AbsDimension x="-25" y="0"/> </Offset> </Anchor> <Anchor point="LEFT" relativeTo="$parentDropDown" relativePoint="RIGHT"> <Offset> <AbsDimension x="125" y="0"/> </Offset> </Anchor> </Anchors> <FontString inherits="ChatFontNormal"/> <Layers> <Layer level="BACKGROUND"> <Texture file="Interface\ChatFrame\UI-ChatInputBorder-Left"> <Size> <AbsDimension x="128" y="32"/> </Size> <Anchors> <Anchor point="LEFT"> <Offset> <AbsDimension x="-10" y="0"/> </Offset> </Anchor> </Anchors> <TexCoords left="0" right="0.5" top="0" bottom="1.0"/> </Texture> <Texture file="Interface\ChatFrame\UI-ChatInputBorder-Right"> <Size> <AbsDimension x="128" y="32"/> </Size> <Anchors> <Anchor point="RIGHT"> <Offset> <AbsDimension x="10" y="0"/> </Offset> </Anchor> </Anchors> <TexCoords left="0.5" right="1.0" top="0" bottom="1.0"/> </Texture> </Layer> </Layers> <Scripts> <OnLoad function="ww_editBoxTextInsets"/> <OnTextChanged function="ww_weightNameTextChanged"/> <OnEnterPressed function="ww_weightNameEnterPressed"/> <OnEscapePressed function="ww_weightNameEscapePressed"/> </Scripts> </EditBox> <Button name="$parentCreateButton" parentKey="createButton" inherits="ww_localizedButton" text="Create"> <Size> <AbsDimension x="128" y="20"/> </Size> <Anchors> <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOM"> <Offset> <AbsDimension x="-6" y="16"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick function="ww_createNewWeight"/> </Scripts> </Button> <Button name="$parentCancelButton" parentKey="cancelButton" inherits="ww_localizedButton" text="Cancel"> <Size> <AbsDimension x="128" y="20"/> </Size> <Anchors> <Anchor point="BOTTOMLEFT" relativePoint="BOTTOM"> <Offset> <AbsDimension x="6" y="16"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick function="ww_hidePopup"/> </Scripts> </Button> </Frames> <Scripts> <OnLoad function="ww_newWeightLocalizeText"/> <OnShow function="ww_setFocusOnEditBox"/> </Scripts> </Frame> </Ui>