<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/"> 
	<Script file="DEXoptions.lua"/>
	
	<!-- CHECKBUTTON TEMPLATE -->
	<CheckButton name="DEXCheckTemplate" inherits="UICheckButtonTemplate" virtual="true">
		<HitRectInsets>
			<AbsInset left="0" right="0" top="0" bottom="0"/>
		</HitRectInsets>
		<Scripts>
			<OnClick>				
				DEX_OptionsCheckButtonOnClick(self, self:GetName());
				DEX_OnOptionCheck(self:GetName(), self:GetChecked())
			</OnClick>
			<OnEnter>
				if self.tooltipText then
					GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
					GameTooltip_SetTitle(GameTooltip, self.tooltipText);
					GameTooltip:Show();
				end
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
	</CheckButton>
	
	<!-- SLIDER TEMPLATE -->
	<Slider name="DEXSliderTemplate" inherits="OptionsSliderTemplate" virtual="true">
		<Scripts>
			<OnEnter>
				if self.tooltipText then
					GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
					GameTooltip_SetTitle(GameTooltip, self.tooltipText);
					GameTooltip:Show();
				end
			</OnEnter>
			<OnValueChanged>
				DEX_OptionsSliderOnValueChanged(self, self:GetName());
			</OnValueChanged>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
	</Slider >
	
	<Frame name="DEXColorPickerTemplate" virtual="true">		
		<Frames>
			<Button name="$parent_ColorSwatch">
				<Size>
					<AbsDimension x="16" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parent_SwatchBg">
							<Size>
								<AbsDimension x="14" y="14"/>
							</Size>
							<Anchors>
								<Anchor point="CENTER">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<Color r="1.0" g="1.0" b="1.0"/>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnClick>
						DEX_OpenColorPicker(self, self:GetParent());
					</OnClick>
					<OnEnter>
						getglobal(self:GetName().."_SwatchBg"):SetVertexColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b);
					</OnEnter>
					<OnLeave>
						getglobal(self:GetName().."_SwatchBg"):SetVertexColor(HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b);
					</OnLeave>
				</Scripts>
				<NormalTexture name="$parentNormalTexture" file="Interface\ChatFrame\ChatFrameColorSwatch"/>
			</Button>			
		</Frames>
	</Frame>
	
	<Frame name="DEXColorPickerExTemplate" inherits="DEXColorPickerTemplate" virtual="true">
		<Size>
			<AbsDimension x="160" y="22"/>
		</Size>		
		<Layers>
			<Layer level="ARTWORK">				
				<FontString name="$parent_Text" inherits="GameFontNormal">
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parent">
							<Offset>
								<AbsDimension x="40" y="0" />
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>			
		</Layers>
	</Frame>
	
	<!-- Drag-able frame template  -->
	<Frame name="DEXDragableFrameTemplate" movable="true" enableMouse="true" virtual="true" inherits="BackdropTemplate">
		<Scripts>
			<OnLoad inherit="prepend">
				self:SetUserPlaced(true)
				self:RegisterForDrag("LeftButton")
			</OnLoad>
			<OnDragStart> 
				self:StartMoving()
			</OnDragStart>
			<OnDragStop>
				self:StopMovingOrSizing()
			</OnDragStop>			
		</Scripts>
	</Frame>
	
	<!-- MAIN OPTION FRAME -->
	<Frame name="DEXOptions" toplevel="true" frameStrata="LOW" hidden="true" parent="UIParent" inherits="DEXDragableFrameTemplate">
		<KeyValues>
			<KeyValue key="backdropInfo" value="BACKDROP_DIALOG_32_32" type="global" />
		</KeyValues>
		<Size>
			<AbsDimension x="710" y="800"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER" />
		</Anchors>
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="DEXFrameTitle" file="Interface\DialogFrame\UI-DialogBox-Header">
					<Size>
						<AbsDimension x="360" y="64" />
					</Size>
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="12" />
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString inherits="GameFontNormal" text="DEX_MAIN_OPTION">
					<Anchors>
						<Anchor point="TOP" relativeTo="DEXOptions">
							<Offset>
								<AbsDimension x="0" y="0" />
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
			
		</Layers>
		
		<Frames>			
			<CheckButton name="DEX_Enable" inherits="DEXCheckTemplate">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DEXOptions" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="15" y="-28" />
							</Offset>
						</Anchor>
					</Anchors>
			</CheckButton>
			<CheckButton name="DEX_GameEnable" inherits="DEXCheckTemplate">
					<Anchors>
						<Anchor point="LEFT" relativeTo="DEX_Enable" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="30" y="0" />
							</Offset>
						</Anchor>
					</Anchors>
			</CheckButton>
			<CheckButton name="DEX_ShowWithMess" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_GameEnable" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="60" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="DEX_ShowDamagePet" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowWithMess" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="175" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="DEX_NumberFormat" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowDamagePet" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="95" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="DEX_BaseFrame" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_NumberFormat" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="100" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="DEX_ShowHit" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_Enable" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-30" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="DEX_ShowInterrupt" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowHit" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-165" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>		
			<CheckButton name="DEX_ShowInterruptCrit" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowInterrupt" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="20" y="-25" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>		
			<CheckButton name="DEX_ShowCurrentOnly" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowInterruptCrit" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="-20" y="-25" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>		
			<CheckButton name="DEX_State" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowCurrentOnly" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-25" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>		
			<CheckButton name="DEX_AdjustTime" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_State" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="135" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>		
			<CheckButton name="DEX_RandomCrit" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_State" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-25" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>				
			<CheckButton name="DEX_NoCombatHeal" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_RandomCrit" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="135" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>				
			<CheckButton name="DEX_ShowDamage" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowCurrentOnly" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-170" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="DEX_OverDamage" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowDamage" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="135" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>				
			<CheckButton name="DEX_ShowDamagePeriodic" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowDamage" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="20" y="-30" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="DEX_ShowDamageShield" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowDamagePeriodic" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-30" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="DEX_ShowBlockNumber" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowDamageShield" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-30" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>		
			<CheckButton name="DEX_ShowSpellName" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowBlockNumber" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-30" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="DEX_ShowNameOnCrit" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowSpellName" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="20" y="-30" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="DEX_ShowDamageIconOnCrit" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowNameOnCrit" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="130" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="DEX_ShowNameOnMiss" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowNameOnCrit" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-30" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>			
			<CheckButton name="DEX_ShowSpellIcon" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowNameOnMiss" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="-20" y="-30" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>		
			<CheckButton name="DEX_ShowSpellIconOnCrit" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowSpellIcon" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="20" y="-30" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>		
			<CheckButton name="DEX_UniteSpell" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowSpellIconOnCrit" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="-20" y="-30" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>				
			<CheckButton name="DEX_ShowDamageWoW" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowDamage" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="230" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="DEX_ShowDamageSpellName" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowDamageWoW" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="20" y="-30" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="DEX_ShowDamageNameOnCrit" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowDamageSpellName" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="20" y="-30" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="DEX_ShowCritIcon" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowDamageNameOnCrit" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="130" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="DEX_ShowDamageSpellIcon" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowDamageNameOnCrit" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="-20" y="-30" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="DEX_ShowDamageSpellIconOnCrit" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowDamageSpellIcon" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="20" y="-30" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="DEX_ShowDebuff" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowDamageSpellIconOnCrit" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="-20" y="-30" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="DEX_ShowDamageType" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowDebuff" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-140" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="DEX_ShowDamageHealth" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowDamageWoW" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="215" y="80" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="DEX_HealthFull" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowDamageHealth" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="20" y="-30" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="DEX_ShowOwnHealth" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_HealthFull" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-30" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="DEX_ShowOverHeal" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowOwnHealth" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-30" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>		
			<CheckButton name="DEX_ShowBuff" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowOverHeal" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-30" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>		
			<CheckButton name="DEX_ShowHealthSpellName" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowBuff" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-30" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>		
			<CheckButton name="DEX_ShowHealthNameOnCrit" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowHealthSpellName" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="20" y="-30" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>		
			<CheckButton name="DEX_ShowHealthCritIcon" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowHealthNameOnCrit" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="130" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="DEX_ShowHealthSpellIcon" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowHealthNameOnCrit" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="-20" y="-30" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>		
			<CheckButton name="DEX_ShowHealthSpellIconOnCrit" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowHealthSpellIcon" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="20" y="-30" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>		
			<CheckButton name="DEX_ShowHealthType" inherits="DEXCheckTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowHealthSpellIconOnCrit" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="-20" y="-130" />
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>		
			
			<Frame name="DEX_ColorNormal" inherits="DEXColorPickerExTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowDamagePet" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="-40" y="-165" />
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="DEX_ColorNormalSe" inherits="DEXColorPickerExTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ColorNormal" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="20" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="DEX_ColorSkill" inherits="DEXColorPickerExTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ColorNormal" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-30" />
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="DEX_ColorSkillSe" inherits="DEXColorPickerExTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ColorSkill" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="20" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="DEX_ColorPeriodic" inherits="DEXColorPickerExTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ColorSkill" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-30" />
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="DEX_ColorPeriodicSe" inherits="DEXColorPickerExTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ColorPeriodic" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="20" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="DEX_ColorHealth" inherits="DEXColorPickerExTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ColorPeriodic" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-30" />
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="DEX_ColorHealthSe" inherits="DEXColorPickerExTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ColorHealth" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="20" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="DEX_ColorSpec" inherits="DEXColorPickerExTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ColorHealth" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-30" />
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="DEX_ColorSpecSe" inherits="DEXColorPickerExTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ColorSpec" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="20" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="DEX_ColorPet" inherits="DEXColorPickerExTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ColorSpec" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-30" />
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="DEX_ColorPetSe" inherits="DEXColorPickerExTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ColorPet" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="20" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="DEX_ColorMana" inherits="DEXColorPickerExTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ColorPet" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-30" />
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="DEX_ColorManaSe" inherits="DEXColorPickerExTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ColorMana" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="20" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="DEX_ColorAttack" inherits="DEXColorPickerExTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ColorMana" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-26" />
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="DEX_ColorAttackSe" inherits="DEXColorPickerExTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ColorAttack" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="20" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Button name="$ParentDropDownCats" inherits="UIDropDownMenuTemplate">
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$parentLabel" inherits="GameFontNormalSmall" text="DEXColorMode_T">
							<Anchors>
								<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
									<Offset>
										<AbsDimension x="21" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowDamagePet" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="-50" y="-140"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnShow>
						DEXOptionsFrameDropDownCats_OnShow(self);
					</OnShow>
				</Scripts>
			</Button>

			<Slider name="DEX_FrameLevel" inherits="DEXSliderTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_NumberFormat" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="40" y="-40" />
						</Offset>
					</Anchor>
				</Anchors>
			</Slider>
			<Slider name="DEX_Font" inherits="DEXSliderTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_FrameLevel" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-30" />
						</Offset>
					</Anchor>
				</Anchors>
			</Slider>
			<Slider name="DEX_FontSize" inherits="DEXSliderTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_Font" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-45" />
						</Offset>
					</Anchor>
				</Anchors>
			</Slider>
			<Slider name="DEX_OutLine" inherits="DEXSliderTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_FontSize" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-45" />
						</Offset>
					</Anchor>
				</Anchors>
			</Slider>
			<Slider name="DEX_Speed" inherits="DEXSliderTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_OutLine" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-45" />
						</Offset>
					</Anchor>
				</Anchors>
			</Slider>
			<Slider name="DEX_LOGLINE" inherits="DEXSliderTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_Speed" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-45" />
						</Offset>
					</Anchor>
				</Anchors>
			</Slider>
			<Slider name="DEX_LOGTIME" inherits="DEXSliderTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_LOGLINE" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-45" />
						</Offset>
					</Anchor>
				</Anchors>
			</Slider>
			<Slider name="DEX_ShowHitX" inherits="DEXSliderTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowHit" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="40" y="-40" />
						</Offset>
					</Anchor>
				</Anchors>
			</Slider>
			<Slider name="DEX_ShowHitY" inherits="DEXSliderTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowHitX" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-50" />
						</Offset>
					</Anchor>
				</Anchors>
			</Slider>
			<Slider name="DEX_CritX" inherits="DEXSliderTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_RandomCrit" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="60" y="-36" />
						</Offset>
					</Anchor>
				</Anchors>
			</Slider>
			<Slider name="DEX_CritY" inherits="DEXSliderTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_CritX" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-50" />
						</Offset>
					</Anchor>
				</Anchors>
			</Slider>
			<Slider name="DEX_HealthPosX" inherits="DEXSliderTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowHealthSpellIconOnCrit" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="-20" y="-40" />
						</Offset>
					</Anchor>
				</Anchors>
			</Slider>
			<Slider name="DEX_HealthPosY" inherits="DEXSliderTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_HealthPosX" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-50" />
						</Offset>
					</Anchor>
				</Anchors>
			</Slider>
			<Slider name="DEX_BeAttackPosX" inherits="DEXSliderTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowDebuff" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-40" />
						</Offset>
					</Anchor>
				</Anchors>
			</Slider>
			<Slider name="DEX_BeAttackPosY" inherits="DEXSliderTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_BeAttackPosX" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-50" />
						</Offset>
					</Anchor>
				</Anchors>
			</Slider>
			<Slider name="DEX_PetPosX" inherits="DEXSliderTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowHit" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="260" y="-10" />
						</Offset>
					</Anchor>
				</Anchors>
			</Slider>
			<Slider name="DEX_PetPosY" inherits="DEXSliderTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_PetPosX" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-50" />
						</Offset>
					</Anchor>
				</Anchors>
			</Slider>
			<Slider name="DEX_AOETime" inherits="DEXSliderTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_UniteSpell" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-35" />
						</Offset>
					</Anchor>
				</Anchors>
			</Slider>
			<Slider name="DEX_IconSize" inherits="DEXSliderTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="DEX_ShowHitY" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-40" />
						</Offset>
					</Anchor>
				</Anchors>
			</Slider>
			
			<Button name="DEXOptionsSave" inherits="UIPanelCloseButton">
				<Anchors>
					<Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" relativeTo="DEXOptions">
						<Offset>
							<AbsDimension x="-5" y="-5" />
						</Offset>
					</Anchor>
				</Anchors>
				<Size>
					<AbsDimension x="24" y="24"/>
				</Size>
				<Scripts>
					<OnClick>
						DEX_CloseOptions()
					</OnClick>
				</Scripts>
			</Button>

			<Button name="DEXOptionsClose" inherits="UIPanelButtonTemplate" text="CLOSE">
				<Anchors>					
					<Anchor point="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="-160" y="14"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Size>
					<AbsDimension x="90" y="24"/>
				</Size>
				<Scripts>
					<OnClick>
						DEX_CloseOptions()
					</OnClick>					
				</Scripts>
			</Button>		
			
			<Button name="DEXOptionsReset" inherits="UIPanelButtonTemplate" text="RESET">
				<Anchors>					
					<Anchor point="RIGHT" relativeTo="DEXOptionsClose" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="-180" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Size>
					<AbsDimension x="90" y="24"/>
				</Size>
				<Scripts>
					<OnClick>
						PlaySound(856);
						DEX_Reset();
					</OnClick>
					<OnEnter>
						if not DEX_BUTTON_RESET_TIP then
							GameTooltip:SetOwner(frame, "ANCHOR_RIGHT");
							GameTooltip_SetTitle(GameTooltip, DEX_BUTTON_RESET_TIP);
						end
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</Button>	

			
			<Button name="DEX_PreBox" parent="UIParent" movable="true" hidden="true" inherits="DEXDragableFrameTemplate">
				<KeyValues>
					<KeyValue key="backdropInfo" value="BACKDROP_TOOLTIP_16_16_5555" type="global" />
				</KeyValues>
				<Size>
					<AbsDimension x="200" y="20"/>
				</Size>
				<Anchors>
					<Anchor point="CENTER" />
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">			
						<FontString name="DEX_PreBox_Title" inherits="GameFontNormal" text="DEX_PREVIEW_LABEL">	
							<Anchors>
								<Anchor point="CENTER" relativeTo="$parent"/>							
							</Anchors>							
							<FontHeight>
								<AbsValue val="14"/>
							</FontHeight>
							<Color r="0" g="100" b="0"/>
						</FontString>
					</Layer>					
				</Layers>
				<Scripts>					
					<OnDragStop>
						self:StopMovingOrSizing()
						DEX_preSavePosition(self)
					</OnDragStop>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>			
			<OnShow>
				DEXOptionsFrame_OnShow();
			</OnShow>
			<OnHide>
				DEX_hideMenu();
			</OnHide>
		</Scripts>
	</Frame>	
</Ui>