vanilla-wow-addons – Rev 1

Subversion Repositories:
Rev:
<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="Perl_Config_CombatDisplay.lua"/>


        <Frame name="Perl_Config_CombatDisplay_Frame" frameStrata="DIALOG" hidden="true" enableMouse="true">
                <Size>
                        <AbsDimension x="600" y="380"/>
                </Size>
                <Anchors>
                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="Perl_Config_Frame">
                                <Offset>
                                        <AbsDimension x="0" y="-120"/>
                                </Offset>
                        </Anchor>
                </Anchors>
                <Layers>
                        <Layer level="ARTWORK">
                                <Texture name="Perl_Config_CombatDisplay_Header" file="Interface\DialogFrame\UI-DialogBox-Header">
                                        <Size>
                                                <AbsDimension x="256" y="64"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOP">
                                                        <Offset>
                                                                <AbsDimension x="0" y="12"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </Texture>
                                <FontString inherits="GameFontNormal" text="CombatDisplay">
                                        <Anchors>
                                                <Anchor point="TOP" relativeTo="Perl_Config_CombatDisplay_Header">
                                                        <Offset>
                                                                <AbsDimension x="0" y="-14"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>

                                <FontString name="$parent_Display_Mode_Text" inherits="GameFontNormal" text="Display Mode">
                                        <Anchors>
                                                <Anchor point="LEFT" relativePoint="TOPLEFT">
                                                        <Offset>
                                                                <AbsDimension x="20" y="-30"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>

                                <FontString name="$parent_Persist_Modes_Text" inherits="GameFontNormal" text="Persist Modes">
                                        <Anchors>       
                                                <Anchor point="LEFT" relativePoint="TOPLEFT">
                                                        <Offset>
                                                                <AbsDimension x="20" y="-140"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>

                                <FontString name="$parent_Misc_Text" inherits="GameFontNormal" text="Misc">
                                        <Anchors>
                                                <Anchor point="LEFT" relativePoint="TOPLEFT">
                                                        <Offset>
                                                                <AbsDimension x="20" y="-210"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>

                                <FontString name="$parent_Misc2_Text" inherits="GameFontNormal" text=" ">
                                        <Anchors>
                                                <Anchor point="LEFT" relativePoint="TOPLEFT">
                                                        <Offset>
                                                                <AbsDimension x="220" y="-210"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>

                                <FontString name="$parent_Target_Text" inherits="GameFontNormal" text="Target Settings">
                                        <Anchors>
                                                <Anchor point="LEFT" relativePoint="TOPLEFT">
                                                        <Offset>
                                                                <AbsDimension x="200" y="-140"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>

                                <FontString name="$parent_Transparency_Text" inherits="GameFontNormal" text="Transparency">
                                        <Anchors>
                                                <Anchor point="LEFT" relativePoint="TOPLEFT">
                                                        <Offset>
                                                                <AbsDimension x="350" y="-30"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>

                                <FontString name="$parent_Scaling_Text" inherits="GameFontNormal" text="Scaling">
                                        <Anchors>
                                                <Anchor point="LEFT" relativePoint="TOPLEFT">
                                                        <Offset>
                                                                <AbsDimension x="20" y="-325"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                        </Layer>
                </Layers>

                <Frames>
                        <CheckButton name="$parent_CheckButton1" inherits="UICheckButtonTemplate" id="1">
                                <Size>
                                        <AbsDimension x="20" y="20"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_Display_Mode_Text">
                                                <Offset>
                                                        <AbsDimension  x="20" y="-20"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                getglobal(this:GetName().."Text"):SetText("Always");
                                        </OnLoad>
                                        <OnClick>
                                                Perl_Config_CombatDisplay_Frame_CheckButton2:SetChecked(nil);   <!-- We need to uncheck Button 2 -->
                                                Perl_Config_CombatDisplay_Frame_CheckButton3:SetChecked(nil);   <!-- We need to uncheck Button 3 -->
                                                Perl_Config_CombatDisplay_Frame_CheckButton4:SetChecked(nil);   <!-- We need to uncheck Button 4 -->
                                                Perl_Config_CombatDisplay_Mode_Update();
                                        </OnClick>
                                </Scripts>
                        </CheckButton>

                        <CheckButton name="$parent_CheckButton2" inherits="UICheckButtonTemplate" id="2">
                                <Size>
                                        <AbsDimension x="20" y="20"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_CheckButton1" >
                                                <Offset>
                                                        <AbsDimension  x="0" y="-20"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                getglobal(this:GetName().."Text"):SetText("w/ Auto Attack");
                                        </OnLoad>
                                        <OnClick>
                                                Perl_Config_CombatDisplay_Frame_CheckButton1:SetChecked(nil);   <!-- We need to uncheck Button 1 -->
                                                Perl_Config_CombatDisplay_Frame_CheckButton3:SetChecked(nil);   <!-- We need to uncheck Button 3 -->
                                                Perl_Config_CombatDisplay_Frame_CheckButton4:SetChecked(nil);   <!-- We need to uncheck Button 4 -->
                                                Perl_Config_CombatDisplay_Mode_Update();
                                        </OnClick>
                                </Scripts>
                        </CheckButton>

                        <CheckButton name="$parent_CheckButton3" inherits="UICheckButtonTemplate" id="3">
                                <Size>
                                        <AbsDimension x="20" y="20"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_CheckButton2">
                                                <Offset>
                                                        <AbsDimension  x="0" y="-20"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                getglobal(this:GetName().."Text"):SetText("On Agro");
                                        </OnLoad>
                                        <OnClick>
                                                Perl_Config_CombatDisplay_Frame_CheckButton1:SetChecked(nil);   <!-- We need to uncheck Button 1 -->
                                                Perl_Config_CombatDisplay_Frame_CheckButton2:SetChecked(nil);   <!-- We need to uncheck Button 2 -->
                                                Perl_Config_CombatDisplay_Frame_CheckButton4:SetChecked(nil);   <!-- We need to uncheck Button 4 -->
                                                Perl_Config_CombatDisplay_Mode_Update();
                                        </OnClick>
                                </Scripts>
                        </CheckButton>

                        <CheckButton name="$parent_CheckButton4" inherits="UICheckButtonTemplate" id="4">
                                <Size>
                                        <AbsDimension x="20" y="20"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_CheckButton3">
                                                <Offset>
                                                        <AbsDimension  x="0" y="-20"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                getglobal(this:GetName().."Text"):SetText("Never");
                                        </OnLoad>
                                        <OnClick>
                                                Perl_Config_CombatDisplay_Frame_CheckButton1:SetChecked(nil);   <!-- We need to uncheck Button 1 -->
                                                Perl_Config_CombatDisplay_Frame_CheckButton2:SetChecked(nil);   <!-- We need to uncheck Button 2 -->
                                                Perl_Config_CombatDisplay_Frame_CheckButton3:SetChecked(nil);   <!-- We need to uncheck Button 3 -->
                                                Perl_Config_CombatDisplay_Mode_Update();
                                        </OnClick>
                                </Scripts>
                        </CheckButton>

                        <CheckButton name="$parent_CheckButton5" inherits="UICheckButtonTemplate" id="5">
                                <Size>
                                        <AbsDimension x="20" y="20"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_Persist_Modes_Text">
                                                <Offset>
                                                        <AbsDimension x="20" y="-20"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                getglobal(this:GetName().."Text"):SetText("Health Persistance");
                                        </OnLoad>
                                        <OnClick>
                                                Perl_Config_CombatDisplay_Health_Persistance_Update();
                                        </OnClick>
                                </Scripts>
                        </CheckButton>

                        <CheckButton name="$parent_CheckButton6" inherits="UICheckButtonTemplate" id="6">
                                <Size>
                                        <AbsDimension x="20" y="20"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_CheckButton5">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                getglobal(this:GetName().."Text"):SetText("Mana Persistance");
                                        </OnLoad>
                                        <OnClick>
                                                Perl_Config_CombatDisplay_Mana_Persistance_Update();
                                        </OnClick>
                                </Scripts>
                        </CheckButton>

                        <CheckButton name="$parent_CheckButton13" inherits="UICheckButtonTemplate" id="13">
                                <Size>
                                        <AbsDimension x="20" y="20"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_Misc_Text">
                                                <Offset>
                                                        <AbsDimension x="20" y="-20"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                getglobal(this:GetName().."Text"):SetText("Display Pet Bars");
                                        </OnLoad>
                                        <OnClick>
                                                Perl_Config_CombatDisplay_PetBars_Update();
                                        </OnClick>
                                </Scripts>
                        </CheckButton>

                        <CheckButton name="$parent_CheckButton12" inherits="UICheckButtonTemplate" id="12">
                                <Size>
                                        <AbsDimension x="20" y="20"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_CheckButton13">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                getglobal(this:GetName().."Text"):SetText("Display Druid Bar");
                                        </OnLoad>
                                        <OnClick>
                                                Perl_Config_CombatDisplay_DruidBar_Update();
                                        </OnClick>
                                </Scripts>
                        </CheckButton>

                        <CheckButton name="$parent_CheckButton8" inherits="UICheckButtonTemplate" id="8">
                                <Size>
                                        <AbsDimension x="20" y="20"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_CheckButton12">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                getglobal(this:GetName().."Text"):SetText("Lock CombatDisplay Frame");
                                        </OnLoad>
                                        <OnClick>
                                                Perl_Config_CombatDisplay_Lock_Update();
                                        </OnClick>
                                </Scripts>
                        </CheckButton>

                        <Slider name="$parent_Slider1" inherits="OptionsSliderTemplate" minValue="1" maxValue="149" valueStep="1">
                                <Size>
                                        <AbsDimension x="200" y="15"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_Scaling_Text">
                                                <Offset>
                                                        <AbsDimension x="20" y="-20"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnValueChanged>
                                                getglobal(this:GetName().."Text"):SetText(getglobal(this:GetName()):GetValue());
                                                Perl_Config_CombatDisplay_Set_Scale(getglobal(this:GetName()):GetValue());
                                        </OnValueChanged>
                                </Scripts>
                        </Slider>

                        <CheckButton name="$parent_CheckButton9" inherits="UICheckButtonTemplate" id="9">
                                <Size>
                                        <AbsDimension x="20" y="20"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="$parent_Slider1">
                                                <Offset>
                                                        <AbsDimension x="20" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                getglobal(this:GetName().."Text"):SetText("Set To Current UI Scale");
                                        </OnLoad>
                                        <OnClick>
                                                Perl_Config_CombatDisplay_Set_Scale();
                                        </OnClick>
                                </Scripts>
                        </CheckButton>

                        <Slider name="$parent_Slider2" inherits="OptionsSliderTemplate" minValue="0" maxValue="100" valueStep="1">
                                <Size>
                                        <AbsDimension x="200" y="15"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_Transparency_Text">
                                                <Offset>
                                                        <AbsDimension x="20" y="-20"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnValueChanged>
                                                getglobal(this:GetName().."Text"):SetText(getglobal(this:GetName()):GetValue());
                                                Perl_Config_CombatDisplay_Set_Transparency(getglobal(this:GetName()):GetValue());
                                        </OnValueChanged>
                                </Scripts>
                        </Slider>

                        <CheckButton name="$parent_CheckButton10" inherits="UICheckButtonTemplate" id="10">
                                <Size>
                                        <AbsDimension x="20" y="20"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_Target_Text">
                                                <Offset>
                                                        <AbsDimension x="20" y="-20"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                getglobal(this:GetName().."Text"):SetText("Enable CombatDisplay Target Frame");
                                        </OnLoad>
                                        <OnClick>
                                                Perl_Config_CombatDisplay_Target_Update();
                                        </OnClick>
                                </Scripts>
                        </CheckButton>

                        <CheckButton name="$parent_CheckButton11" inherits="UICheckButtonTemplate" id="11">
                                <Size>
                                        <AbsDimension x="20" y="20"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent_CheckButton10">
                                                <Offset>
                                                        <AbsDimension x="0" y="-20"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                getglobal(this:GetName().."Text"):SetText("MobHealth Support");
                                        </OnLoad>
                                        <OnClick>
                                                Perl_Config_CombatDisplay_MobHealth_Update();
                                        </OnClick>
                                </Scripts>
                        </CheckButton>
                </Frames>

        </Frame>
</Ui>

Generated by GNU Enscript 1.6.5.90.