<!--
    Paranoia Enemy Player Alert
    Copyright (C) 2008 Victor Barrancos
  
    This file is part of Paranoia Enemy Player Alert.

    Paranoia Enemy Player Alert 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 3 of the 
    License, or (at your option) any later version.

    Paranoia Enemy Player Alert 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 Paranoia Enemy Player Alert.  If not, see 
    <http://www.gnu.org/licenses/>.
-->

<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 ="ParanoiaSpells.lua"/>
<!-- The indentation of this file is messed up if your tab/indent sizes in your editor are set to larger than 2.-->

  <!-- This frame takes care of calling OnUpdate every frame. Paranoia_Main used to call OnUpdate, but then it would stop firing once the addon was hidden.
        this frame ensures OnUpdate can always be called, allowing the addon to take care of things like player death detection, ping timing, and other functions.
  <Frame name="Paranoia_OnUpdater" hidden="false" frameStrata="BACKGROUND" toplevel="false" enableMouse="false" movable="false" parent="UIParent">
    <Size>
			<AbsDimension x="1" y="1"/>
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT">
				<Offset>
					<AbsDimension x="-20" y="20"/>
				</Offset>
			</Anchor>
		</Anchors> 
		<Scripts>
			<OnUpdate>
				Paranoia:OnUpdate();
			</OnUpdate>
		</Scripts>
  </Frame>-->
  
	<!-- This is the frame with the hostile's name. The frame itself holds a secure button that can be used to click-target. However, since we can do very
        little with a secure frame (as well as it's parent frames and any frame it anchors to) while in combat (hiding, moving, resizing, etc.) we cannot 
        add or remove items from the hostile list during combat.-->
  <Frame name="Paranoia_StatusFrameTemplate" hidden="false" frameStrata="LOW" virtual="true" toplevel="false" parent="Paranoia_Main">
    <Size>
			<AbsDimension x="172" y="18"/>
		</Size>
    <Anchors>
      <Anchor point="TOPLEFT" relativeTo="Paranoia_Main"/>
    </Anchors>
    <Layers>
      <Layer level="OVERLAY">
        <FontString name="$parentText" justifyH="LEFT" justifyV="TOP" hidden="false" inherits="GameFontNormal" text="nil">
          <Size>
            <AbsDimension x="182" y="18"/>
          </Size>
          <Anchors>
            <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
              <Offset>
                <AbsDimension x="0" y="0"/>
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
      </Layer>
    </Layers>
    <Frames>
      <Button name="$parentButton" frameStrata="LOW" virtual="true" hidden="false" inherits="SecureActionButtonTemplate">
        <Anchors>
          <Anchor point="TOPLEFT" relativeTo="$parent"/>
        </Anchors>
        <Size>
          <AbsDimension x="172" y="18"/>
        </Size>
        <Scripts>
          <OnLoad>
            self.nickname = "empty0name";
            --getglobal(self:GetName().."Text"):SetText( "" );
            self:RegisterForDrag("LeftButton");
            self:SetAttribute("type", "macro");
            self:SetAttribute("macrotext", PARANOIA_SLASHTARGET);
          </OnLoad>
          <OnDragStart>
            Paranoia:OnDragStart();
          </OnDragStart>
          <OnDragStop>
            Paranoia:OnDragStop();
          </OnDragStop>
          <OnMouseUp>
            if ( arg1 == 'LeftButton' ) then
              Paranoia:OnDragStop();
            else
              Paranoia:ShowEDD(self.nickname, self:GetName());
            end
          </OnMouseUp>
          <PreClick>
            Paranoia:ButtonClick(self, self.nickname);
          </PreClick>
        </Scripts>
      </Button>
    </Frames>
  </Frame>
  
	<!-- The frame containing all hostiles ========================================================================================= -->
	<Frame name="Paranoia_Main" hidden="false" frameStrata="BACKGROUND" toplevel="false" enableMouse="false" movable="true" parent="UIParent">

		<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			<EdgeSize>
				<AbsValue val="16"/>
			</EdgeSize>
			<TileSize>
				<AbsValue val="32"/>
			</TileSize>
			<BackgroundInsets>
				<AbsInset left="5" right="5" top="5" bottom="5"/>
			</BackgroundInsets>
		</Backdrop>
    
		<Layers>
			<Layer level="OVERLAY">
				<FontString name="Paranoia_inCombatHeader" justifyH="TOP" justifyV="TOP" hidden="false" inherits="GameFontNormal" text="">
					<Size>
						<AbsDimension x="182" y="18"/>
					</Size>
					<Anchors>
						<Anchor point="TOP" relativePoint="TOP">
							<Offset>
								<AbsDimension x="0" y="11"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
    
		<Size>
			<AbsDimension x="120" y="250"/>
		</Size>

		<Anchors>
			<Anchor point="BOTTOMRIGHT">
				<Offset>
					<AbsDimension x="-120" y="50"/>
				</Offset>
			</Anchor>
		</Anchors> 

		<Frames>
			<Frame name="Paranoia_StatusFrame1" inherits="Paranoia_StatusFrameTemplate"/>
			<Frame name="Paranoia_StatusFrame2" inherits="Paranoia_StatusFrameTemplate"/>
			<Frame name="Paranoia_StatusFrame3" inherits="Paranoia_StatusFrameTemplate"/>
			<Frame name="Paranoia_StatusFrame4" inherits="Paranoia_StatusFrameTemplate"/>
			<Frame name="Paranoia_StatusFrame5" inherits="Paranoia_StatusFrameTemplate"/>
      <Frame name="Paranoia_StatusFrame6" inherits="Paranoia_StatusFrameTemplate"/>
			<Frame name="Paranoia_StatusFrame7" inherits="Paranoia_StatusFrameTemplate"/>
			<Frame name="Paranoia_StatusFrame8" inherits="Paranoia_StatusFrameTemplate"/>
			<Frame name="Paranoia_StatusFrame9" inherits="Paranoia_StatusFrameTemplate"/>
			<Frame name="Paranoia_StatusFrame10" inherits="Paranoia_StatusFrameTemplate"/>
      <Frame name="Paranoia_StatusFrame11" inherits="Paranoia_StatusFrameTemplate"/>
      <Frame name="Paranoia_StatusFrame12" inherits="Paranoia_StatusFrameTemplate"/>
      <Frame name="Paranoia_StatusFrame13" inherits="Paranoia_StatusFrameTemplate"/>
      <Frame name="Paranoia_StatusFrame14" inherits="Paranoia_StatusFrameTemplate"/>
      <Frame name="Paranoia_StatusFrame15" inherits="Paranoia_StatusFrameTemplate"/>
		</Frames>

		<Scripts>
			<OnLoad>
				Paranoia:OnLoad(self);
        self:RegisterForDrag("LeftButton");
			</OnLoad>
			<OnEvent>
				Paranoia:OnEvent(event, arg1, arg2, arg3);
			</OnEvent>
			<OnMouseUp>
				if ( arg1 == 'LeftButton' ) then
					Paranoia:OnDragStop();
				else
					Paranoia:ShowConfig();
				end
			</OnMouseUp>
		</Scripts>

	</Frame>
      
    <!-- The Hostile Player Warning frame =================================================================================================== -->
  <MessageFrame name="Paranoia_Warn" fadeDuration="1" hidden="false" topLevel="true" frameStrata="TOOLTIP" insertMode="TOP" parent="UIParent" enableMouse="false" enableKeyboard="false" toplevel="true" movable="true">
		<Size>
			<AbsDimension x="512" y="70" />
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT">
				<Offset>
					<AbsDimension x="100" y="-100" />
				</Offset>
			</Anchor>
		</Anchors>
		<FontString inherits="NumberFontNormalHuge" justifyH="CENTER" />
		<Scripts>
			<OnLoad>
        self:RegisterForDrag("LeftButton");
        self:EnableMouse(false);
        self:EnableKeyboard(false);
        self:SetTimeVisible(2);
        Paranoia:WarnFrameHide();
			</OnLoad>
			<OnMouseUp>
			  if(ParanoiaConf_Frame:IsVisible() or ParanoiaConf_AlertPopup:IsVisible()) then
				  self:StopMovingOrSizing();
        end
			</OnMouseUp>
			<OnDragStart>
			  if(ParanoiaConf_Frame:IsVisible() or ParanoiaConf_AlertPopup:IsVisible()) then
				  self:StartMoving();
				end
			</OnDragStart>
			<OnDragStop>
			  if(ParanoiaConf_Frame:IsVisible() or ParanoiaConf_AlertPopup:IsVisible()) then
				  self:StopMovingOrSizing();
				end
			</OnDragStop>
		</Scripts>		
	</MessageFrame>

	<!-- The config / options frame ================================================================================================ -->
	<Frame name="ParanoiaConf_Frame" toplevel="false" frameStrata="HIGH" movable="false" enableMouse="true" hidden="true" parent="UIParent">
		<Anchors>
			<Anchor point="CENTER">
				<Offset>
					<AbsDimension x="0" y="20" />
				</Offset>
			</Anchor>
		</Anchors>
		<Frames>
      <CheckButton name="ParanoiaConf_Enabled" inherits="OptionsCheckButtonTemplate" checked="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="10" y="-10" />
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer>
            <FontString name="$parentName" inherits="GameFontNormal" text="PARANOIA_GENERAL_ENABLE">
              <Anchors>
                <Anchor point="LEFT" relativePoint="RIGHT" />
              </Anchors>
							<Color r="1" g="1" b="1" />
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnShow>
						Paranoia:OptionCheckBoxInit(self,  'enabled' );
					</OnShow>
					<OnClick>
						Paranoia:OptionCheckBoxClicked(self, 'enabled' );
						Paranoia:OnUpdate();
					</OnClick>
				</Scripts>
			</CheckButton>
      <CheckButton name="ParanoiaConf_EnableSound" inherits="OptionsCheckButtonTemplate" checked="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="10" y="-35" />
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer>
						<FontString name="$parentName" inherits="GameFontNormal" text="PARANOIA_GENERAL_ENABLESOUND">
              <Anchors>
                <Anchor point="LEFT" relativePoint="RIGHT" />
              </Anchors>
							<Color r="1" g="1" b="1" />
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnShow>
						Paranoia:OptionCheckBoxInit(self,  'enableSound' );
					</OnShow>
					<OnClick>
						Paranoia:OptionCheckBoxClicked(self, 'enableSound' );
						Paranoia:OnUpdate();
					</OnClick>
				</Scripts>
			</CheckButton>
			<CheckButton name="ParanoiaConf_DisableInBattlefield" inherits="OptionsCheckButtonTemplate" checked="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="10" y="-60" />
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer>
						<FontString name="$parentName" inherits="GameFontNormal" text="PARANOIA_GENERAL_DISABLEBG">
                <Anchors>
                  <Anchor point="LEFT" relativePoint="RIGHT" />
                </Anchors>
							<Color r="1" g="1" b="1" />
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnShow>
						Paranoia:OptionCheckBoxInit(self,  'disableInBattlefield' );
					</OnShow>
					<OnClick>
						Paranoia:OptionCheckBoxClicked(self, 'disableInBattlefield' );
						Paranoia:OnUpdate();
					</OnClick>
				</Scripts>
			</CheckButton>
			<CheckButton name="ParanoiaConf_DisableInArena" inherits="OptionsCheckButtonTemplate" checked="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="10" y="-85" />
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer>
						<FontString name="$parentName" inherits="GameFontNormal" text="PARANOIA_GENERAL_DISABLEARENA">
                <Anchors>
                  <Anchor point="LEFT" relativePoint="RIGHT" />
                </Anchors>
							<Color r="1" g="1" b="1" />
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnShow>
						Paranoia:OptionCheckBoxInit(self,  'disableInArena' );
					</OnShow>
					<OnClick>
						Paranoia:OptionCheckBoxClicked(self, 'disableInArena' );
						Paranoia:OnUpdate();
					</OnClick>
				</Scripts>
			</CheckButton>
      <CheckButton name="ParanoiaConf_DisableInSanctuaries" inherits="OptionsCheckButtonTemplate" checked="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="10" y="-110" />
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer>
						<FontString name="$parentName" inherits="GameFontNormal" text="PARANOIA_GENERAL_DISABLESANCT">
	            <Anchors>
	              <Anchor point="LEFT" relativePoint="RIGHT" />
       				</Anchors>
							<Color r="1" g="1" b="1" />
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnShow>
						Paranoia:OptionCheckBoxInit(self,  'disableInSanctuaries' );
					</OnShow>
					<OnClick>
						Paranoia:OptionCheckBoxClicked(self, 'disableInSanctuaries' );
						Paranoia:OnUpdate();
					</OnClick>
				</Scripts>
			</CheckButton>
      <CheckButton name="ParanoiaConf_DisableInFFA" inherits="OptionsCheckButtonTemplate" checked="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="10" y="-135" />
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer>
						<FontString name="$parentName" inherits="GameFontNormal" text="PARANOIA_GENERAL_DISABLEFFA">
	            <Anchors>
	              <Anchor point="LEFT" relativePoint="RIGHT" />
       				</Anchors>
							<Color r="1" g="1" b="1" />
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnShow>
						Paranoia:OptionCheckBoxInit(self,  'disableInFFA' );
					</OnShow>
					<OnClick>
						Paranoia:OptionCheckBoxClicked(self, 'disableInFFA' );
						Paranoia:OnUpdate();
					</OnClick>
				</Scripts>
			</CheckButton>
      <CheckButton name="ParanoiaConf_HideList" inherits="OptionsCheckButtonTemplate" checked="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="10" y="-160" />
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer>
						<FontString name="$parentName" inherits="GameFontNormal" text="PARANOIA_GENERAL_HIDELIST">
	            <Anchors>
	              <Anchor point="LEFT" relativePoint="RIGHT" />
       				</Anchors>
							<Color r="1" g="1" b="1" />
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnShow>
						Paranoia:OptionCheckBoxInit(self,  'hideList' );
					</OnShow>
					<OnClick>
						Paranoia:OptionCheckBoxClicked(self, 'hideList' );
						Paranoia:OnUpdate();
					</OnClick>
				</Scripts>
			</CheckButton>
      <CheckButton name="ParanoiaConf_Locked" inherits="OptionsCheckButtonTemplate" checked="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="10" y="-185" />
						</Offset>
						
					</Anchor>
				</Anchors>
				<Layers>
					<Layer>
						<FontString name="$parentName" inherits="GameFontNormal" text="PARANOIA_GENERAL_LOCKLIST">
	            <Anchors>
                <Anchor point="LEFT" relativePoint="RIGHT" />
       				</Anchors>
							<Color r="1" g="1" b="1" />
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnShow>
						Paranoia:OptionCheckBoxInit(self, 'listLocked');
					</OnShow>
					<OnClick>
						Paranoia:LockedCheckBoxClicked(self);
					</OnClick>
				</Scripts>
			</CheckButton>
      <Slider name="ParanoiaConf_enemyListTimeout" inherits="OptionsSliderTemplate" minValue="10" maxValue="300" valueStep="10">
        <Size>
          <AbsDimension x="190" y="16"/>
        </Size>
        <Anchors>
					<Anchor point="BOTTOM" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="160" />
						</Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnLoad>
            getglobal(self:GetName().."Text"):SetText(PARANOIA_GENERALSLI_LISTTIMEOUT);
            getglobal(self:GetName().."High"):SetText(PARANOIA_GENERALSLI_LISTTIMEOUTHIGH);
            getglobal(self:GetName().."Low"):SetText(PARANOIA_GENERALSLI_LISTTIMEOUTLOW);
          </OnLoad>
          <OnShow>
            Paranoia:SliderInit(self, 'listTimeout');
            getglobal(self:GetName().."Text"):SetText(string.format(PARANOIA_GENERALSLI_LISTTIMEOUT, self:GetValue()));
          </OnShow>
          <OnValueChanged>
            getglobal(self:GetName().."Text"):SetText(string.format(PARANOIA_GENERALSLI_LISTTIMEOUT, self:GetValue()));
            Paranoia:SliderMoved(self, 'listTimeout');
          </OnValueChanged>
        </Scripts>
      </Slider>
      <Slider name="ParanoiaConf_warnTimeout" inherits="OptionsSliderTemplate" minValue="10" maxValue="300" valueStep="10" >
        <Size>
          <AbsDimension x="190" y="16"/>
        </Size>
        <Anchors>
					<Anchor point="BOTTOM" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="115" />
						</Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnLoad>
            getglobal(self:GetName().."Text"):SetText(PARANOIA_GENERALSLI_WARNTIMEOUT);
            getglobal(self:GetName().."High"):SetText(PARANOIA_GENERALSLI_WARNTIMEOUTHIGH);
            getglobal(self:GetName().."Low"):SetText(PARANOIA_GENERALSLI_WARNTIMEOUTLOW);
          </OnLoad>
          <OnShow>
            Paranoia:SliderInit(self, 'warnTimeout');
            getglobal(self:GetName().."Text"):SetText(string.format(PARANOIA_GENERALSLI_WARNTIMEOUT, self:GetValue()));
          </OnShow>
          <OnValueChanged>
            getglobal(self:GetName().."Text"):SetText(string.format(PARANOIA_GENERALSLI_WARNTIMEOUT, self:GetValue()));
            Paranoia:SliderMoved(self, 'warnTimeout');
          </OnValueChanged>
        </Scripts>
      </Slider>
      <Button name="ParanoiaConf_reset" inherits="OptionsButtonTemplate" text="PARANOIA_RESETPOSITIONS">
        <Size>
          <AbsDimension x="140" y="22"/>
        </Size>
        <Anchors>
					<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="-20" y="20"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
          <OnLoad>
            self:SetWidth(self:GetTextWidth()+40);
          </OnLoad>
					<OnClick>
						Paranoia:ResetFrames();
					</OnClick>
				</Scripts>
      </Button>
    </Frames>
    <Scripts>
      <OnShow>
        Paranoia:WarnFrameShow();
      </OnShow>
    </Scripts>
	</Frame>
  
  
  <Frame name="ParanoiaConf_AlertPopup" toplevel="false" frameStrata="HIGH" movable="false" enableMouse="true" hidden="true" parent="UIParent">
		<Anchors>
			<Anchor point="CENTER">
				<Offset>
					<AbsDimension x="0" y="20" />
				</Offset>
			</Anchor>
		</Anchors>
		<Frames>
			<CheckButton name="ParanoiaConf_APEnabled" inherits="OptionsCheckButtonTemplate" checked="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="10" y="-10" />
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer>
            <FontString name="$parentName" inherits="GameFontNormal" text="PARANOIA_ALERTPOP_ENABLE">
              <Anchors>
	              <Anchor point="LEFT" relativePoint="RIGHT" />
       				</Anchors>
							<Color r="1" g="1" b="1" />
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnShow>
						Paranoia:OptionCheckBoxInit(self,  'alertPopupEnabled' );
					</OnShow>
					<OnClick>
						Paranoia:OptionCheckBoxClicked(self, 'alertPopupEnabled' );
					</OnClick>
				</Scripts>
			</CheckButton>
      <Slider name="ParanoiaConf_fadeDuration" inherits="OptionsSliderTemplate" minValue="0" maxValue="6" valueStep="0.5" >
        <Size>
          <AbsDimension x="190" y="16"/>
        </Size>
        <Anchors>
          <Anchor point="BOTTOM" relativePoint="BOTTOM">
            <Offset>
              <AbsDimension x="0" y="340" />
            </Offset>						
          </Anchor>
        </Anchors>
        <Scripts>
          <OnLoad>
            getglobal(self:GetName().."Text"):SetText(PARANOIA_ALERTPOPSLI_FADE);
            getglobal(self:GetName().."High"):SetText(PARANOIA_ALERTPOPSLI_FADEHIGH);
            getglobal(self:GetName().."Low"):SetText(PARANOIA_ALERTPOPSLI_FADELOW);
          </OnLoad>
          <OnShow>
            Paranoia:SliderInit(self, 'alertPopupfadeTime');
            getglobal(self:GetName().."Text"):SetText(string.format(PARANOIA_ALERTPOPSLI_FADE, self:GetValue()));
          </OnShow>
          <OnValueChanged>
            getglobal(self:GetName().."Text"):SetText(string.format(PARANOIA_ALERTPOPSLI_FADE, self:GetValue()));
            Paranoia:SliderMoved(self, 'alertPopupfadeTime');
          </OnValueChanged>
        </Scripts>
      </Slider>
      <Slider name="ParanoiaConf_dispDuration" inherits="OptionsSliderTemplate" minValue="0.5" maxValue="6" valueStep="0.5">
        <Size>
          <AbsDimension x="190" y="16"/>
        </Size>
        <Anchors>
					<Anchor point="BOTTOM" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="295" />
						</Offset>
					</Anchor>
        </Anchors>
        <Scripts>
          <OnLoad>
            getglobal(self:GetName().."Text"):SetText(PARANOIA_ALERTPOPSLI_DISP);
            getglobal(self:GetName().."High"):SetText(PARANOIA_ALERTPOPSLI_DISPHIGH);
            getglobal(self:GetName().."Low"):SetText(PARANOIA_ALERTPOPSLI_DISPLOW);
          </OnLoad>
          <OnShow>
            Paranoia:SliderInit(self, 'alertPopupdisplayTime');
            getglobal(self:GetName().."Text"):SetText(string.format(PARANOIA_ALERTPOPSLI_DISP, self:GetValue()));
          </OnShow>
          <OnValueChanged>
            getglobal(self:GetName().."Text"):SetText(string.format(PARANOIA_ALERTPOPSLI_DISP, self:GetValue()));
            Paranoia:SliderMoved(self, 'alertPopupdisplayTime');
          </OnValueChanged>
        </Scripts>
      </Slider>
      <Slider name="ParanoiaConf_alertAlpha" inherits="OptionsSliderTemplate" minValue="0.2" maxValue="1" valueStep="0.01">
        <Size>
          <AbsDimension x="190" y="16"/>
        </Size>
        <Anchors>
					<Anchor point="BOTTOM" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="250" />
						</Offset>
					</Anchor>
        </Anchors>
        <Scripts>
          <OnLoad>
            getglobal(self:GetName().."Text"):SetText(PARANOIA_ALERTPOPSLI_ALPHA);
            getglobal(self:GetName().."High"):SetText(PARANOIA_ALERTPOPSLI_ALPHAHIGH);
            getglobal(self:GetName().."Low"):SetText(PARANOIA_ALERTPOPSLI_ALPHALOW);
          </OnLoad>
          <OnShow>
            Paranoia:SliderInit(self, 'alertPopupAlpha');
            getglobal(self:GetName().."Text"):SetText(string.format(PARANOIA_ALERTPOPSLI_ALPHA, floor(self:GetValue() * 100)));
          </OnShow>
          <OnValueChanged>
            Paranoia_Warn:SetAlpha(self:GetValue());     
            getglobal(self:GetName().."Text"):SetText(string.format(PARANOIA_ALERTPOPSLI_ALPHA, floor(self:GetValue() * 100)));
            Paranoia:SliderMoved(self, 'alertPopupAlpha');
            Paranoia:OnUpdate();
          </OnValueChanged>
        </Scripts>
      </Slider>
      <Button name="ParanoiaConf_test" inherits="OptionsButtonTemplate" text="PARANOIA_TESTBUTTON">
        <Anchors>
          <Anchor point="TOP" relativePoint="TOP">
						<Offset>
							<AbsDimension x="0" y="-195"/>
						</Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnLoad>
            self:SetWidth(self:GetTextWidth()+40);
          </OnLoad>
					<OnClick>
						Paranoia:WarnFrameTest();
					</OnClick>
				</Scripts>
      </Button>
      <Button name="ParanoiaConf_reset2" inherits="OptionsButtonTemplate" text="PARANOIA_RESETPOSITIONS">
        <Size>
          <AbsDimension x="130" y="22"/>
        </Size>
        <Anchors>
          <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
            <Offset>
              <AbsDimension x="-20" y="20"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnLoad>
            self:SetWidth(self:GetTextWidth()+40);
          </OnLoad>
          <OnClick>
            Paranoia:ResetFrames();
          </OnClick>
        </Scripts>
      </Button>
    </Frames>
    <Scripts>
      <OnShow>
        Paranoia:WarnFrameShow();
      </OnShow>
    </Scripts>
  </Frame>
    
  <Frame name="ParanoiaConf_Appearance" toplevel="false" frameStrata="HIGH" movable="false" enableMouse="true" hidden="true" parent="UIParent">
		<Anchors>
			<Anchor point="CENTER">
				<Offset>
					<AbsDimension x="0" y="20" />
				</Offset>
			</Anchor>
		</Anchors>
		<Frames>
      <CheckButton name="ParanoiaConf_FadeNames" inherits="OptionsCheckButtonTemplate" checked="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="10" y="-10" />
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer>
						<FontString name="$parentName" inherits="GameFontNormal" text="PARANOIA_APPEARANCE_FADEOUT">
	            <Anchors>
                <Anchor point="LEFT" relativePoint="RIGHT" />
              </Anchors>
							<Color r="1" g="1" b="1" />
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnShow>
						Paranoia:OptionCheckBoxInit(self, 'inactivityFade');
					</OnShow>
					<OnClick>
            Paranoia:OptionCheckBoxClicked(self, 'inactivityFade' );
						Paranoia:OnUpdate();
					</OnClick>
				</Scripts>
			</CheckButton>
      <CheckButton name="ParanoiaConf_HideMinimapButton" inherits="OptionsCheckButtonTemplate" checked="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="10" y="-35" />
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer>
						<FontString name="$parentName" inherits="GameFontNormal" text="PARANOIA_APPEARANCE_MINIMAPBUTTON">
	            <Anchors>
                <Anchor point="LEFT" relativePoint="RIGHT" />
              </Anchors>
							<Color r="1" g="1" b="1" />
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnShow>
						Paranoia:OptionCheckBoxInit(self, 'hideMinimap');
					</OnShow>
					<OnClick>
            Paranoia:OptionCheckBoxClicked(self,'hideMinimap');
						Paranoia:OnUpdate();
            Paranoia:UpdateMinimapVisibility();
					</OnClick>
				</Scripts>
			</CheckButton>
      <Slider name="ParanoiaConf_borderOpacity" inherits="OptionsSliderTemplate" minValue="0" maxValue="1" valueStep="0.01">
        <Size>
          <AbsDimension x="190" y="16"/>
        </Size>
        <Anchors>
					<Anchor point="BOTTOM" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="320" />
						</Offset>
					</Anchor>
        </Anchors>
        <Scripts>
          <OnLoad>
            getglobal(self:GetName().."Text"):SetText(PARANOIA_APPEARANCESLI_BOPACITY);
            getglobal(self:GetName().."High"):SetText(PARANOIA_APPEARANCESLI_BOPACITYHIGH);
            getglobal(self:GetName().."Low"):SetText(PARANOIA_APPEARANCESLI_BOPACITYLOW);
          </OnLoad>
          <OnShow>
            Paranoia:SliderInit(self, 'borderOpacity');
            getglobal(self:GetName().."Text"):SetText(string.format(PARANOIA_APPEARANCESLI_BOPACITY, floor(self:GetValue() * 100)));
          </OnShow>
          <OnValueChanged>
            Paranoia_Main:SetBackdropBorderColor(255, 255, 255, self:GetValue());       
            getglobal(self:GetName().."Text"):SetText(string.format(PARANOIA_APPEARANCESLI_BOPACITY, floor(self:GetValue() * 100)));
            Paranoia:SliderMoved(self, 'borderOpacity');
            Paranoia:OnUpdate();
          </OnValueChanged>
        </Scripts>
      </Slider>
      <Slider name="ParanoiaConf_frameOpacity" inherits="OptionsSliderTemplate" minValue="0.2" maxValue="1" valueStep="0.01">
        <Size>
          <AbsDimension x="190" y="16"/>
        </Size>
        <Anchors>
          <Anchor point="BOTTOM" relativePoint="BOTTOM">
            <Offset>
              <AbsDimension x="0" y="275" />
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnLoad>
            getglobal(self:GetName().."Text"):SetText(PARANOIA_APPEARANCESLI_POPACITY);
            getglobal(self:GetName().."High"):SetText(PARANOIA_APPEARANCESLI_POPACITYHIGH);
            getglobal(self:GetName().."Low"):SetText(PARANOIA_APPEARANCESLI_POPACITYLOW);
          </OnLoad>
          <OnShow>
            Paranoia:SliderInit(self, 'frameOpacity');
            getglobal(self:GetName().."Text"):SetText(string.format(PARANOIA_APPEARANCESLI_POPACITY, floor(self:GetValue() * 100)));
          </OnShow>
          <OnValueChanged>
            getglobal(self:GetName().."Text"):SetText(string.format(PARANOIA_APPEARANCESLI_POPACITY, floor(self:GetValue() * 100)));
            if ( not (Paranoia_Main:GetAlpha() == 0 ) ) then Paranoia_Main:SetAlpha(self:GetValue()); end
            Paranoia:SliderMoved(self, 'frameOpacity');
            Paranoia:OnUpdate();
          </OnValueChanged>
        </Scripts>
      </Slider>
      <Slider name="ParanoiaConf_maxHostiles" inherits="OptionsSliderTemplate" minValue="4" maxValue="15" valueStep="1">
        <Size>
          <AbsDimension x="190" y="16"/>
        </Size>
        <Anchors>
          <Anchor point="BOTTOM" relativePoint="BOTTOM">
            <Offset>
              <AbsDimension x="0" y="230" />
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnLoad>
            getglobal(self:GetName().."Text"):SetText(PARANOIA_APPEARANCESLI_MAXHOSTILE);
            getglobal(self:GetName().."High"):SetText(PARANOIA_APPEARANCESLI_MAXHOSTILEHIGH);
            getglobal(self:GetName().."Low"):SetText(PARANOIA_APPEARANCESLI_MAXHOSTILELOW);
          </OnLoad>
          <OnShow>
            Paranoia:SliderInit(self, 'maxHostiles');
            getglobal(self:GetName().."Text"):SetText(string.format(PARANOIA_APPEARANCESLI_MAXHOSTILE, self:GetValue()));
          </OnShow>
          <OnValueChanged>
            getglobal(self:GetName().."Text"):SetText(string.format(PARANOIA_APPEARANCESLI_MAXHOSTILE, self:GetValue()));
            Paranoia:SliderMoved(self, 'maxHostiles');
            Paranoia:OnUpdate();
          </OnValueChanged>
        </Scripts>
      </Slider>
      <Slider name="ParanoiaConf_scale" inherits="OptionsSliderTemplate" minValue="0.6" maxValue="1.8" valueStep="0.01">
        <Size>
          <AbsDimension x="190" y="16"/>
        </Size>
        <Anchors>
          <Anchor point="BOTTOM" relativePoint="BOTTOM">
            <Offset>
              <AbsDimension x="0" y="185" />
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnLoad>
            getglobal(self:GetName().."Text"):SetText(PARANOIA_APPEARANCESLI_SCALE);
            getglobal(self:GetName().."High"):SetText(PARANOIA_APPEARANCESLI_SCALEHIGH);
            getglobal(self:GetName().."Low"):SetText(PARANOIA_APPEARANCESLI_SCALELOW);
          </OnLoad>
          <OnShow>
            Paranoia:SliderInit(self, 'listScale');
            getglobal(self:GetName().."Text"):SetText(string.format(PARANOIA_APPEARANCESLI_SCALE, self:GetValue()* 100));
          </OnShow>
          <OnValueChanged>
            getglobal(self:GetName().."Text"):SetText(string.format(PARANOIA_APPEARANCESLI_SCALE, self:GetValue()* 100));
            Paranoia:SliderMoved(self, 'listScale');
            Paranoia_Main:SetScale(self:GetValue());
          </OnValueChanged>
        </Scripts>
      </Slider>
      <Button name="ParanoiaConf_reset" inherits="OptionsButtonTemplate" text="PARANOIA_RESETPOSITIONS">
        <Size>
          <AbsDimension x="130" y="22"/>
        </Size>
        <Anchors>
          <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
            <Offset>
              <AbsDimension x="-20" y="20"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnLoad>
            self:SetWidth(self:GetTextWidth()+40);
          </OnLoad>
          <OnClick>
            Paranoia:ResetFrames();
          </OnClick>
        </Scripts>
      </Button>
    </Frames>
    <Scripts>
      <OnShow>
        Paranoia:WarnFrameShow();
      </OnShow>
    </Scripts>
	</Frame>
  
  <Frame name="ParanoiaConf_Communication" toplevel="false" frameStrata="HIGH" movable="false" enableMouse="true" hidden="true" parent="UIParent">
		<Anchors>
			<Anchor point="CENTER">
				<Offset>
					<AbsDimension x="0" y="20" />
				</Offset>
			</Anchor>
		</Anchors>
		<Frames>
      <CheckButton name="ParanoiaConf_EnableComm" inherits="OptionsCheckButtonTemplate" checked="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="10" y="-10" />
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer>
						<FontString name="$parentName" inherits="GameFontNormal" text="PARANOIA_COMM_ENABLECOMM">
	            <Anchors>
                <Anchor point="LEFT" relativePoint="RIGHT" />
              </Anchors>
							<Color r="1" g="1" b="1" />
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnShow>
						Paranoia:OptionCheckBoxInit(self, 'enableComm');
					</OnShow>
					<OnClick>
            Paranoia:OptionCheckBoxClicked(self, 'enableComm' );
						Paranoia:OnUpdate();
					</OnClick>
				</Scripts>
			</CheckButton>
      <CheckButton name="ParanoiaConf_ClassColors" inherits="OptionsCheckButtonTemplate" checked="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="10" y="-35" />
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer>
            <FontString name="$parentName" inherits="GameFontNormal" text="PARANOIA_COMM_GROUPWARN">
              <Anchors>
                <Anchor point="LEFT" relativePoint="RIGHT" />
              </Anchors>
							<Color r="1" g="1" b="1" />
            </FontString>
          </Layer>
        </Layers>
        <Scripts>
          <OnShow>
            Paranoia:OptionCheckBoxInit(self, 'partyWarn');
          </OnShow>
          <OnClick>
            Paranoia:OptionCheckBoxClicked(self,'partyWarn');
          </OnClick>
        </Scripts>
      </CheckButton>
      <CheckButton name="ParanoiaConf_ClassColors" inherits="OptionsCheckButtonTemplate" checked="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="10" y="-60" />
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer>
            <FontString name="$parentName" inherits="GameFontNormal" text="PARANOIA_COMM_GUILDWARN">
              <Anchors>
                <Anchor point="LEFT" relativePoint="RIGHT" />
              </Anchors>
							<Color r="1" g="1" b="1" />
            </FontString>
          </Layer>
        </Layers>
        <Scripts>
          <OnShow>
            Paranoia:OptionCheckBoxInit(self, 'guildWarn');
          </OnShow>
          <OnClick>
            Paranoia:OptionCheckBoxClicked(self,'guildWarn');
          </OnClick>
        </Scripts>
      </CheckButton>
      <Button name="ParanoiaConf_reset" inherits="OptionsButtonTemplate" text="PARANOIA_RESETPOSITIONS">
        <Size>
          <AbsDimension x="130" y="22"/>
        </Size>
        <Anchors>
          <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
            <Offset>
              <AbsDimension x="-20" y="20"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnLoad>
            self:SetWidth(self:GetTextWidth()+40);
          </OnLoad>
          <OnClick>
            Paranoia:ResetFrames();
          </OnClick>
        </Scripts>
      </Button>
    </Frames>
    <Scripts>
      <OnShow>
        Paranoia:WarnFrameShow();
      </OnShow>
    </Scripts>
	</Frame>
  
  <Frame name="ParanoiaConf_Announce" toplevel="false" frameStrata="HIGH" movable="false" enableMouse="true" hidden="true" parent="UIParent">
		<Anchors>
			<Anchor point="CENTER">
				<Offset>
					<AbsDimension x="0" y="20" />
				</Offset>
			</Anchor>
		</Anchors>
    <Layers>
			<Layer level="OVERLAY">
        <FontString name="ParanoiaConf_announceDetail" inherits="GameFontNormal" text="PARANOIA_ANNOUNCE_HEADER">			
          <Anchors>
            <Anchor point="TOPLEFT">
              <Offset>
                <AbsDimension x="15" y="-15" />
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
        <FontString name="ParanoiaConf_announceDetail" inherits="GameFontNormal" text="PARANOIA_ANNOUNCE_HITENTER">			
          <Anchors>
            <Anchor point="TOPLEFT">
              <Offset>
                <AbsDimension x="15" y="-30" />
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
        <FontString name="ParanoiaConf_announceDetail" inherits="GameFontNormal" text="PARANOIA_ANNOUNCE_PATTERNHELP1">			
          <Anchors>
            <Anchor point="TOPLEFT">
              <Offset>
                <AbsDimension x="15" y="-70" />
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
        <FontString name="ParanoiaConf_announceDetail" inherits="GameFontNormal" text="PARANOIA_ANNOUNCE_PATTERNHELP2">			
          <Anchors>
            <Anchor point="TOPLEFT">
              <Offset>
                <AbsDimension x="15" y="-85" />
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
        <FontString name="ParanoiaConf_announceDetail" inherits="GameFontNormal" text="PARANOIA_ANNOUNCE_PATTERNHELP3">			
          <Anchors>
            <Anchor point="TOPLEFT">
              <Offset>
                <AbsDimension x="15" y="-98" />
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
        <FontString name="ParanoiaConf_announceDetail" inherits="GameFontNormal" text="PARANOIA_ANNOUNCE_PATTERNHELP4">			
          <Anchors>
            <Anchor point="TOPLEFT">
              <Offset>
                <AbsDimension x="15" y="-111" />
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
        <FontString name="ParanoiaConf_announceDetail" inherits="GameFontNormal" text="PARANOIA_ANNOUNCE_PATTERNHELP5">			
          <Anchors>
            <Anchor point="TOPLEFT">
              <Offset>
                <AbsDimension x="15" y="-124" />
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
        <FontString name="ParanoiaConf_announceDetail" inherits="GameFontNormal" text="PARANOIA_ANNOUNCE_PATTERNHELP6">			
          <Anchors>
            <Anchor point="TOPLEFT">
              <Offset>
                <AbsDimension x="15" y="-137" />
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
        <FontString name="ParanoiaConf_announceDetail" inherits="GameFontNormal" text="PARANOIA_ANNOUNCE_PATTERNHELP7">			
          <Anchors>
            <Anchor point="TOPLEFT">
              <Offset>
                <AbsDimension x="15" y="-149" />
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
        <FontString name="ParanoiaConf_announceDetail" inherits="GameFontNormal" text="PARANOIA_ANNOUNCE_PATTERNHELP8"><!--Empty extra line for non-english localizations-->
          <Anchors>
            <Anchor point="TOPLEFT">
              <Offset>
                <AbsDimension x="15" y="-161" />
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
      </Layer>
    </Layers>
		<Frames>
			<EditBox name="ParanoiaConf_CustomAnnounce" letters="90" autoFocus="false" inherits="InputBoxTemplate">
				<Size>
					<AbsDimension x="250" y="32"></AbsDimension>
				</Size>
				<Scripts>
          <OnShow>
            self:SetText(Paranoia_Config.customMsg);
          </OnShow>
					<OnEscapePressed>
						self:ClearFocus();
					</OnEscapePressed>
					<OnEnterPressed>
						self:ClearFocus();
            Paranoia_Config.customMsg = self:GetText();
					</OnEnterPressed>
				</Scripts>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="20" y="-40" />
						</Offset>
					</Anchor>
				</Anchors>
        <FontString inherits="ChatFontNormal"/>
			</EditBox>
      <Button name="ParanoiaConf_testCustom" inherits="OptionsButtonTemplate" text="PARANOIA_TESTBUTTON">
        <Size>
          <AbsDimension x="80" y="22"/>
        </Size>
        <Anchors>
          <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
            <Offset>
              <AbsDimension x="275" y="-44"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnLoad>
            self:SetWidth(self:GetTextWidth()+40);
          </OnLoad>
          <OnClick>
            Paranoia_Config.customMsg = ParanoiaConf_CustomAnnounce:GetText();
            Paranoia:AnnounceHostile("Jimmy", "TEST");
          </OnClick>
        </Scripts>
      </Button>
      <Button name="ParanoiaConf_reset" inherits="OptionsButtonTemplate" text="PARANOIA_RESETPOSITIONS">
        <Size>
          <AbsDimension x="130" y="22"/>
        </Size>
        <Anchors>
          <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
            <Offset>
              <AbsDimension x="-20" y="20"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnLoad>
            self:SetWidth(self:GetTextWidth()+40);
          </OnLoad>
          <OnClick>
            Paranoia:ResetFrames();
          </OnClick>
        </Scripts>
      </Button>
    </Frames>
    <Scripts>
      <OnShow>
        Paranoia:WarnFrameShow();
      </OnShow>
    </Scripts>
  </Frame>
  
  <Button name="Paranoia_MinimapButton" parent="Minimap" enableMouse="true" movable="true" hidden="false">
		<Size>
			<AbsDimension x="33" y="33"/>
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT"/>
		</Anchors>
		<Layers>
			<Layer level="OVERLAY">
				<Texture name="Paranoia_MinimapButton_Icon" file="Interface\Icons\Spell_Shadow_Charm"> <!--Interface\Icons\Spell_Shadow_Charm-->
					<Size>
						<AbsDimension x="21" y="21"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="7" y="-6"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture file="Interface\Minimap\MiniMap-TrackingBorder">
					<Size>
						<AbsDimension x="56" y="56"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<Frame name="Paranoia_MinimapButton_DraggingFrame" hidden="true">
				<Scripts>
					<OnUpdate>
						Paranoia_MinimapButtonDraggingFrame_OnUpdate()
					</OnUpdate>
				</Scripts>
			</Frame>
		</Frames>
		<HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
		<Scripts>
			<OnLoad>
				self:RegisterForClicks("LeftButtonUp","RightButtonUp")
				self:RegisterForDrag("LeftButton","RightButton")
			</OnLoad>
			<OnDragStart>
				self:LockHighlight()
				Paranoia_MinimapButton_DraggingFrame:Show()
			</OnDragStart>
			<OnDragStop>
				self:UnlockHighlight()
				Paranoia_MinimapButton_DraggingFrame:Hide()
			</OnDragStop>
			<OnClick>
				Paranoia_MinimapButton_OnClick()
			</OnClick>
      <OnEnter>
			    GameTooltip:SetOwner(self, "ANCHOR_LEFT");
			    GameTooltip:SetText(PARANOIA_LONGNAME.." "..PARANOIA_VERSION, 0.58, 0.5, 0.79, 1);
          GameTooltip:AddLine(PARANOIA_MMTOOLTIP, 1, 0.49, 0.03, 1);
          GameTooltip:AppendText("");
			</OnEnter>
      <OnLeave>
        GameTooltip:Hide();
      </OnLeave>
		</Scripts>
	</Button>
</Ui>
