vanilla-wow-addons – Rev 1
?pathlinks?
<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="SAListOptionsFrame" setAllPoints="true" enableMouse="true" parent="SAOptionsFrame" hidden="true">
<Size>
<AbsDimension x="500" y="380"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="SAOptionsFrame" relativePoint="CENTER">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Frames>
<Frame name="AudioWarningsFrame">
<Size>
<AbsDimension x="150" y="90"/>
</Size>
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="SAOptionsFrame">
<Offset>
<AbsDimension x="-30" y="-30"/>
</Offset>
</Anchor>
</Anchors>
<Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
<EdgeSize>
<AbsValue val="16"/>
</EdgeSize>
<TileSize>
<AbsValue val="16"/>
</TileSize>
<BackgroundInsets>
<AbsInset left="5" right="5" top="5" bottom="5"/>
</BackgroundInsets>
</Backdrop>
<Layers>
<Layer level="BACKGROUND">
<FontString name="$parentInfo" inherits="GameFontNormalSmall" justifyH="LEFT" text="Audio warnings">
<Color r="1" g="1" b="1"/>
<Size>
<AbsDimension x="150" y="0"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="AudioWarningsFrame">
<Offset>
<AbsDimension x="10" y="-10"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<CheckButton name="SAAudioWarningCB" inherits="OptionsCheckButtonTemplate" id="4">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parent">
<Offset>
<AbsDimension x="5" y="-25"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<FontString inherits="GameFontNormal" text="Acquired aggro">
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="30" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnEnter>
GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
GameTooltip:SetText("Play audio warning if you acquire aggro from known target (targetted by someone in your party).",1,1,1,1,1);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
<OnClick>
SA_ToggleOption("AudioWarning");
</OnClick>
</Scripts>
</CheckButton>
<CheckButton name="SALostAudioWarningCB" inherits="OptionsCheckButtonTemplate" id="4">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SAAudioWarningCB">
<Offset>
<AbsDimension x="0" y="-25"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<FontString inherits="GameFontNormal" text="Lost aggro">
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="30" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnEnter>
GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
GameTooltip:SetText("Play audio warning if you lose aggro from known target (targetted by someone in your party).",1,1,1,1,1);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
<OnClick>
SA_ToggleOption("LostAudioWarning");
</OnClick>
</Scripts>
</CheckButton>
</Frames>
</Frame>
<Frame name="VerboseWarningsFrame">
<Size>
<AbsDimension x="150" y="90"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="AudioWarningsFrame">
<Offset>
<AbsDimension x="0" y="-10"/>
</Offset>
</Anchor>
</Anchors>
<Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
<EdgeSize>
<AbsValue val="16"/>
</EdgeSize>
<TileSize>
<AbsValue val="16"/>
</TileSize>
<BackgroundInsets>
<AbsInset left="5" right="5" top="5" bottom="5"/>
</BackgroundInsets>
</Backdrop>
<Layers>
<Layer level="BACKGROUND">
<FontString name="$parentInfo" inherits="GameFontNormalSmall" justifyH="LEFT" text="Verbose warnings">
<Color r="1" g="1" b="1"/>
<Size>
<AbsDimension x="150" y="0"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="VerboseWarningsFrame">
<Offset>
<AbsDimension x="10" y="-10"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<CheckButton name="SAVerboseAcquiredAggroCB" inherits="OptionsCheckButtonTemplate" id="4">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parent">
<Offset>
<AbsDimension x="5" y="-25"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<FontString inherits="GameFontNormal" text="Acquired aggro">
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="30" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnEnter>
GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
GameTooltip:SetText("Show text warning if you acquire aggro from known target (targetted by someone in your party).",1,1,1,1,1);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
<OnClick>
SA_ToggleOption("VerboseAcquiredAggro");
</OnClick>
</Scripts>
</CheckButton>
<CheckButton name="SAVerboseLostAggroCB" inherits="OptionsCheckButtonTemplate" id="9">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SAVerboseAcquiredAggroCB">
<Offset>
<AbsDimension x="0" y="-25"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<FontString inherits="GameFontNormal" text="Lost aggro">
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="30" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnEnter>
GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
GameTooltip:SetText("Verbose warning if you lose aggro from known target (targetted by someone in your party).",1,1,1,1,1);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
<OnClick>
SA_ToggleOption("VerboseLostAggro");
</OnClick>
</Scripts>
</CheckButton>
</Frames>
</Frame>
<!-- icon mode frame -->
<Frame name="IconModeFrame">
<Size>
<AbsDimension x="150" y="170"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="VerboseWarningsFrame">
<Offset>
<AbsDimension x="0" y="-10"/>
</Offset>
</Anchor>
</Anchors>
<Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
<EdgeSize>
<AbsValue val="16"/>
</EdgeSize>
<TileSize>
<AbsValue val="16"/>
</TileSize>
<BackgroundInsets>
<AbsInset left="5" right="5" top="5" bottom="5"/>
</BackgroundInsets>
</Backdrop>
<Layers>
<Layer level="BACKGROUND">
<FontString name="$parentInfo" inherits="GameFontNormalSmall" justifyH="LEFT" text="Icon places">
<Color r="1" g="1" b="1"/>
<Size>
<AbsDimension x="150" y="0"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent">
<Offset>
<AbsDimension x="10" y="-10"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<Frame name="SAClassIconMode" inherits="SASelectionTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parent">
<Offset>
<AbsDimension x="10" y="-40"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
Selection_Initialize(this, "Class icon", SA_Options_ClassIcon);
</OnLoad>
</Scripts>
</Frame>
<Frame name="SATargetIconMode" inherits="SASelectionTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="SAClassIconMode">
<Offset>
<AbsDimension x="0" y="-15"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
Selection_Initialize(this, "Raid target icon", SA_Options_TargetIcon);
</OnLoad>
</Scripts>
</Frame>
<Frame name="SAHuntersMarkIconMode" inherits="SASelectionTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="SATargetIconMode">
<Offset>
<AbsDimension x="0" y="-15"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
Selection_Initialize(this, "Hunters mark icon", SA_Options_HuntersMarkIcon);
</OnLoad>
</Scripts>
</Frame>
</Frames>
</Frame>
<CheckButton name="SAShowAvailableCB" inherits="OptionsCheckButtonTemplate" id="1">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SAOptionsFrame">
<Offset>
<AbsDimension x="22" y="-30"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<FontString inherits="GameFontNormal" text="Available assist list enabled">
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="30" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnClick>
SA_ToggleAvailable();
</OnClick>
<OnEnter>
GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
GameTooltip:SetText("Disabling the list will also disable all features from this tab because they can't operate without list.",1,1,1,1,1);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<CheckButton name="SAPreservedOrderCB" inherits="OptionsCheckButtonTemplate" id="8">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SAShowAvailableCB">
<Offset>
<AbsDimension x="0" y="-30"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<FontString inherits="GameFontNormal" text="Keep list as static as possible">
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="30" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnClick>
SA_ToggleOption("PreservedOrder");
</OnClick>
<OnEnter>
GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
GameTooltip:SetText("Normally list order matches assist order. That however can make list change order constantly.\n\nBy enabling this option list order is kept as still as possible. Downside is that assist key order will not match list order anymore.\n\nUseful in situations where you need to read list constantly, example when applying hunters mark.",1,1,1,1,1);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<CheckButton name="SATankModeCB" inherits="OptionsCheckButtonTemplate" id="8">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SAPreservedOrderCB">
<Offset>
<AbsDimension x="0" y="-30"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<FontString inherits="GameFontNormal" text="Tanking mode (reverses alert colors)">
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="30" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnClick>
SA_ToggleOption("TankMode");
</OnClick>
<OnEnter>
GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
GameTooltip:SetText("Switch target name colors to more suitable for tanking:\n\nOrange = You\nGreen = Tank\nRed = Non-tank",1,1,1,1,1);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<CheckButton name="SAAddMyTargetCB" inherits="OptionsCheckButtonTemplate" id="8">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SATankModeCB">
<Offset>
<AbsDimension x="0" y="-30"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<FontString inherits="GameFontNormal" text="Add my target to the list">
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="30" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnClick>
SA_ToggleOption("AddMyTarget");
</OnClick>
<OnEnter>
GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
GameTooltip:SetText("Add my target to the list even if it's not targetted by someone else.",1,1,1,1,1);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<CheckButton name="SAOutOfCombatCB" inherits="OptionsCheckButtonTemplate" id="8">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SAAddMyTargetCB">
<Offset>
<AbsDimension x="0" y="-30"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<FontString inherits="GameFontNormal" text="Display targets out of combat">
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="30" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnClick>
SA_ToggleOption("OutOfCombat");
</OnClick>
<OnEnter>
GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
GameTooltip:SetText("Displays also targets that are currently out of combat. Enabling this may be usefull for example hunter that marks and needs to know targets before thay are engaged.",1,1,1,1,1);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<Slider name="SAListWidthSlider" inherits="OptionsSliderTemplate">
<Size>
<AbsDimension x="220" y="16"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="SAOutOfCombatCB" relativePoint="RIGHT">
<Offset>
<AbsDimension x="0" y="-45"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText("list width");
getglobal(this:GetName().."High"):SetText("max");
getglobal(this:GetName().."Low"):SetText("min");
this:SetMinMaxValues(100,250);
this:SetValueStep(1);
</OnLoad>
<OnValueChanged>
SA_Options_UpdateListWidthSlider();
</OnValueChanged>
</Scripts>
</Slider>
<Slider name="SAListScaleSlider" inherits="OptionsSliderTemplate">
<Size>
<AbsDimension x="220" y="16"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="SAListWidthSlider" relativePoint="LEFT">
<Offset>
<AbsDimension x="0" y="-45"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText("list scale");
getglobal(this:GetName().."High"):SetText("max");
getglobal(this:GetName().."Low"):SetText("min");
this:SetMinMaxValues(0.5,2);
this:SetValueStep(0.02);
</OnLoad>
<OnValueChanged>
SA_Options_UpdateListScaleSlider();
</OnValueChanged>
</Scripts>
</Slider>
<Slider name="SAListSpacingSlider" inherits="OptionsSliderTemplate">
<Size>
<AbsDimension x="220" y="16"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="SAListScaleSlider" relativePoint="LEFT">
<Offset>
<AbsDimension x="0" y="-45"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText("list spacing and direction");
this:SetMinMaxValues(-20,20);
this:SetValueStep(1);
</OnLoad>
<OnShow>
SA_Options_UpdateListSpacingSliderText();
</OnShow>
<OnValueChanged>
SA_Options_UpdateListSpacingSlider();
</OnValueChanged>
</Scripts>
</Slider>
<CheckButton name="SAListHorizontalCB" inherits="OptionsCheckButtonTemplate" scaling="0.9" id="10">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SAListSpacingSlider">
<Offset>
<AbsDimension x="0" y="-35"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<FontString inherits="GameFontNormal" text="Horizontal">
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="30" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnClick>
SA_ToggleOption("ListHorizontal");
SA_List_UpdateAppearance();
SA_Options_UpdateListSpacingSliderText();
</OnClick>
<OnShow>
this:SetScale(0.8);
</OnShow>
</Scripts>
</CheckButton>
<CheckButton name="SAListTwoRowCB" inherits="OptionsCheckButtonTemplate" scaling="0.9" id="10">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SAListHorizontalCB">
<Offset>
<AbsDimension x="0" y="-25"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<FontString inherits="GameFontNormal" text="Two row mode">
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="30" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnClick>
SA_ToggleOption("ListTwoRow");
SA_List_UpdateAppearance();
</OnClick>
<OnShow>
this:SetScale(0.8);
</OnShow>
</Scripts>
</CheckButton>
<CheckButton name="SAHideTBYCB" inherits="OptionsCheckButtonTemplate" id="12">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SAOutOfCombatCB">
<Offset>
<AbsDimension x="0" y="-220"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<FontString inherits="GameFontNormal" text="Hide T.by text">
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="30" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnClick>
SA_ToggleOption("HideTBY");
SA_List_UpdateAppearance();
</OnClick>
</Scripts>
</CheckButton>
<CheckButton name="SAHideTitleCB" inherits="OptionsCheckButtonTemplate" id="13">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SAHideTBYCB">
<Offset>
<AbsDimension x="0" y="-30"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<FontString inherits="GameFontNormal" text="Hide title when list is empty">
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="30" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnEnter>
GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
GameTooltip:SetText("Tip: You can make title visible by hovering mouse over it's position.",1,1,1,1,1);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
<OnClick>
SA_ToggleOption("HideTitle");
</OnClick>
</Scripts>
</CheckButton>
</Frames>
<Scripts>
<OnShow>
SA_Options_OnShowListOptions();
</OnShow>
<OnHide>
SA_Options_OnHideListOptions();
</OnHide>
<OnLoad>
this:RegisterEvent("VARIABLES_LOADED");
</OnLoad>
<OnEvent>
if (event == "VARIABLES_LOADED") then
SA_Options_VariablesLoaded();
end
</OnEvent>
</Scripts>
</Frame>
</Ui>