<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="ShaderMod.lua"/>
	<Script file="localization.lua"/> 

	<!--
	Templates
	-->
	<CheckButton name="SMCheckBoxTemplate" inherits="UICheckButtonTemplate" virtual="true">
		<HitRectInsets>
			<AbsInset left="0" right="-150" top="0" bottom="0"/>
		</HitRectInsets>

		<Scripts>
			<OnClick>
				if ( this:GetChecked() ) then
					PlaySound("igMainMenuOptionCheckBoxOff");
				else
					PlaySound("igMainMenuOptionCheckBoxOn");
				end
			</OnClick>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
	</CheckButton>
   <!--
   Message Frame used to display when records are broken
   -->
	<MessageFrame name="SMMessageFrame" insertMode="TOP" movable="true" parent="UIParent" enablemouse="true" frameStrata="BACKGROUND" toplevel="true">

		<Size>
			<AbsDimension x="800" y="300"/>
		</Size>

		<Anchors>
			<Anchor point="CENTER">
				<Offset>
					<AbsDimension x="0" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>
        <Layers>
    		<Layer level="BACKGROUND">
			If
    			<Texture name="$parentBackground" setAllPoints="true">
    				<Color r="0.3" g="0.3" b="0.3" a="0.3" />
    			</Texture>
    		</Layer>
        </Layers>
		<Scripts>
			<OnLoad>
				SMOnLoad();
				this:EnableMouse(0);
			</OnLoad>
			<OnEvent>
				SMOnEvent(event, arg1);
			</OnEvent>
			<OnMouseDown>
				if ((arg1 == "LeftButton") and (not SMMessageFrame.Locked)) then
					this:StartMoving();
				end
			</OnMouseDown>
			<OnMouseUp>
				if (arg1 == "LeftButton") then
					this:StopMovingOrSizing();
				end
			</OnMouseUp>
			<OnHide>
				this:StopMovingOrSizing();
			</OnHide>
		</Scripts>
		
		<FontString name="NumberFontNormalHuge" font="Fonts\skurri.ttf" outline="THICK" virtual="true" justifyH="LEFT">
			<FontHeight>
				<AbsValue val="30"/>
			</FontHeight>
		</FontString>

	</MessageFrame>
	
	
	<!--
	Frame used for Options menu
	-->   
	<Frame name="ShaderModOptionsFrame" toplevel="true" frameStrata="LOW" movable="true" enableMouse="true" hidden="true" parent="UIParent">
		<Size>
			<AbsDimension x="600" y="370"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		
		<Backdrop name="$parentBackdrop" bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border"	tile="true">
			<BackgroundInsets>
				<AbsInset left="11" right="12" top="12" bottom="11"/>
				<Size>
					<AbsDimension x="128" y="17"/>
				</Size>
			</BackgroundInsets>
			<TileSize>
				<AbsValue val="32"/>
			</TileSize>
			<EdgeSize>
				<AbsValue val="32"/>
			</EdgeSize>
		</Backdrop>
		
		<Layers>
		
			<Layer level="ARTWORK">
				<Texture name="SMFrameTitle" file="Interface\DialogFrame\UI-DialogBox-Header">
					<Size>
						<AbsDimension x="288" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="12"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString name="SMFrameTitleText" inherits="GameFontNormal" text="ShaderMod Options">
					<Anchors>
						<Anchor point="TOP" relativeTo="ShaderModOptionsFrame">
							<Offset>
								<AbsDimension x="0" y="-3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>

		
			<Layer level="BACKGROUND">
				
				<FontString name="SMOptionsText1" inherits="GameFontNormalSmall" text="Combat Log : Show Crits">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame">
							<Offset>
								<AbsDimension x="65" y="-65"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="SMOptionsText2" inherits="GameFontNormalSmall" text="Party Display">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame">
							<Offset>
								<AbsDimension x="55" y="-215"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="SMOptionsText3" inherits="GameFontNormalSmall" text="Raid Display">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame">
							<Offset>
								<AbsDimension x="55" y="-240"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="SMOptionsText4" inherits="GameFontNormalSmall" text="Enable Sound - Yeah! (1)">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame">
							<Offset>
								<AbsDimension x="355" y="-40"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="SMOptionsText5" inherits="GameFontNormalSmall" text="Enable Sound - Oh Yeah! (2)">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame">
							<Offset>
								<AbsDimension x="355" y="-65"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="SMOptionsText6" inherits="GameFontNormalSmall" text="Enable Sound - Unstoppable! (3)">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame">
							<Offset>
								<AbsDimension x="355" y="-90"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="SMOptionsText7" inherits="GameFontNormalSmall" text="Enable Sound - Killing Spree! (4)">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame">
							<Offset>
								<AbsDimension x="355" y="-115"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="SMOptionsText8" inherits="GameFontNormalSmall" text="Enable Sound - Dominating! (5)">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame">
							<Offset>
								<AbsDimension x="355" y="-140"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="SMOptionsText9" inherits="GameFontNormalSmall" text="Enable Sound - Ultra Kill! (6)">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame">
							<Offset>
								<AbsDimension x="355" y="-165"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="SMOptionsText10" inherits="GameFontNormalSmall" text="Enable Sound - Wicked Sick! (7)">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame">
							<Offset>
								<AbsDimension x="355" y="-190"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="SMOptionsText11" inherits="GameFontNormalSmall" text="Enable Sound - God Like! (8-9)">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame">
							<Offset>
								<AbsDimension x="355" y="-215"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="SMOptionsText12" inherits="GameFontNormalSmall" text="Enable Sound - Holy Shit! (10-14)">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame">
							<Offset>
								<AbsDimension x="355" y="-240"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="SMOptionsText12" inherits="GameFontNormalSmall" text="Enable Sound - Monster Kill! (15-19)">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame">
							<Offset>
								<AbsDimension x="355" y="-265"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="SMOptionsText13" inherits="GameFontNormalSmall" text="Enable Sound - Ludicrous Kill! (20-21)">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame">
							<Offset>
								<AbsDimension x="355" y="-290"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="SMOptionsText14" inherits="GameFontNormalSmall" text="Enable Sound - Ownage! (22)">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame">
							<Offset>
								<AbsDimension x="355" y="-315"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="SMOptionsText15" inherits="GameFontNormalSmall" text="Enable Sound - [Finish Him] (Rogues Only)">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame">
							<Offset>
								<AbsDimension x="55" y="-315"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="SMOptionsText16" inherits="GameFontNormalSmall" text="Combat Log : Show Hits">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame">
							<Offset>
								<AbsDimension x="65" y="-90"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="SMOptionsText17" inherits="GameFontNormalSmall" text="Reset Crit Combo After Fight">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame">
							<Offset>
								<AbsDimension x="55" y="-165"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="SMOptionsText18" inherits="GameFontNormalSmall" text="Use Combat Log Style">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame">
							<Offset>
								<AbsDimension x="55" y="-40"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="SMOptionsText19" inherits="GameFontNormalSmall" text="Use Old ShaderMod Style">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame">
							<Offset>
								<AbsDimension x="55" y="-115"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
								
			</Layer>
			
		</Layers>
		<Frames>
						
			<CheckButton name="SMCheckBoxRunning_Combat_Log_Display" inherits="SMCheckBoxTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="20" y="-30"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						if ( this:GetChecked() ) then
							SMData[SMPlayerRealm][SMPlayerName].Running_Combat_Log_Display = true;
						else
							SMData[SMPlayerRealm][SMPlayerName].Running_Combat_Log_Display = false;
						end
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
						GameTooltip:SetText("Enable = Use Combat Log Style for Message Frame (Ex : Killing Spree! x5 [10572] total damage (+2534))", nil, nil, nil, nil, 1);
					</OnEnter>
				</Scripts>
			</CheckButton>

			<CheckButton name="SMCheckBoxRunning_Crit_Display" inherits="SMCheckBoxTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="30" y="-55"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						if ( this:GetChecked() ) then
							SMData[SMPlayerRealm][SMPlayerName].Running_Crit_Display = true;
						else
							SMData[SMPlayerRealm][SMPlayerName].Running_Crit_Display = false;
						end
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
						GameTooltip:SetText("Enable = Display crits on combat log", nil, nil, nil, nil, 1);
					</OnEnter>
				</Scripts>
			</CheckButton>

			<CheckButton name="SMCheckBoxRunning_Hit_Display" inherits="SMCheckBoxTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="30" y="-80"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						if ( this:GetChecked() ) then
							SMData[SMPlayerRealm][SMPlayerName].Running_Hit_Display = true;
						else
							SMData[SMPlayerRealm][SMPlayerName].Running_Hit_Display = false;
						end
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
						GameTooltip:SetText("Enable = Display hits on combat log", nil, nil, nil, nil, 1);
					</OnEnter>
				</Scripts>
			</CheckButton>

			<CheckButton name="SMCheckBoxRunning_Old_School_Display" inherits="SMCheckBoxTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="20" y="-105"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						if ( this:GetChecked() ) then
							SMData[SMPlayerRealm][SMPlayerName].Running_Old_School_Display = true;
						else
							SMData[SMPlayerRealm][SMPlayerName].Running_Old_School_Display = false;
						end
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
						GameTooltip:SetText("Enable = Use Old ShaderMod Style for Message Frame (ex: Ultra Kill! x5)", nil, nil, nil, nil, 1);
					</OnEnter>
				</Scripts>
			</CheckButton>
			
			<CheckButton name="SMCheckBoxRunning_Reset_Combo" inherits="SMCheckBoxTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="20" y="-155"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						if ( this:GetChecked() ) then
							SMData[SMPlayerRealm][SMPlayerName].Reset_Combo = true;
						else
							SMData[SMPlayerRealm][SMPlayerName].Reset_Combo = false;
						end
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
						GameTooltip:SetText("Reset Crit Combo when you get out of combat.", nil, nil, nil, nil, 1);
					</OnEnter>
				</Scripts>
			</CheckButton>

			<CheckButton name="SMCheckBoxParty_Display" inherits="SMCheckBoxTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="20" y="-205"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						if ( this:GetChecked() ) then
							SMData[SMPlayerRealm][SMPlayerName].Party_Display = true;
						else
							SMData[SMPlayerRealm][SMPlayerName].Party_Display = false;
						end
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
						GameTooltip:SetText("Enable party display for crit combos of 6+ crits", nil, nil, nil, nil, 1);
					</OnEnter>
				</Scripts>
			</CheckButton>

			<CheckButton name="SMCheckBoxRaid_Display" inherits="SMCheckBoxTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="20" y="-230"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						if ( this:GetChecked() ) then
							SMData[SMPlayerRealm][SMPlayerName].Raid_Display = true;
						else
							SMData[SMPlayerRealm][SMPlayerName].Raid_Display = false;
						end
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
						GameTooltip:SetText("Enable raid display for crit combos of 6+ crits. (only for special occasions)", nil, nil, nil, nil, 1);
					</OnEnter>
				</Scripts>
			</CheckButton>

			<CheckButton name="SMCheckBoxEnable_Sound_Yeah" inherits="SMCheckBoxTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="320" y="-30"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						if ( this:GetChecked() ) then
							SMData[SMPlayerRealm][SMPlayerName].Enable_Sound_Yeah = true;
						else
							SMData[SMPlayerRealm][SMPlayerName].Enable_Sound_Yeah = false;
						end
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
						GameTooltip:SetText("Enable sound - Yeah!", nil, nil, nil, nil, 1);
					</OnEnter>
				</Scripts>
			</CheckButton>

			<CheckButton name="SMCheckBoxEnable_Sound_Oh_Yeah" inherits="SMCheckBoxTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="320" y="-55"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						if ( this:GetChecked() ) then
							SMData[SMPlayerRealm][SMPlayerName].Enable_Sound_Oh_Yeah = true;
						else
							SMData[SMPlayerRealm][SMPlayerName].Enable_Sound_Oh_Yeah = false;
						end
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
						GameTooltip:SetText("Enable sound - Oh Yeah!", nil, nil, nil, nil, 1);
					</OnEnter>
				</Scripts>
			</CheckButton>

			<CheckButton name="SMCheckBoxEnable_Sound_Unstoppable" inherits="SMCheckBoxTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="320" y="-80"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						if ( this:GetChecked() ) then
							SMData[SMPlayerRealm][SMPlayerName].Enable_Sound_Unstoppable = true;
						else
							SMData[SMPlayerRealm][SMPlayerName].Enable_Sound_Unstoppable = false;
						end
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
						GameTooltip:SetText("Enable sound - Unstoppable!", nil, nil, nil, nil, 1);
					</OnEnter>
				</Scripts>
			</CheckButton>

			<CheckButton name="SMCheckBoxEnable_Sound_Killing_Spree" inherits="SMCheckBoxTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="320" y="-105"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						if ( this:GetChecked() ) then
							SMData[SMPlayerRealm][SMPlayerName].Enable_Sound_Killing_Spree = true;
						else
							SMData[SMPlayerRealm][SMPlayerName].Enable_Sound_Killing_Spree = false;
						end
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
						GameTooltip:SetText("Enable sound - Killing Spree!", nil, nil, nil, nil, 1);
					</OnEnter>
				</Scripts>
			</CheckButton>

			<CheckButton name="SMCheckBoxEnable_Sound_Dominating" inherits="SMCheckBoxTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="320" y="-130"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						if ( this:GetChecked() ) then
							SMData[SMPlayerRealm][SMPlayerName].Enable_Sound_Dominating = true;
						else
							SMData[SMPlayerRealm][SMPlayerName].Enable_Sound_Dominating = false;
						end
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
						GameTooltip:SetText("Enable sound - Dominating!", nil, nil, nil, nil, 1);
					</OnEnter>
				</Scripts>
			</CheckButton>

			<CheckButton name="SMCheckBoxEnable_Sound_Ultra_Kill" inherits="SMCheckBoxTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="320" y="-155"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						if ( this:GetChecked() ) then
							SMData[SMPlayerRealm][SMPlayerName].Enable_Sound_Ultra_Kill = true;
						else
							SMData[SMPlayerRealm][SMPlayerName].Enable_Sound_Ultra_Kill = false;
						end
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
						GameTooltip:SetText("Enable sound - Ultra Kill!", nil, nil, nil, nil, 1);
					</OnEnter>
				</Scripts>
			</CheckButton>

			<CheckButton name="SMCheckBoxEnable_Sound_Wicked_Sick" inherits="SMCheckBoxTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="320" y="-180"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						if ( this:GetChecked() ) then
							SMData[SMPlayerRealm][SMPlayerName].Enable_Sound_Wicked_Sick = true;
						else
							SMData[SMPlayerRealm][SMPlayerName].Enable_Sound_Wicked_Sick = false;
						end
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
						GameTooltip:SetText("Enable sound - Wicked Sick!", nil, nil, nil, nil, 1);
					</OnEnter>
				</Scripts>
			</CheckButton>

			<CheckButton name="SMCheckBoxEnable_Sound_God_Like" inherits="SMCheckBoxTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="320" y="-205"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						if ( this:GetChecked() ) then
							SMData[SMPlayerRealm][SMPlayerName].Enable_Sound_God_Like = true;
						else
							SMData[SMPlayerRealm][SMPlayerName].Enable_Sound_God_Like = false;
						end
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
						GameTooltip:SetText("Enable sound - God Like!", nil, nil, nil, nil, 1);
					</OnEnter>
				</Scripts>
			</CheckButton>

			<CheckButton name="SMCheckBoxEnable_Sound_Holy_Shit" inherits="SMCheckBoxTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="320" y="-230"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						if ( this:GetChecked() ) then
							SMData[SMPlayerRealm][SMPlayerName].Enable_Sound_Holy_Shit = true;
						else
							SMData[SMPlayerRealm][SMPlayerName].Enable_Sound_Holy_Shit = false;
						end
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
						GameTooltip:SetText("Enable sound - Holy Shit!", nil, nil, nil, nil, 1);
					</OnEnter>
				</Scripts>
			</CheckButton>

			<CheckButton name="SMCheckBoxEnable_Sound_Monster_Kill" inherits="SMCheckBoxTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="320" y="-255"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						if ( this:GetChecked() ) then
							SMData[SMPlayerRealm][SMPlayerName].Enable_Sound_Monster_Kill = true;
						else
							SMData[SMPlayerRealm][SMPlayerName].Enable_Sound_Monster_Kill = false;
						end
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
						GameTooltip:SetText("Enable sound - Monster Kill!", nil, nil, nil, nil, 1);
					</OnEnter>
				</Scripts>
			</CheckButton>

			<CheckButton name="SMCheckBoxEnable_Sound_Ludicrous_Kill" inherits="SMCheckBoxTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="320" y="-280"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						if ( this:GetChecked() ) then
							SMData[SMPlayerRealm][SMPlayerName].Enable_Sound_Ludicrous_Kill = true;
						else
							SMData[SMPlayerRealm][SMPlayerName].Enable_Sound_Ludicrous_Kill = false;
						end
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
						GameTooltip:SetText("Enable sound - Ludicrous Kill!", nil, nil, nil, nil, 1);
					</OnEnter>
				</Scripts>
			</CheckButton>

			<CheckButton name="SMCheckBoxEnable_Sound_Ownage" inherits="SMCheckBoxTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="320" y="-305"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						if ( this:GetChecked() ) then
							SMData[SMPlayerRealm][SMPlayerName].Enable_Sound_Ownage = true;
						else
							SMData[SMPlayerRealm][SMPlayerName].Enable_Sound_Ownage = false;
						end
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
						GameTooltip:SetText("Enable sound - Ownage!", nil, nil, nil, nil, 1);
					</OnEnter>
				</Scripts>
			</CheckButton>

			<CheckButton name="SMCheckBoxEnable_Sound_Finish_Him" inherits="SMCheckBoxTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="20" y="-305"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						if ( this:GetChecked() ) then
							SMData[SMPlayerRealm][SMPlayerName].Enable_Sound_Finish_Him = true;
						else
							SMData[SMPlayerRealm][SMPlayerName].Enable_Sound_Finish_Him = false;
						end
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
						GameTooltip:SetText("Enable sound for when rogues get 5 combo points [Finish Him].", nil, nil, nil, nil, 1);
					</OnEnter>
				</Scripts>
			</CheckButton>

			<Slider name="SMSlider" inherits="OptionsSliderTemplate" minValue="8" maxValue="32" valueStep="1">
				<Size>
					<AbsDimension x="220" y="17"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="55" y="-277"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnValueChanged>
						SMFontSize_OnValueChanged();
					</OnValueChanged>
					<OnShow>
						SMFontSize_OnShow();
					</OnShow>
					<OnEnter>
						GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
						GameTooltip:SetText("Change Message Frame Font Size", nil, nil, nil, nil, 1);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</Slider>



			<Button name="SMButtonReset" inherits="OptionsButtonTemplate" text="Reset Records">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="180" y="-333"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						PlaySound("igMainMenuOptionCheckBoxOn");
						SMSetCurrentPlayerToZeros();
						DEFAULT_CHAT_FRAME:AddMessage("[ShaderMod] Records for this character reset.",.1,.7,.75);
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
						GameTooltip:SetText("Reset Player Records", nil, nil, nil, nil, 1);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</Button>
			
			<Button name="SMButtonResetAll" inherits="OptionsButtonTemplate" text="Reset All">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="ShaderModOptionsFrame" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="70" y="-333"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						PlaySound("igMainMenuOptionCheckBoxOn");
						SMResetAll();
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
						GameTooltip:SetText("Reset All Records", nil, nil, nil, nil, 1);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</Button>
		
			<Button name="SMButtonClose" inherits="OptionsButtonTemplate" text="Close">
				<Anchors>
					<Anchor point="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="-15" y="15"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						PlaySound("igMainMenuClose");
						HideUIPanel(ShaderModOptionsFrame);
						
						<!-- MyAddons Support for Options window -->
						if (MYADDONS_ACTIVE_OPTIONSFRAME == ShaderModOptionsFrame) then
							ShowUIPanel(myAddOnsFrame);
						end
					</OnClick>
				</Scripts>
			</Button>
			
		</Frames>
		
		<Scripts>
			<OnShow>
				SMOptionsFrame_OnShow();
			</OnShow>
			<OnMouseDown>
				this:StartMoving();
			</OnMouseDown>
    	 <OnMouseUp>
      	this:StopMovingOrSizing();
	    </OnMouseUp>
		</Scripts>

	</Frame>

</Ui>
