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">
<Script file="localization.lua" />
<Script file="LowHealthSettings.lua" />
<Slider name="LowHealthSliderTemplate" inherits="OptionsSliderTemplate" virtual="true">
<Scripts>
<OnLoad>
getglobal(this:GetName().."High"):SetText("99%")
getglobal(this:GetName().."Low"):SetText("1%")
this:SetMinMaxValues(1, 99)
this:SetValueStep(1)
this:SetValue(1)
</OnLoad>
<OnValueChanged>
TNE_LowHealthSettings_OptionsSlider_OnValueChanged()
</OnValueChanged>
</Scripts>
</Slider>
<Frame name="LowHealthSettingsFrame" toplevel="true" movable="true" enableMouse="true" parent="UIParent" hidden="true">
<Size>
<AbsDimension x="384" y="520" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="0" y="-184"/>
</Offset>
</Anchor>
</Anchors>
<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>
<Layers>
<Layer level="ARTWORK">
<Texture name="$parentHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
<Size>
<AbsDimension x="300" y="64" />
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="12" />
</Offset>
</Anchor>
</Anchors>
</Texture>
<FontString name="$parentLabel1" inherits="GameFontNormal">
<Anchors>
<Anchor point="TOP" relativeTo="$parentHeader">
<Offset>
<AbsDimension x="0" y="-14" />
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentVersion" inherits="GameFontNormal" justifyH="RIGHT">
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="-20" y="-20" />
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentLabel2" inherits="GameFontNormal" justifyH="RIGHT">
<Anchors>
<Anchor point="RIGHT" relativeTo="$parentVersion" relativePoint="LEFT">
<Offset>
<AbsDimension x="-4" y="0" />
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<Frame name="$parentGeneralOptions" inherits="OptionFrameBoxTemplate">
<Size>
<AbsDimension x="360" y="50" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="12" y="-45"/>
</Offset>
</Anchor>
</Anchors>
<Frames>
<CheckButton name="$parentCheckButton1" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="20" y="-10" />
</Offset>
</Anchor>
</Anchors>
</CheckButton>
</Frames>
<Scripts>
<OnLoad>
this:SetBackdropBorderColor(0.4, 0.4, 0.4)
this:SetBackdropColor(0.15, 0.15, 0.15)
</OnLoad>
</Scripts>
</Frame>
<Frame name="$parentSoundOptions" inherits="OptionFrameBoxTemplate">
<Size>
<AbsDimension x="360" y="90" />
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentGeneralOptions" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-20"/>
</Offset>
</Anchor>
</Anchors>
<Frames>
<CheckButton name="$parentCheckButton1" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="20" y="-10" />
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="$parentCheckButton2" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="$parentCheckButton1" relativePoint="RIGHT">
<Offset>
<AbsDimension x="150" y="0" />
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<Slider name="$parentThresholdSlider1" inherits="LowHealthSliderTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="30" y="-50" />
</Offset>
</Anchor>
</Anchors>
</Slider>
</Frames>
<Scripts>
<OnLoad>
this:SetBackdropBorderColor(0.4, 0.4, 0.4)
this:SetBackdropColor(0.15, 0.15, 0.15)
</OnLoad>
</Scripts>
</Frame>
<Frame name="$parentHealthOptions" inherits="OptionFrameBoxTemplate">
<Size>
<AbsDimension x="180" y="230" />
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentSoundOptions" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-20"/>
</Offset>
</Anchor>
</Anchors>
<Frames>
<CheckButton name="$parentCheckButton1" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="10" y="-10" />
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<Slider name="$parentThresholdSlider1" inherits="LowHealthSliderTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentCheckButton1" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="10" y="-10" />
</Offset>
</Anchor>
</Anchors>
</Slider>
<Slider name="$parentThresholdSlider2" inherits="LowHealthSliderTemplate">
<Anchors>
<Anchor point="TOP" relativeTo="$parentThresholdSlider1" relativePoint="BOTTOM">
<Offset>
<AbsDimension x="0" y="-20" />
</Offset>
</Anchor>
</Anchors>
</Slider>
<CheckButton name="$parentCheckButton2" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentThresholdSlider2" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="-10" y="-20" />
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="$parentCheckButton3" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentCheckButton2" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0" />
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="$parentCheckButton4" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentCheckButton3" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0" />
</Offset>
</Anchor>
</Anchors>
</CheckButton>
</Frames>
<Scripts>
<OnLoad>
this:SetBackdropBorderColor(0.4, 0.4, 0.4)
this:SetBackdropColor(0.15, 0.15, 0.15)
</OnLoad>
</Scripts>
</Frame>
<Frame name="$parentManaOptions" inherits="OptionFrameBoxTemplate">
<Size>
<AbsDimension x="180" y="230" />
</Size>
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="$parentSoundOptions" relativePoint="BOTTOMRIGHT">
<Offset>
<AbsDimension x="0" y="-20"/>
</Offset>
</Anchor>
</Anchors>
<Frames>
<CheckButton name="$parentCheckButton1" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="10" y="-10" />
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<Slider name="$parentThresholdSlider1" inherits="LowHealthSliderTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentCheckButton1" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="10" y="-10" />
</Offset>
</Anchor>
</Anchors>
</Slider>
<Slider name="$parentThresholdSlider2" inherits="LowHealthSliderTemplate">
<Anchors>
<Anchor point="TOP" relativeTo="$parentThresholdSlider1" relativePoint="BOTTOM">
<Offset>
<AbsDimension x="0" y="-20" />
</Offset>
</Anchor>
</Anchors>
</Slider>
<CheckButton name="$parentCheckButton2" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentThresholdSlider2" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="-10" y="-20" />
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="$parentCheckButton3" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentCheckButton2" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0" />
</Offset>
</Anchor>
</Anchors>
</CheckButton>
</Frames>
<Scripts>
<OnLoad>
this:SetBackdropBorderColor(0.4, 0.4, 0.4)
this:SetBackdropColor(0.15, 0.15, 0.15)
</OnLoad>
</Scripts>
</Frame>
<Button name="$parentButton1" inherits="OptionsButtonTemplate">
<Anchors>
<Anchor point="BOTTOMLEFT">
<Offset>
<AbsDimension x="16" y="16" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
TNE_LowHealthSettings_ResetSettings()
</OnClick>
</Scripts>
<HighlightText name="$parentHighlightText" inherits="GameFontHighlight" />
</Button>
<Button name="$parentButton2" inherits="OptionsButtonTemplate">
<Anchors>
<Anchor point="BOTTOMRIGHT">
<Offset>
<AbsDimension x="-16" y="16" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
HideUIPanel(this:GetParent())
</OnClick>
</Scripts>
<HighlightText name="$parentHighlightText" inherits="GameFontHighlight" />
</Button>
<Button name="$parentButton3" inherits="OptionsButtonTemplate">
<Anchors>
<Anchor point="RIGHT" relativeTo="$parentButton2" relativePoint="LEFT">
<Offset>
<AbsDimension x="-12" y="0" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
TNE_LowHealthSettings_ApplySettings()
HideUIPanel(this:GetParent())
</OnClick>
</Scripts>
<HighlightText name="$parentHighlightText" inherits="GameFontHighlight" />
</Button>
</Frames>
<Scripts>
<OnLoad>
TNE_LowHealthSettings_OnLoad()
</OnLoad>
<OnShow>
TNE_LowHealthSettings_OnShow()
PlaySound("igCharacterInfoOpen")
</OnShow>
<OnHide>
PlaySound("igCharacterInfoClose")
</OnHide>
</Scripts>
</Frame>
</Ui>