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="ISync_MiniMapButton.lua"/>
        
        <Frame name="ISync_MiniMapButtonFrame" parent="Minimap" enableMouse="true" hidden="false" frameStrata="LOW">
                <Size>
                        <AbsDimension x="32" y="32"/>
                </Size>
                <Anchors>
                        <Anchor point="TOPLEFT" relativeTo="Minimap" relativePoint="RIGHT">
                                <Offset>
                                        <AbsDimension x="2" y="0"/>
                                </Offset>
                        </Anchor>
                </Anchors>
                <Frames>
                        <Button name="ISync_MiniMapButton">
                                <Size>
                                        <AbsDimension x="32" y="32"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <NormalTexture file="Interface\AddOns\ItemSync\images\ISync_ButtonUp"/>
                                <PushedTexture file="Interface\AddOns\ItemSync\images\ISync_ButtonDown"/>
                                <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
                                <Scripts>
                                        <OnClick>
                                                if(ISync) then ISync:MiniMapButton_Toggle(); end
                                        </OnClick>
                                        <OnEnter>
                                                GameTooltip_SetDefaultAnchor(GameTooltip, UIParent);
                                                GameTooltip:SetText("ItemSync (V:"..ISYNC_VERSION..")");
                                        </OnEnter>
                                        <OnLeave>
                                                GameTooltip:Hide();
                                        </OnLeave>
                                </Scripts>
                        </Button>
                </Frames>
                <Scripts>
                </Scripts>
        </Frame>
        
        <Frame name="ISync_OptionsFrameGeneral_Tab"  toplevel="true" enableMouse="true" hidden="true" parent="ISync_OptionsFrame">
                <Size>
                        <AbsDimension x="360" y="450"/>
                </Size>
                <Anchors>
                        <Anchor point="CENTER" relativeTo="ISync_OptionsFrame" relativePoint="CENTER">
                                <Offset>
                                        <AbsDimension x="0" y="0"/>
                                </Offset>
                        </Anchor>
                </Anchors>
                <Frames>
                        <Frame name="ISYNC_Options_General_MergeDB" inherits="OptionFrameBoxTemplate">
                                <Size>
                                        <AbsDimension x="335" y="40"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="ISync_OptionsFrameGeneral_Tab" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="13" y="410"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="BACKGROUND">
                                                <FontString inherits="GameFontNormal" text="ISYNC_OPTIONS_SERVER_HEADER1_SUB1">
                                                        <Anchors>
                                                                <Anchor point="TOPLEFT"> 
                                                                        <Offset>
                                                                                <AbsDimension x="30" y="-10"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </FontString>
                                        </Layer>
                                </Layers>

                                <Frames>
                                        <CheckButton name="ISYNC_Options_General_MergeDBCheckButton1" inherits="OptionsCheckButtonTemplate">
                                                <Size>
                                                        <AbsDimension x="26" y="26"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOPLEFT">
                                                                <Offset>
                                                                        <AbsDimension x="5" y="-5"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Scripts>
                                                        <OnClick>
                                                                if(this:GetChecked()) then
 
                                                                        StaticPopup_Show("ISYNC_MERGEDB_CONFIRM");
 
                                                                else
                                                                        StaticPopup_Show("ISYNC_MERGEDB_UNCHECKCONFIRM");
                                                                        
                                                                end
                                                        </OnClick>
                                                </Scripts>
                                        </CheckButton>
                                        
                                        <Button name="ISYNC_Options_General_Help16" virtual="true" hidden="false">
                                                <Size>
                                                        <AbsDimension x="18" y="16"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
                                                                <Offset>
                                                                        <AbsDimension x="-8" y="-8"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Layers>
                                                        <Layer level="OVERLAY">
                                                                <FontString name="$parentText" inherits="GameFontNormal" justifyH="RIGHT" text="[?]">
                                                                        <Anchors>
                                                                                <Anchor point="RIGHT">
                                                                                        <Offset>
                                                                                                <AbsDimension x="0" y="0"/>
                                                                                        </Offset>
                                                                                </Anchor>
                                                                        </Anchors>
                                                                </FontString>
                                                        </Layer>
                                                </Layers>
                                                <Scripts>
                                                        <OnEnter>
                                                                getglobal(this:GetName() .. "Text"):SetTextColor(1, 1, 0);
                                                                GameTooltip:SetOwner(this, "ANCHOR_LEFT");
                                                                GameTooltip:SetText(ISYNC_HELP_SUB16, 1, 0.72, 0, nil, 1);
                                                                GameTooltip:Show();
                                                        </OnEnter>
                                                        <OnLeave>
                                                                getglobal(this:GetName() .. "Text"):SetTextColor(1, 0.82, 0);
                                                                GameTooltip:Hide();                                             
                                                        </OnLeave>
                                                </Scripts>
                                        </Button>
                                </Frames>

                                <Scripts>
                                        <OnLoad>
                                                this:SetBackdropBorderColor(0.4, 0.4, 0.4);
                                                this:SetBackdropColor(0.15, 0.15, 0.15);
                                                getglobal(this:GetName().."Title"):SetText(ISYNC_OPTIONS_SERVER_HEADER1);
                                        </OnLoad>
                                </Scripts>
                        </Frame>
                        
                        
                        <Frame name="ISYNC_Options_General_ItemIcon" inherits="OptionFrameBoxTemplate">
                                <Size>
                                        <AbsDimension x="335" y="40"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="ISync_OptionsFrameGeneral_Tab" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="13" y="355"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="BACKGROUND">
                                                <FontString inherits="GameFontNormal" text="ISYNC_OPTIONS_CLEAN_HEADER1_SUB1">
                                                        <Anchors>
                                                                <Anchor point="TOPLEFT"> 
                                                                        <Offset>
                                                                                <AbsDimension x="30" y="-10"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </FontString>
                                        </Layer>
                                </Layers>
 
                                <Frames>
                                        <CheckButton name="ISYNC_Options_General_ItemIcon_CheckButton1" inherits="OptionsCheckButtonTemplate">
                                                <Size>
                                                        <AbsDimension x="26" y="26"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOPLEFT">
                                                                <Offset>
                                                                        <AbsDimension x="5" y="-5"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Scripts>
                                                        <OnClick>
                                                                if(this:GetChecked()) then

                                                                        ISync:SetVar({"OPT","TOOLTIPITEMICONS"}, 1, "TRUE");

                                                                else
                                                                        ISync:SetVar({"OPT","TOOLTIPITEMICONS"}, 0, "TRUE");

                                                                end
                                                        </OnClick>
                                                </Scripts>
                                        </CheckButton>
                                        
                                        <Button name="ISync_Options_Regular_Help_Clean19" virtual="true" hidden="false">
                                                <Size>
                                                        <AbsDimension x="18" y="16"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
                                                                <Offset>
                                                                        <AbsDimension x="-8" y="-8"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Layers>
                                                        <Layer level="OVERLAY">
                                                                <FontString name="$parentText" inherits="GameFontNormal" justifyH="RIGHT" text="[?]">
                                                                        <Anchors>
                                                                                <Anchor point="RIGHT">
                                                                                        <Offset>
                                                                                                <AbsDimension x="0" y="0"/>
                                                                                        </Offset>
                                                                                </Anchor>
                                                                        </Anchors>
                                                                </FontString>
                                                        </Layer>
                                                </Layers>
                                                <Scripts>
                                                        <OnEnter>
                                                                getglobal(this:GetName() .. "Text"):SetTextColor(1, 1, 0);
                                                                GameTooltip:SetOwner(this, "ANCHOR_LEFT");
                                                                GameTooltip:SetText(ISYNC_HELP_SUB19, 1, 0.72, 0, nil, 1);
                                                                GameTooltip:Show();
                                                        </OnEnter>
                                                        <OnLeave>
                                                                getglobal(this:GetName() .. "Text"):SetTextColor(1, 0.82, 0);
                                                                GameTooltip:Hide();                                             
                                                        </OnLeave>
                                                </Scripts>
                                        </Button>
                                        
                                </Frames>
 
                                <Scripts>
                                        <OnLoad>
                                                this:SetBackdropBorderColor(0.4, 0.4, 0.4);
                                                this:SetBackdropColor(0.15, 0.15, 0.15);
                                                getglobal(this:GetName().."Title"):SetText(ISYNC_OPTIONS_CLEAN_HEADER1);
                                        </OnLoad>
                                </Scripts>
                        </Frame>
 
 
                        <Frame name="ISYNC_Options_General_ResetWindows" inherits="OptionFrameBoxTemplate">
                                <Size>
                                        <AbsDimension x="335" y="40"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="ISync_OptionsFrameGeneral_Tab" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="13" y="300"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Frames>
                                        <Button name="ISYNC_Options_General_ResetWindows_Button" inherits="UIPanelButtonTemplate" text="ISYNC_SLASHRESETWINDOWS">
                                                <Size>
                                                        <AbsDimension x="140" y="21"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="CENTER" relativePoint="CENTER">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="0"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Scripts>
                                                        <OnClick>
                                                                
                                                                if(ISync_SlashCommand) then ISync_SlashCommand("resetwindow"); end
                                                            
                                                        </OnClick>
                                                </Scripts>
                                        </Button>
                                        
                                        <Button name="ISync_Options_Regular_Help_Clean_ResetWindow" virtual="true" hidden="false">
                                                <Size>
                                                        <AbsDimension x="18" y="16"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
                                                                <Offset>
                                                                        <AbsDimension x="-8" y="-8"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Layers>
                                                        <Layer level="OVERLAY">
                                                                <FontString name="$parentText" inherits="GameFontNormal" justifyH="RIGHT" text="[?]">
                                                                        <Anchors>
                                                                                <Anchor point="RIGHT">
                                                                                        <Offset>
                                                                                                <AbsDimension x="0" y="0"/>
                                                                                        </Offset>
                                                                                </Anchor>
                                                                        </Anchors>
                                                                </FontString>
                                                        </Layer>
                                                </Layers>
                                                <Scripts>
                                                        <OnEnter>
                                                                getglobal(this:GetName() .. "Text"):SetTextColor(1, 1, 0);
                                                                GameTooltip:SetOwner(this, "ANCHOR_LEFT");
                                                                GameTooltip:SetText(ISYNC_SLASHRESETWINDOWS, 1, 0.72, 0, nil, 1);
                                                                GameTooltip:Show();
                                                        </OnEnter>
                                                        <OnLeave>
                                                                getglobal(this:GetName() .. "Text"):SetTextColor(1, 0.82, 0);
                                                                GameTooltip:Hide();                                             
                                                        </OnLeave>
                                                </Scripts>
                                        </Button>
                                        
                                </Frames>
  
                                <Scripts>
                                        <OnLoad>
                                                this:SetBackdropBorderColor(0.4, 0.4, 0.4);
                                                this:SetBackdropColor(0.15, 0.15, 0.15);
                                                getglobal(this:GetName().."Title"):SetText(ISYNC_SLASHRESETWINDOWS);
                                        </OnLoad>
                                </Scripts>
                        </Frame>
                        
                        
                        <Frame name="ISYNC_Options_General_MouseOver" inherits="OptionFrameBoxTemplate">
                                <Size>
                                        <AbsDimension x="335" y="40"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="ISync_OptionsFrameGeneral_Tab" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="13" y="245"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="BACKGROUND">
                                                <FontString inherits="GameFontNormal" text="ISYNC_OPTIONS_CLEAN_HEADER2_SUB1">
                                                        <Anchors>
                                                                <Anchor point="TOPLEFT"> 
                                                                        <Offset>
                                                                                <AbsDimension x="30" y="-10"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </FontString>
                                        </Layer>
                                </Layers>
   
                                <Frames>
                                        <CheckButton name="ISYNC_Options_General_MouseOver_CheckButton1" inherits="OptionsCheckButtonTemplate">
                                                <Size>
                                                        <AbsDimension x="26" y="26"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOPLEFT">
                                                                <Offset>
                                                                        <AbsDimension x="5" y="-5"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Scripts>
                                                        <OnClick>
                                                                if(this:GetChecked()) then
  
                                                                        ISync:SetVar({"OPT","MOUSEOVERINSPECT"}, 1, "TRUE");
  
                                                                else
                                                                        ISync:SetVar({"OPT","MOUSEOVERINSPECT"}, 0, "TRUE");
  
                                                                end
                                                        </OnClick>
                                                </Scripts>
                                        </CheckButton>
                                        
                                        <Button name="ISync_Options_Regular_Help_CleanMouseOver" virtual="true" hidden="false">
                                                <Size>
                                                        <AbsDimension x="18" y="16"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
                                                                <Offset>
                                                                        <AbsDimension x="-8" y="-8"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Layers>
                                                        <Layer level="OVERLAY">
                                                                <FontString name="$parentText" inherits="GameFontNormal" justifyH="RIGHT" text="[?]">
                                                                        <Anchors>
                                                                                <Anchor point="RIGHT">
                                                                                        <Offset>
                                                                                                <AbsDimension x="0" y="0"/>
                                                                                        </Offset>
                                                                                </Anchor>
                                                                        </Anchors>
                                                                </FontString>
                                                        </Layer>
                                                </Layers>
                                                <Scripts>
                                                        <OnEnter>
                                                                getglobal(this:GetName() .. "Text"):SetTextColor(1, 1, 0);
                                                                GameTooltip:SetOwner(this, "ANCHOR_LEFT");
                                                                GameTooltip:SetText(ISYNC_HELP_SUB21, 1, 0.72, 0, nil, 1);
                                                                GameTooltip:Show();
                                                        </OnEnter>
                                                        <OnLeave>
                                                                getglobal(this:GetName() .. "Text"):SetTextColor(1, 0.82, 0);
                                                                GameTooltip:Hide();                                             
                                                        </OnLeave>
                                                </Scripts>
                                        </Button>
                                        
                                </Frames>
   
                                <Scripts>
                                        <OnLoad>
                                                this:SetBackdropBorderColor(0.4, 0.4, 0.4);
                                                this:SetBackdropColor(0.15, 0.15, 0.15);
                                                getglobal(this:GetName().."Title"):SetText(ISYNC_OPTIONS_CLEAN_HEADER2);
                                        </OnLoad>
                                </Scripts>
                        </Frame>
                        
 
                        <Frame name="ISync_Options_General_EnableTypeLink" inherits="OptionFrameBoxTemplate">
                                <Size>
                                        <AbsDimension x="335" y="40"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="ISync_OptionsFrameGeneral_Tab" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="13" y="190"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="BACKGROUND">
                                                <FontString inherits="GameFontNormal" text="ISYNC_OPTIONS_GENERAL_HEADER1_SUB1">
                                                        <Anchors>
                                                                <Anchor point="TOPLEFT"> 
                                                                        <Offset>
                                                                                <AbsDimension x="30" y="-10"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </FontString>
                                        </Layer>
                                </Layers>
  
                                <Frames>
                                        <CheckButton name="ISync_Options_General_EnableTypeLink_CheckButton1" inherits="OptionsCheckButtonTemplate">
                                                <Size>
                                                        <AbsDimension x="26" y="26"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOPLEFT">
                                                                <Offset>
                                                                        <AbsDimension x="5" y="-5"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Scripts>
                                                        <OnClick>
                                                                if(this:GetChecked()) then

                                                                        ISync:SetVar({"OPT","LINKFETCH"}, 1, "TRUE");

                                                                else
                                                                        ISync:SetVar({"OPT","LINKFETCH"}, 0, "TRUE");

                                                                end
                                                        </OnClick>
                                                </Scripts>
                                        </CheckButton>
                                        <Button name="ISync_Options_Mods_Help_TypeLinks" virtual="true" hidden="false">
                                                <Size>
                                                        <AbsDimension x="18" y="16"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
                                                                <Offset>
                                                                        <AbsDimension x="-8" y="-8"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Layers>
                                                        <Layer level="OVERLAY">
                                                                <FontString name="$parentText" inherits="GameFontNormal" justifyH="RIGHT" text="[?]">
                                                                        <Anchors>
                                                                                <Anchor point="RIGHT">
                                                                                        <Offset>
                                                                                                <AbsDimension x="0" y="0"/>
                                                                                        </Offset>
                                                                                </Anchor>
                                                                        </Anchors>
                                                                </FontString>
                                                        </Layer>
                                                </Layers>
                                                <Scripts>
                                                        <OnEnter>
                                                                getglobal(this:GetName() .. "Text"):SetTextColor(1, 1, 0);
                                                                GameTooltip:SetOwner(this, "ANCHOR_LEFT");
                                                                GameTooltip:SetText(ISYNC_HELP_SUB20, 1, 0.72, 0, nil, 1);
                                                                GameTooltip:Show();
                                                        </OnEnter>
                                                        <OnLeave>
                                                                getglobal(this:GetName() .. "Text"):SetTextColor(1, 0.82, 0);
                                                                GameTooltip:Hide();                                             
                                                        </OnLeave>
                                                </Scripts>
                                        </Button>
                                        
                                </Frames>
  
                                <Scripts>
                                        <OnLoad>
                                                this:SetBackdropBorderColor(0.4, 0.4, 0.4);
                                                this:SetBackdropColor(0.15, 0.15, 0.15);
                                                getglobal(this:GetName().."Title"):SetText(ISYNC_OPTIONS_GENERAL_HEADER1);
                                        </OnLoad>
                                </Scripts>
                        </Frame>
                
                
                        <Frame name="ISync_OptionsFrameGeneral_MiniMapFrame" inherits="OptionFrameBoxTemplate">
                                <Size>
                                        <AbsDimension x="335" y="80"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="CENTER" relativeTo="ISync_OptionsFrameGeneral_Tab" relativePoint="CENTER">
                                                <Offset>
                                                        <AbsDimension x="0" y="-133"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="BACKGROUND">
                                                <FontString inherits="GameFontNormal" text="ISYNC_MINIMAPBUTTON_CHECKBUTTON">
                                                        <Anchors>
                                                                <Anchor point="TOPLEFT"> 
                                                                        <Offset>
                                                                                <AbsDimension x="30" y="-10"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </FontString>
                                        </Layer>
                                </Layers>

                                <Frames>

                                        <CheckButton name="ISync_OptionsFrameGeneral_MiniMap_CheckButton1" inherits="OptionsCheckButtonTemplate">
                                                <Size>
                                                        <AbsDimension x="26" y="26"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOPLEFT">
                                                                <Offset>
                                                                        <AbsDimension x="5" y="-5"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Scripts>
                                                        <OnClick>
                                                                if(this:GetChecked()) then

                                                                        ISync:SetVar({"OPT","MINIMAP_SHOW"}, 1, "TRUE");
                                                                        ISync:MiniMapButton_Init();

                                                                else
                                                                        ISync:SetVar({"OPT","MINIMAP_SHOW"}, 0, "TRUE");
                                                                        ISync:MiniMapButton_Init();

                                                                end
                                                        </OnClick>
                                                </Scripts>
                                        </CheckButton>


                                        <Slider name="ISync_MiniMapButton_SliderButtonPos" inherits="OptionsSliderTemplate">
                                                <Size>
                                                        <AbsDimension x="220" y="16"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOP">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-50" />
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Scripts>
                                                        <OnShow>
                                                        
                                                                getglobal(this:GetName().."Text"):SetText(ISYNC_MINIMAPBUTTON_SLIDERTEXT..": |c00FFFFFF"..ISync:SetVar({"OPT","MINIMAP_LOC"}, 305).."|r");
                                                                getglobal(this:GetName().."High"):SetText();
                                                                getglobal(this:GetName().."Low"):SetText();
                                                                ISync_MiniMapButton_SliderButtonPos:SetMinMaxValues(0,360);
                                                                ISync_MiniMapButton_SliderButtonPos:SetValueStep(1);

                                                                ISync_MiniMapButton_SliderButtonPos:SetValue(ISync:SetVar({"OPT","MINIMAP_LOC"}, 305));


                                                        </OnShow>
                                                        <OnValueChanged>

                                                                ISync:SetVar({"OPT","MINIMAP_LOC"}, ISync_MiniMapButton_SliderButtonPos:GetValue(), "TRUE");
                                                                getglobal(this:GetName().."Text"):SetText(ISYNC_MINIMAPBUTTON_SLIDERTEXT..": |c00FFFFFF"..ISync_MiniMapButton_SliderButtonPos:GetValue().."|r");
                                                                
                                                                ISync:MiniMapButton_UpdatePosition();

                                                        </OnValueChanged>
                                                </Scripts>
                                        </Slider>

                                        <Button name="ISync_OptionsGeneral_MiniMapOptHelp" virtual="true" hidden="false">
                                                <Size>
                                                        <AbsDimension x="18" y="16"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
                                                                <Offset>
                                                                        <AbsDimension x="-8" y="-8"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Layers>
                                                        <Layer level="OVERLAY">
                                                                <FontString name="$parentText" inherits="GameFontNormal" justifyH="RIGHT" text="[?]">
                                                                        <Anchors>
                                                                                <Anchor point="RIGHT">
                                                                                        <Offset>
                                                                                                <AbsDimension x="0" y="0"/>
                                                                                        </Offset>
                                                                                </Anchor>
                                                                        </Anchors>
                                                                </FontString>
                                                        </Layer>
                                                </Layers>
                                                <Scripts>
                                                        <OnEnter>
                                                                getglobal(this:GetName() .. "Text"):SetTextColor(1, 1, 0);
                                                                GameTooltip:SetOwner(this, "ANCHOR_LEFT");
                                                                GameTooltip:SetText(ISYNC_MINIMAPBUTTON_TOOLTIP, 1, 0.72, 0, nil, 1);
                                                                GameTooltip:Show();
                                                        </OnEnter>
                                                        <OnLeave>
                                                                getglobal(this:GetName() .. "Text"):SetTextColor(1, 0.82, 0);
                                                                GameTooltip:Hide();                                             
                                                        </OnLeave>
                                                </Scripts>
                                        </Button>

                                </Frames>

                                <Scripts>
                                        <OnLoad>
                                                this:SetBackdropBorderColor(0.4, 0.4, 0.4);
                                                this:SetBackdropColor(0.15, 0.15, 0.15);
                                                getglobal(this:GetName().."Title"):SetText(ISYNC_MINIMAPBUTTON_HEADER);

                                        </OnLoad>
                                </Scripts>
                        </Frame>
                                        
                                        
                </Frames>
 
                        <Scripts>
                                <OnShow>
                                                getglobal("ISync_OptionsFrameGeneral_MiniMap_CheckButton1"):SetChecked(ISync:SetVar({"OPT","MINIMAP_SHOW"}, 0));
                                                getglobal("ISYNC_Options_General_MergeDBCheckButton1"):SetChecked(ISync:SetVar({"OPT","SERVER_MERGE"}, 0));
                                                getglobal("ISYNC_Options_General_ItemIcon_CheckButton1"):SetChecked(ISync:SetVar({"OPT","TOOLTIPITEMICONS"}, 1));
                                                getglobal("ISYNC_Options_General_MouseOver_CheckButton1"):SetChecked(ISync:SetVar({"OPT","MOUSEOVERINSPECT"}, 1));
                                                getglobal("ISync_Options_General_EnableTypeLink_CheckButton1"):SetChecked(ISync:SetVar({"OPT","LINKFETCH"}, 0));
                                                getglobal("ISync_MiniMapButton_SliderButtonPos"):SetValue(ISync:SetVar({"OPT","MINIMAP_LOC"}, 305));
                                                getglobal("ISync_MiniMapButton_SliderButtonPosText"):SetText(ISYNC_MINIMAPBUTTON_SLIDERTEXT..": |c00FFFFFF"..ISync:SetVar({"OPT","MINIMAP_LOC"}, 305).."|r");
                                                

                                                
                                                PlaySound("igMainMenuOptionCheckBoxOn");

                                </OnShow>
                                                <OnMouseDown> ISync_OptionsFrame:StartMoving();  </OnMouseDown>
                                                <OnMouseUp>  ISync_OptionsFrame:StopMovingOrSizing(); </OnMouseUp>
                                                <OnDragStop> ISync_OptionsFrame:StopMovingOrSizing(); </OnDragStop>

                        </Scripts>
        </Frame>
        



</Ui>

Generated by GNU Enscript 1.6.5.90.