<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/"> <Script file="SuperDuperMacro.lua"/> <Frame name="sdm_editFrame" toplevel="true" parent="UIParent" movable="true" enableMouse="true" hidden="true"> <Size x="832" y="447" /> <Anchors> <Anchor point="TOPLEFT"> <Offset x="0" y="-104" /> </Anchor> </Anchors> <Layers> <Layer level="BACKGROUND"> <Texture name="$parentPortrait" file="Interface\MacroFrame\MacroFrame-Icon"> <Size x="60" y="60" /> <Anchors> <Anchor point="TOPLEFT"> <Offset x="7" y="-6" /> </Anchor> </Anchors> </Texture> </Layer> <Layer level="ARTWORK"> <Texture name="$parentTopLeft" file="Interface\AuctionFrame\UI-AuctionFrame-Bid-TopLeft"> <Size x="256" y="256" /> <Anchors> <Anchor point="TOPLEFT" /> </Anchors> </Texture> <Texture name="$parentTop" file="Interface\AuctionFrame\UI-AuctionFrame-Bid-Top"> <Size x="320" y="256" /> <Anchors> <Anchor point="TOPLEFT"> <Offset x="256" y="0" /> </Anchor> </Anchors> </Texture> <Texture name="$parentTopRight" file="Interface\AuctionFrame\UI-AuctionFrame-Bid-TopRight"> <Size x="256" y="256" /> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentTop" relativePoint="TOPRIGHT" /> </Anchors> </Texture> <Texture name="$parentBotLeft" file="Interface\AuctionFrame\UI-AuctionFrame-Bid-BotLeft"> <Size x="256" y="256" /> <Anchors> <Anchor point="TOPLEFT"> <Offset x="0" y="-256" /> </Anchor> </Anchors> </Texture> <Texture name="$parentBot" file="Interface\AuctionFrame\UI-AuctionFrame-Bid-Bot"> <Size x="320" y="256" /> <Anchors> <Anchor point="TOPLEFT"> <Offset x="256" y="-256" /> </Anchor> </Anchors> </Texture> <Texture name="$parentBotRight" file="Interface\AuctionFrame\UI-AuctionFrame-Bid-BotRight"> <Size x="256" y="256" /> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentBot" relativePoint="TOPRIGHT" /> </Anchors> </Texture> </Layer> <Layer level="OVERLAY"> <FontString name="$parentTitle" inherits="GameFontNormal" text="Super Duper Macro"> <Anchors> <Anchor point="TOP"> <Offset x="0" y="-18" /> </Anchor> </Anchors> </FontString> </Layer> </Layers> <Frames> <Frame name="$parent_menuFrame"> <Size x="256" y="276" /> <Anchors> <Anchor point="TOPLEFT"> <Offset x="26" y="-79" /> </Anchor> </Anchors> <Layers> <Layer level="ARTWORK"> <FontString name="$parent_instructionText" inherits="GameFontNormal" text="Or enter a number from the list below:"> <Anchors> <Anchor point="LEFT" relativePoint="TOPLEFT"> <Offset> <AbsDimension x="4" y="-50"/> </Offset> </Anchor> </Anchors> </FontString> <FontString name="$parent_macroInfo" inherits="GameFontNormal" text="This should be replaced with info about existing macros..." justifyH="LEFT"> <Anchors> <Anchor point="TOPLEFT" relativePoint="TOPLEFT"> <Offset> <AbsDimension x="4" y="-110"/> </Offset> </Anchor> </Anchors> </FontString> <FontString name="$parent_current" inherits="GameFontNormal" text=">" justifyH="LEFT"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parent_macroInfo" relativePoint="TOPLEFT"> <Offset> <AbsDimension x="-10" y="-6"/> </Offset> </Anchor> </Anchors> </FontString> </Layer> </Layers> <Frames> <Button name="$parent_newButton" inherits="UIPanelButtonTemplate" text="New"> <Size> <AbsDimension x="60" y="24"/> </Size> <Anchors> <Anchor point="TOPLEFT" /> </Anchors> <Scripts> <OnClick>sdm_MenuFrameButtonClicked()</OnClick> </Scripts> </Button> <EditBox name="$parent_numberInput" inherits="InputBoxTemplate" autoFocus="false" id="15"> <Size> <AbsDimension x="30" y="26"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="10" y="-70"/> </Offset> </Anchor> </Anchors> <Scripts> <OnEscapePressed> self:ClearFocus() </OnEscapePressed> <OnEnterPressed> sdm_editFrame_menuFrame_selectButton:Click() </OnEnterPressed> </Scripts> </EditBox> <Button name="$parent_selectButton" inherits="UIPanelButtonTemplate" text="Select" id="16"> <Size> <AbsDimension x="60" y="24"/> </Size> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parent_numberInput" relativePoint="TOPRIGHT"> <Offset> <AbsDimension x="10" y="0"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick>sdm_MenuFrameButtonClicked()</OnClick> </Scripts> </Button> </Frames> </Frame> <Button name="$parent_quitButton" inherits="UIPanelCloseButton"> <Anchors> <Anchor point="TOPRIGHT"> <Offset x="3" y="-8" /> </Anchor> </Anchors> <Scripts> <OnClick> sdm_Quit() </OnClick> </Scripts> </Button> <Button name="$parent_saveButton" inherits="UIPanelButtonTemplate" text="Save"> <Size x="80" y="22" /> <Anchors> <Anchor point="BOTTOMRIGHT"> <Offset x="-8" y="14" /> </Anchor> </Anchors> <Scripts> <OnClick> sdm_SaveCurrent() </OnClick> </Scripts> </Button> <Button name="$parent_getLinkButton" inherits="UIPanelButtonTemplate" text="Get Link"> <Size x="80" y="22" /> <Anchors> <Anchor point="RIGHT" relativeTo="$parent_saveButton" relativePoint="LEFT" /> </Anchors> <Scripts> <OnClick> sdm_GetCurrentLink() </OnClick> </Scripts> </Button> <Button name="$parent_deleteButton" inherits="UIPanelButtonTemplate" text="Delete"> <Size x="80" y="22" /> <Anchors> <Anchor point="RIGHT" relativeTo="$parent_getLinkButton" relativePoint="LEFT" /> </Anchors> <Scripts> <OnClick>sdm_MenuFrameButtonClicked()</OnClick> </Scripts> </Button> <Button name="$parent_linkToMacroFrame" inherits="UIPanelButtonTemplate" text="Default Macros"> <Size> <AbsDimension x="120" y="19"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset x="68" y="-14" /> </Anchor> </Anchors> <Scripts> <OnClick> sdm_SaveConfirmationBox("sdm_editFrame:Hide() sdm_newFrame:Hide() ShowMacroFrame()") </OnClick> </Scripts> </Button> <Button name="$parent_aboutButton" inherits="UIPanelButtonTemplate" text="About SDM"> <Size> <AbsDimension x="120" y="19"/> </Size> <Anchors> <Anchor point="RIGHT" relativeTo="$parent_quitButton" relativePoint="LEFT"> <Offset x="5" y="0" /> </Anchor> </Anchors> <Scripts> <OnClick>sdm_About()</OnClick> </Scripts> </Button> <ScrollFrame name="$parent_editScrollFrame" inherits="UIPanelScrollFrameTemplate"> <Size x="481" y="326" /> <Anchors> <Anchor point="TOPRIGHT"> <Offset x="-38" y="-79" /> </Anchor> </Anchors> <ScrollChild> <EditBox name="$parent_text" multiLine="true" autoFocus="false"> <Size x="481" y="326" /> <Scripts> <OnEscapePressed> self:ClearFocus() </OnEscapePressed> <OnTabPressed> self:Insert(" ") </OnTabPressed> <OnTextSet> sdm_saveButtonEnabled=-2 sdm_editFrame_saveButton:Disable() </OnTextSet> <OnTextChanged> sdm_saveButtonEnabled=sdm_saveButtonEnabled+1 if sdm_saveButtonEnabled>0 then sdm_editFrame_saveButton:Enable() end </OnTextChanged> </Scripts> <FontString inherits="GameFontHighlightSmall" /> </EditBox> </ScrollChild> </ScrollFrame> </Frames> <Scripts> <OnMouseDown> this:StartMoving(); </OnMouseDown> <OnMouseUp> this:StopMovingOrSizing(); </OnMouseUp> <OnDragStop> this:StopMovingOrSizing(); </OnDragStop> <OnShow> this:SetPoint("TOPLEFT", "UIParent", "TOPLEFT", 0, -104) sdm_UpdateCurrentEdit() sdm_ShowMacroEditText(sdm_currentEdit) </OnShow> </Scripts> </Frame> <Frame name="sdm_newFrame" hidden="true" inherits="UIParent" parent="sdm_editFrame_menuFrame" toplevel="true"> <Size> <AbsDimension x="280" y="100"/> </Size> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parent_newButton" relativePoint="TOPLEFT"> <Offset> <AbsDimension x="0" y="0"/> </Offset> </Anchor> </Anchors> <Layers> <Layer level="BACKGROUND"> <Texture name="$parent_Background" setAllPoints="true"> <Color r="0" g="0" b="0" a="1" /> </Texture> </Layer> </Layers> <Frames> <CheckButton name="$parent_buttonRadio" inherits="SendMailRadioButtonTemplate" id="17"> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="0" y="-4"/> </Offset> </Anchor> </Anchors> <Layers> <Layer level="ARTWORK"> <FontString name="$parent_Text" inherits="GameFontNormal" text="Button"> <Anchors> <Anchor point="TOPLEFT" relativePoint="TOPRIGHT"> </Anchor> </Anchors> </FontString> </Layer> </Layers> <Scripts> <OnLoad> this:SetChecked(1) </OnLoad> <OnClick> this:SetChecked(1) sdm_newFrame_floatingRadio:SetChecked(nil) sdm_newFrame_scriptRadio:SetChecked(nil) </OnClick> </Scripts> </CheckButton> <CheckButton name="$parent_floatingRadio" inherits="SendMailRadioButtonTemplate" id="18"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parent_buttonRadio" relativePoint="BOTTOMLEFT" /> </Anchors> <Layers> <Layer level="ARTWORK"> <FontString name="$parent_Text" inherits="GameFontNormal" text="Floating"> <Anchors> <Anchor point="TOPLEFT" relativePoint="TOPRIGHT"> </Anchor> </Anchors> </FontString> </Layer> </Layers> <Scripts> <OnClick> sdm_newFrame_buttonRadio:SetChecked(nil) this:SetChecked(1) sdm_newFrame_scriptRadio:SetChecked(nil) </OnClick> </Scripts> </CheckButton> <CheckButton name="$parent_scriptRadio" inherits="SendMailRadioButtonTemplate" id="18"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parent_floatingRadio" relativePoint="BOTTOMLEFT" /> </Anchors> <Layers> <Layer level="ARTWORK"> <FontString name="$parent_Text" inherits="GameFontNormal" text="Script"> <Anchors> <Anchor point="TOPLEFT" relativePoint="TOPRIGHT"> </Anchor> </Anchors> </FontString> </Layer> </Layers> <Scripts> <OnClick> sdm_newFrame_buttonRadio:SetChecked(nil) sdm_newFrame_floatingRadio:SetChecked(nil) this:SetChecked(1) </OnClick> </Scripts> </CheckButton> <CheckButton name="$parent_globalRadio" inherits="SendMailRadioButtonTemplate" id="17"> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="100" y="-4"/> </Offset> </Anchor> </Anchors> <Layers> <Layer level="ARTWORK"> <FontString name="$parent_Text" inherits="GameFontNormal" text="Global"> <Anchors> <Anchor point="TOPLEFT" relativePoint="TOPRIGHT"> </Anchor> </Anchors> </FontString> </Layer> </Layers> <Scripts> <OnLoad> this:SetChecked(1) </OnLoad> <OnClick> this:SetChecked(1) sdm_newFrame_charspecRadio:SetChecked(nil) </OnClick> </Scripts> </CheckButton> <CheckButton name="$parent_charspecRadio" inherits="SendMailRadioButtonTemplate" id="18"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parent_globalRadio" relativePoint="BOTTOMLEFT" /> </Anchors> <Layers> <Layer level="ARTWORK"> <FontString name="$parent_Text" inherits="GameFontNormal" text="Character-specific"> <Anchors> <Anchor point="TOPLEFT" relativePoint="TOPRIGHT"> </Anchor> </Anchors> </FontString> </Layer> </Layers> <Scripts> <OnClick> this:SetChecked(1) sdm_newFrame_globalRadio:SetChecked(nil) </OnClick> </Scripts> </CheckButton> <EditBox name="$parent_input" inherits="InputBoxTemplate" autoFocus="false" id="15"> <Size> <AbsDimension x="200" y="26"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="45" y="-50"/> </Offset> </Anchor> </Anchors> <Layers> <Layer level="ARTWORK"> <FontString name="$parent_Text" inherits="GameFontNormal" text="Name: "> <Anchors> <Anchor point="RIGHT" relativePoint="LEFT"> </Anchor> </Anchors> </FontString> </Layer> </Layers> <Scripts> <OnEscapePressed> self:ClearFocus() </OnEscapePressed> <OnEnterPressed> sdm_newFrame_createButton:Click() </OnEnterPressed> </Scripts> </EditBox> <Button name="$parent_createButton" inherits="UIPanelButtonTemplate" text="Create"> <Size x="80" y="22" /> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parent_input" relativePoint="BOTTOMLEFT" /> </Anchors> <Scripts> <OnClick> sdm_CreateButtonClicked() </OnClick> </Scripts> </Button> <Button name="$parent_cancelButton" inherits="UIPanelButtonTemplate" text="Cancel"> <Size x="80" y="22" /> <Anchors> <Anchor point="LEFT" relativeTo="$parent_createButton" relativePoint="RIGHT" /> </Anchors> <Scripts> <OnClick> sdm_newFrame:Hide() </OnClick> </Scripts> </Button> </Frames> </Frame> </Ui>