Files
coa-moveanything/MoveAnything/MoveAnythingBlizzardOptions.xml
T
andrew6180 7ca137d0ee init
2023-10-16 07:10:40 -07:00

320 lines
9.9 KiB
XML

<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">
<Frame name="MoveAnythingOptions" parent="UIParent">
<Scripts>
<OnLoad function="MovAny_OptionsOnLoad"/>
<OnShow function="MovAny_OptionsOnShow"/>
</Scripts>
<Layers>
<Layer level="BACKGROUND">
<FontString name="MAOptVersion" inherits="GameFontNormal" text="MoveAnything">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="MoveAnythingOptions" relativePoint="BOTTOMRIGHT">
<Offset>
<AbsDimension x="-19" y="20"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="MARowCount" inherits="GameFontHighlightSmall" text="MoveAnything">
<Anchors>
<Anchor point="CENTER" relativeTo="MoveAnythingOptions" relativePoint="TOP">
<Offset>
<AbsDimension x="-85" y="-43"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<Slider name="MAOptRowsSlider" inherits="OptionsSliderTemplate">
<Size>
<AbsDimension x="220" y="16"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="MoveAnythingOptions" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="15" y="-25"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
_G[self:GetName().."Text"]:SetText("# of rows")
_G[self:GetName().."High"]:SetText("100")
_G[self:GetName().."Low"]:SetText("2")
self:SetMinMaxValues(2, 100)
self:SetValueStep(1)
</OnLoad>
<OnValueChanged>
MARowCount:SetText(self:GetValue())
MovAny:SetNumRows(self:GetValue())
</OnValueChanged>
</Scripts>
</Slider>
<CheckButton name="MAOptCharacterSpecific" inherits="MACheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="MAOptRowsSlider" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="-5" y="-15"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
self.alwaysShowTooltip = true
_G[self:GetName().."Text"]:SetText("Use character specific settings")
</OnLoad>
<OnClick>
MovAny:OnCheckCharacterSpecific(self)
</OnClick>
</Scripts>
</CheckButton>
<CheckButton name="MAOptAlwaysShowNudger" inherits="MACheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="MAOptCharacterSpecific" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-1"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
self.alwaysShowTooltip = true
self.tooltipText = "Enable to show the nudger with the main window\n\nBy default the Nudger is only shown when interacting with frames."
_G[self:GetName().."Text"]:SetText("Show Nudger with main window")
</OnLoad>
<OnClick>
local reshowGUI = nil
if MAOptions:IsShown() and MADB.alwaysShowNudger ~= MAOptAlwaysShowNudger:GetChecked() then
reshowGUI = true
end
MovAny:OptionCheckboxChecked(self, "alwaysShowNudger")
if reshowGUI then
MAOptions:Hide()
MAOptions:Show()
end
</OnClick>
</Scripts>
</CheckButton>
<CheckButton name="MAOptShowTooltips" inherits="MACheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="MAOptAlwaysShowNudger" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-1"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
self.alwaysShowTooltip = true
self.tooltipText = "Toggles display of tooltips on/off\n\nPressing Shift when mousing over elements will reverse tooltip display behavior."
_G[self:GetName().."Text"]:SetText("Show tooltips")
</OnLoad>
<OnClick>
MovAny:OptionCheckboxChecked(self, "tooltips")
</OnClick>
</Scripts>
</CheckButton>
<CheckButton name="MAOptPlaySound" inherits="MACheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="MAOptShowTooltips" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-1"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
self.alwaysShowTooltip = true
self.tooltipText = "Toggles if MoveAnything should play a sound when opening and closing the main window."
_G[self:GetName().."Text"]:SetText("Play sound")
</OnLoad>
<OnClick>
MovAny:OptionCheckboxChecked(self, "playSound")
</OnClick>
</Scripts>
</CheckButton>
<CheckButton name="MAOptCloseGUIOnEscape" inherits="MACheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="MAOptPlaySound" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-1"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
_G[self:GetName().."Text"]:SetText("Escape key closes main window")
</OnLoad>
<OnClick>
MovAny:OptionCheckboxChecked(self, "closeGUIOnEscape")
</OnClick>
</Scripts>
</CheckButton>
<CheckButton name="MAOptDontSearchFrameNames" inherits="MACheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="MAOptCloseGUIOnEscape" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-1"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
self.alwaysShowTooltip = true
self.tooltipText = "Disables searching of actual frame names."
_G[self:GetName().."Text"]:SetText("Dont search frame names")
</OnLoad>
<OnClick>
MovAny:OptionCheckboxChecked(self, "dontSearchFrameNames")
</OnClick>
</Scripts>
</CheckButton>
<CheckButton name="MAOptNoBags" inherits="MACheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="MAOptDontSearchFrameNames" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-1"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
self.alwaysShowTooltip = true
self.tooltipText = "Toggles if MoveAnything will hook containers.\n\nThis should be checked if you use another addon to move your bags."
_G[self:GetName().."Text"]:SetText("Disable bag container hook")
</OnLoad>
<OnClick>
MovAny:OptionCheckboxChecked(self, "noBags")
</OnClick>
</Scripts>
</CheckButton>
<CheckButton name="MAOptDontHookCreateFrame" inherits="MACheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="MAOptNoBags" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-1"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
self.alwaysShowTooltip = true
self.tooltipText = "Toggles if MoveAnything will hook CreateFrame.\n\nRequires UI reload to take effect."
_G[self:GetName().."Text"]:SetText("Disable frame creation hook")
</OnLoad>
<OnClick>
MovAny:OptionCheckboxChecked(self, "dontHookCreateFrame")
</OnClick>
</Scripts>
</CheckButton>
<CheckButton name="MAOptSquareMM" inherits="MACheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="MAOptDontHookCreateFrame" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-1"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
self.alwaysShowTooltip = true
self.tooltipText = "Toggles square MiniMap on/off.\n\nHide \"Round Border\" in the \"Minimap\" category to get rid of the overlaying border."
_G[self:GetName().."Text"]:SetText("Enable square Minimap")
</OnLoad>
<OnClick>
MovAny:OptionCheckboxChecked(self, "squareMM")
</OnClick>
</Scripts>
</CheckButton>
<CheckButton name="MAOptNoMMMW" inherits="MACheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="MAOptSquareMM" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-1"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
self.alwaysShowTooltip = true
self.tooltipText = "Toggles Minimap mousewheel zoom on/off.\n\nRequires reload to take effect."
_G[self:GetName().."Text"]:SetText("Disable Minimap mousewheel zoom")
</OnLoad>
<OnClick>
MovAny:OptionCheckboxChecked(self, "noMMMW")
</OnClick>
</Scripts>
</CheckButton>
<Button name="MAOptResetProfile" inherits="MAButtonTemplate" text="Reset Profile">
<Size>
<AbsDimension x="120" y="22"/>
</Size>
<Anchors>
<Anchor point="BOTTOMLEFT" relativeTo="MoveAnythingOptions" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="10" y="15"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
self.tooltipText = "Reset profile\n\nResets the profile, deleting all stored frame settings for this profile."
self.alwaysShowTooltip = true
</OnLoad>
<OnEnter function="MovAny_TooltipShow"/>
<OnLeave function="MovAny_TooltipHide"/>
<OnClick>
if MADB.playSound then
PlaySound("igMainMenuOption")
end
StaticPopup_Show("MOVEANYTHING_RESET_PROFILE_CONFIRM")
</OnClick>
</Scripts>
</Button>
<Button name="MAOptResetAll" inherits="MAButtonTemplate" text="Reset All">
<Size>
<AbsDimension x="120" y="22"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="MAOptResetProfile" relativePoint="RIGHT">
<Offset>
<AbsDimension x="1" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
self.tooltipText = "Reset all\n\nReset MoveAnything to default settings. Deletes all frame settings, as well as the custom frame list"
self.alwaysShowTooltip = true
</OnLoad>
<OnEnter function="MovAny_TooltipShow"/>
<OnLeave function="MovAny_TooltipHide"/>
<OnClick>
if MADB.playSound then
PlaySound("igMainMenuOption")
end
StaticPopup_Show("MOVEANYTHING_RESET_ALL_CONFIRM")
</OnClick>
</Scripts>
</Button>
</Frames>
</Frame>
</Ui>