<!-- $Id: AtlasOptions.xml 142 2017-01-19 16:08:50Z arith $ -->
<!--

	Atlas, a World of Warcraft instance map browser
	Copyright 2005 ~ 2010 - Dan Gilbert <dan.b.gilbert at gmail dot com>
	Copyright 2010 - Lothaer <lothayer at gmail dot com>, Atlas Team
	Copyright 2011 ~ 2017 - Arith Hsu, Atlas Team <atlas.addon at gmail dot com>

	This file is part of Atlas.

	Atlas is free software; you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation; either version 2 of the License, or
	(at your option) any later version.

	Atlas is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with Atlas; if not, write to the Free Software
	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

-->

<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="AtlasOptions.lua"/>
	<Frame name="AtlasOptionsFrame" hidden="true">
		<Layers>
			<Layer level="ARTWORK">
				<FontString inherits="GameFontNormalLarge" text="ATLAS_TITLE">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="15" y="-15"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<CheckButton name="$ParentToggleButton" inherits="InterfaceOptionsSmallCheckButtonTemplate">
				<Size>
					<AbsDimension x = "25" y = "25"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="15" y="-40"/>
						</Offset>
					</Anchor>
				</Anchors>
				<HitRectInsets>
					<AbsInset left = "4" right = "4" top = "4" bottom = "6"/>
				</HitRectInsets>
				<Scripts>
					<OnLoad>
						_G[self:GetName().."Text"]:SetText(ATLAS_OPTIONS_SHOWBUT);
					</OnLoad>
					<OnClick>
						AtlasButton_Toggle();
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
						GameTooltip:SetText(ATLAS_OPTIONS_SHOWBUT_TIP, nil, nil, nil, nil, 1);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</CheckButton>
			<CheckButton name="$ParentAutoSelect" inherits="InterfaceOptionsSmallCheckButtonTemplate">
				<Size>
					<AbsDimension x = "25" y = "25"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="15" y="-60"/>
						</Offset>
					</Anchor>
				</Anchors>
				<HitRectInsets>
					<AbsInset left = "4" right = "4" top = "4" bottom = "6"/>
				</HitRectInsets>
				<Scripts>
					<OnLoad>
						_G[self:GetName().."Text"]:SetText(ATLAS_OPTIONS_AUTOSEL);
					</OnLoad>
					<OnClick>
						AtlasOptions_AutoSelectToggle();
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
						GameTooltip:SetText(ATLAS_OPTIONS_AUTOSEL_TIP, nil, nil, nil, nil, 1);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</CheckButton>
			<CheckButton name="$ParentRightClick" inherits="InterfaceOptionsSmallCheckButtonTemplate">
				<Size>
					<AbsDimension x = "25" y = "25"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="15" y="-80"/>
						</Offset>
					</Anchor>
				</Anchors>
				<HitRectInsets>
					<AbsInset left = "4" right = "4" top = "4" bottom = "6"/>
				</HitRectInsets>
				<Scripts>
					<OnLoad>
						_G[self:GetName().."Text"]:SetText(ATLAS_OPTIONS_RCLICK);
					</OnLoad>
					<OnClick>
						AtlasOptions_RightClickToggle();
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
						GameTooltip:SetText(ATLAS_OPTIONS_RCLICK_TIP, nil, nil, nil, nil, 1);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</CheckButton>
			<CheckButton name="$ParentAcronyms" inherits="InterfaceOptionsSmallCheckButtonTemplate">
				<Size>
					<AbsDimension x = "25" y = "25"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="15" y="-100"/>
						</Offset>
					</Anchor>
				</Anchors>
				<HitRectInsets>
					<AbsInset left = "4" right = "4" top = "4" bottom = "6"/>
				</HitRectInsets>
				<Scripts>
					<OnLoad>
						_G[self:GetName().."Text"]:SetText(ATLAS_OPTIONS_ACRONYMS);
					</OnLoad>
					<OnClick>
						AtlasOptions_AcronymsToggle();
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
						GameTooltip:SetText(ATLAS_OPTIONS_ACRONYMS_TIP, nil, nil, nil, nil, 1);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</CheckButton>
			<CheckButton name="$ParentClamped" inherits="InterfaceOptionsSmallCheckButtonTemplate">
				<Size>
					<AbsDimension x = "25" y = "25"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="15" y="-120"/>
						</Offset>
					</Anchor>
				</Anchors>
				<HitRectInsets>
					<AbsInset left = "4" right = "4" top = "4" bottom = "6"/>
				</HitRectInsets>
				<Scripts>
					<OnLoad>
						_G[self:GetName().."Text"]:SetText(ATLAS_OPTIONS_CLAMPED);
					</OnLoad>
					<OnClick>
						AtlasOptions_ClampedToggle();
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
						GameTooltip:SetText(ATLAS_OPTIONS_CLAMPED_TIP, nil, nil, nil, nil, 1);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</CheckButton>
			<CheckButton name="$ParentCtrl" inherits="InterfaceOptionsSmallCheckButtonTemplate">
				<Size>
					<AbsDimension x = "25" y = "25"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="15" y="-140"/>
						</Offset>
					</Anchor>
				</Anchors>
				<HitRectInsets>
					<AbsInset left = "4" right = "4" top = "4" bottom = "6"/>
				</HitRectInsets>
				<Scripts>
					<OnLoad>
						_G[self:GetName().."Text"]:SetText(ATLAS_OPTIONS_CTRL);
					</OnLoad>
					<OnClick>
						AtlasOptions_CtrlToggle();
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
						GameTooltip:SetText(ATLAS_OPTIONS_CTRL_TIP, nil, nil, nil, nil, 1);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</CheckButton>
			<CheckButton name="$ParentLock" inherits="InterfaceOptionsSmallCheckButtonTemplate">
				<Size>
					<AbsDimension x = "25" y = "25"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="15" y="-160"/>
						</Offset>
					</Anchor>
				</Anchors>
				<HitRectInsets>
					<AbsInset left = "4" right = "4" top = "4" bottom = "6"/>
				</HitRectInsets>
				<Scripts>
					<OnLoad>
						_G[self:GetName().."Text"]:SetText(ATLAS_OPTIONS_LOCK);
					</OnLoad>
					<OnClick>
						AtlasOptions_ToggleLock();
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
						GameTooltip:SetText(ATLAS_OPTIONS_LOCK_TIP, nil, nil, nil, nil, 1);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</CheckButton>
			<CheckButton name="$ParentBossDesc" inherits="InterfaceOptionsSmallCheckButtonTemplate">
				<Size>
					<AbsDimension x = "25" y = "25"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="15" y="-180"/>
						</Offset>
					</Anchor>
				</Anchors>
				<HitRectInsets>
					<AbsInset left = "4" right = "4" top = "4" bottom = "6"/>
				</HitRectInsets>
				<Scripts>
					<OnLoad>
						_G[self:GetName().."Text"]:SetText(ATLAS_OPTIONS_BOSS_DESC);
					</OnLoad>
					<OnClick>
						AtlasOptions_ToggleBossDesc();
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
						GameTooltip:SetText(ATLAS_OPTIONS_BOSS_DESC_TIP, nil, nil, nil, nil, 1);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</CheckButton>
			<CheckButton name="$ParentCheckModule" inherits="InterfaceOptionsSmallCheckButtonTemplate">
				<Size>
					<AbsDimension x = "25" y = "25"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="15" y="-200"/>
						</Offset>
					</Anchor>
				</Anchors>
				<HitRectInsets>
					<AbsInset left = "4" right = "4" top = "4" bottom = "6"/>
				</HitRectInsets>
				<Scripts>
					<OnLoad>
						_G[self:GetName().."Text"]:SetText(ATLAS_OPTIONS_CHECKMODULE);
					</OnLoad>
					<OnClick>
						AtlasOptions_ToggleCheckModule();
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
						GameTooltip:SetText(ATLAS_OPTIONS_CHECKMODULE_TIP, nil, nil, nil, nil, 1);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</CheckButton>
			<CheckButton name="$ParentColoringDropdown" inherits="InterfaceOptionsSmallCheckButtonTemplate">
				<Size>
					<AbsDimension x = "25" y = "25"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="15" y="-220"/>
						</Offset>
					</Anchor>
				</Anchors>
				<HitRectInsets>
					<AbsInset left = "4" right = "4" top = "4" bottom = "6"/>
				</HitRectInsets>
				<Scripts>
					<OnLoad>
						_G[self:GetName().."Text"]:SetText(ATLAS_OPTIONS_COLORINGDROPDOWN);
					</OnLoad>
					<OnClick>
						if (AtlasOptions.AtlasColoringDropDown) then
							AtlasOptions.AtlasColoringDropDown = false;
						else
							AtlasOptions.AtlasColoringDropDown = true;
						end
						Atlas_Refresh();
						AtlasFrameDropDown_OnShow();
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
						GameTooltip:SetText(ATLAS_OPTIONS_COLORINGDROPDOWN_TIP, nil, nil, nil, nil, 1);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</CheckButton>
			<Frame name="$ParentDropDownCats" inherits="Lib_UIDropDownMenuTemplate">
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$parentLabel" inherits="GameFontNormalSmall" text="ATLAS_OPTIONS_CATDD">
							<Anchors>
								<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
									<Offset>
										<AbsDimension x="20" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="1" y="-260"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Slider name="$ParentSliderAlpha" inherits="OptionsSliderTemplate">
				<Size>
					<AbsDimension x="360" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="TOP">
						<Offset>
							<AbsDimension x="0" y="-325" />
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self:EnableMouseWheel(true)
						AtlasOptions_SetupSlider(self, ATLAS_OPTIONS_TRANS, 0, 1.0, 0.01);
						AtlasOptionsFrameSliderAlphaLow:SetText("0.00");
						AtlasOptionsFrameSliderAlphaHigh:SetText("1.00");
					</OnLoad>
					<OnValueChanged>
						AtlasOptions_UpdateSlider(self, ATLAS_OPTIONS_TRANS);
						AtlasOptions.AtlasAlpha = self:GetValue();
						Atlas_UpdateAlpha();
					</OnValueChanged>
					<OnMouseWheel>
						AtlasOptions_OnMouseWheel(self, delta)
					</OnMouseWheel>
				</Scripts>
			</Slider>
			<Slider name="$ParentSliderScale" inherits="OptionsSliderTemplate">
				<Size>
					<AbsDimension x="360" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="TOP">
						<Offset>
							<AbsDimension x="0" y="-360" />
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self:EnableMouseWheel(true)
						AtlasOptions_SetupSlider(self, ATLAS_OPTIONS_SCALE, 0.01, 1.75, 0.01);
						AtlasOptionsFrameSliderScaleLow:SetText("0.01");
						AtlasOptionsFrameSliderScaleHigh:SetText("1.75");
					</OnLoad>
					<OnValueChanged>
						AtlasOptions_UpdateSlider(self, ATLAS_OPTIONS_SCALE);
						AtlasOptions.AtlasScale = self:GetValue();
						Atlas_UpdateScale();
					</OnValueChanged>
					<OnMouseWheel>
						AtlasOptions_OnMouseWheel(self, delta)
					</OnMouseWheel>
				</Scripts>
			</Slider>
			<Slider name="$ParentSliderBossDescScale" inherits="OptionsSliderTemplate">
				<Size>
					<AbsDimension x="360" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="TOP">
						<Offset>
							<AbsDimension x="0" y="-395" />
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self:EnableMouseWheel(true)
						AtlasOptions_SetupSlider(self, ATLAS_OPTIONS_SCALE, 0.01, 1.75, 0.01);
						AtlasOptionsFrameSliderBossDescScaleLow:SetText("0.01");
						AtlasOptionsFrameSliderBossDescScaleHigh:SetText("1.75");
					</OnLoad>
					<OnValueChanged>
						AtlasOptions_UpdateSlider(self, ATLAS_OPTIONS_BOSS_DESC_SCALE);
						AtlasOptions.AtlasBossDescScale = self:GetValue();
					</OnValueChanged>
					<OnMouseWheel>
						AtlasOptions_OnMouseWheel(self, delta)
					</OnMouseWheel>
				</Scripts>
			</Slider>
<!--
			<Button name="$ParentResetPosition" inherits="UIPanelButtonTemplate" text="ATLAS_OPTIONS_RESETPOS">
				<Size>
					<AbsDimension x="160" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="-20" y="15"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						AtlasOptions_ResetPosition();
					</OnClick>
				</Scripts>
			</Button>
-->
		</Frames>
		<Scripts>
			<OnLoad>
				AtlasOptions_OnLoad(self);
			</OnLoad>
			<OnShow>
				AtlasOptions_OnShow(self);
			</OnShow>
		</Scripts>
	</Frame>
</Ui>
