⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 alphamap.xml

📁 时间太紧了
💻 XML
📖 第 1 页 / 共 5 页
字号:
<!--
    ///////////////////////////////////////////////////////////////////////////////////////////
	
    AlphaMap: A worldmap frame that is transparent and allows character manipulation
        copyright 2004-2005 by Jeromy Walsh ( DragonWalsh@yahoo.com )
   
    Official Site: AlphaMap has popped up on a number of related websites. This is great news!! But for the
        latest and greatest version, check the following URL: http://www.curse-gaming.com/mod.php?addid=190
		
    Contributions: Part of the code for this is adapted from WorldMapFrame.xml and OpacitySliderFrame.xml
        of the original Blizzard(tm) Entertainment distribution.

    3rd Party Components: Part of the code is taken from MapNotes, MapNotes Gathering, and Gatherer.  This
	is done to provide optional support for those addons.

    Other Contributors: I'd like to thank "Ska Demon" of the Curse Gaming forums for helping me make v1.3
	as good as it is.  Ska provided the base code for the slash commands to set various parameters,
	as well as provided the base code to save variables between WoW sessions.  Finally, Ska provided 
        the code to scale the AlphaMap via a slash command.

    Special Thanks: Special thanks to Ska Demon for keeping AlphaMap alive during my busy schedule.
	Also thanks to my wife Lindsey Walsh, for putting up with me during the midnight coding sessions.

	
    License: You are hereby authorized to freely modify and/or distribute all files of this add-on, in whole or in part,
        providing that this header stays intact, and that you do not claim ownership of this Add-on.
		
        Additionally, the original owner wishes to be notified by email if you make any improvements to this add-on.
        Any positive alterations will be added to a future release, and any contributing authors will be 
        identified in the section above.
	
    Features:
		v1.3.1 - Removed all references to the worldmap POI's - some other addon was conflicting
        v1.3.0 - A large number of slash commands, usable via /AlphaMap or /am
               - Every slash command setting is stored between WoW usage
               - Raid Pins Shown ( togglable via /am raid )
               - Optional Tooltips on Pins ( Party/Raid, MapNotes, Gatherer, and MapNotes Gathering )
               - Tooltips Togglable via /am ptips, /am mntips, /am gtips, /am mngtips
               - Slider is moveable and lockable via /am moveslider
               - Optionally Show Slider via /am slider
               - Optional Support for Gatherer 1.9.12 (1300) via /am gatherer
               - Optional Support for MapNotes 0.5.4 (4196)  via /am mapnotes
               - Optional Support for MapNotes Gathering 0.5.6 (4150) via /am gathering
               - Optionally Close AlphaMap when entering combat via /am combat
               - Optionally Close Alphamap when world map closes via /am wmclose
               - Moveable AlphaMap; move by dragging along the top border  - lockable via /lock
               - Scaleable AlphaMap via /am scale <value>
               - AlphaMap togglable via /am tog
               - AlphaMap alpha settable through /am alpha <value>
               - Alpha value is saved between sessions
               - Fixed a bug allowing you to set a scale < 0
               - Fixed a bug allowing you to set alpha < 0 or > 1
               - Fixed a bug caused by 1300 where GetMapLandmarkInfo returned an extra parameter
        v1.2.1 - Fixed a bug causing AlphaMap to be closely tied to MapNotes
        v1.2.0 - Automatic update of AlphaMap on zone change
               - Now displays "Point of Interest" flags, such as set by guards
               - Now displays "MapNotes" pins, until they change something with MapNotes that breaks AlphaMap
               - Player pin is now shown as an arrow, indicating direction
               - Added Hotkey assignment to Increment/Decrement map alpha by 10%
               - Added player's coordinates near the top right of the AlphaMap. (Under the minimap in standard resolutions)
        v1.1.0 - Fixed a bug with markers not becoming transparent when alpha is set to 0
               - Player Corpse is now shown on AlphaMap
        v1.0.0 - Displays a slider in the lower left corner that can be used to set window opacity
        v0.9.0 - Displays the worldmap in a large, semi-transparent, non-movable window
	
    ///////////////////////////////////////////////////////////////////////////////////////////
-->

<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\FrameXML\UI.xsd">
	<Script file="localization.lua"/>
	<Script file="AlphaMap.lua"/>
	
	<Frame name="AlphaMapUnitTemplate" hidden="true" virtual="true">
		<Size>
			<AbsDimension x="16" y="16"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="$parentIcon" file="Interface\WorldMap\WorldMapPlayerIcon" setAllPoints="true"/>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				this:SetFrameLevel(this:GetFrameLevel() + 1);
				if ( this:GetID() == 0 ) then
					this.unit = "player";
				else
					this.unit = "party"..this:GetID();
					getglobal(this:GetName().."Icon"):SetTexture("Interface\\WorldMap\\WorldMapPartyIcon");
				end
			</OnLoad>

			<OnEnter>
				if( AlphaMapConfig.ptips == true ) then
			
					local x, y = this:GetCenter();
					local parentX, parentY = this:GetParent():GetCenter();
					if ( x > parentX ) then
						AlphaMapTooltip:SetOwner(this, "ANCHOR_LEFT");
					else
						AlphaMapTooltip:SetOwner(this, "ANCHOR_RIGHT");
					end
					AlphaMapTooltip:SetText(UnitName( this.unit ) );
					AlphaMapTooltip:Show();
				end
			</OnEnter>
			<OnLeave>
				AlphaMapTooltip:Hide();
			</OnLeave>
			
		</Scripts>
	</Frame>
	
	<Frame name="AlphaMapRaidUnitTemplate" inherits="AlphaMapUnitTemplate" virtual="true">
		<Scripts>
			<OnLoad>
				this:SetFrameLevel(this:GetFrameLevel() + 1);
				this.unit = "raid"..this:GetID();
				getglobal(this:GetName().."Icon"):SetTexture("Interface\\WorldMap\\WorldMapPartyIcon");
			</OnLoad>
		</Scripts>
	</Frame>
	
	<Frame name="AlphaMapCorpseTemplate" hidden="true" virtual="true">
		<Size>
			<AbsDimension x="16" y="16"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		<Layers>
			<Layer level="ARTWORK">
				<Texture file="Interface\Minimap\POIIcons" setAllPoints="true">
					<TexCoords left="0.75" right="1.0" top="0.25" bottom="0.5"/>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				this:SetFrameLevel(this:GetFrameLevel() + 1);
			</OnLoad>
		</Scripts>
	</Frame>
	<Frame name="AlphaMapPOITemplate" hidden="true" virtual="true" nableMouse="false">
		<Size>
			<AbsDimension x="16" y="16"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentTexture" file="Interface\Minimap\POIIcons">
					<Size>
						<AbsDimension x="16" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				this:SetFrameLevel(this:GetFrameLevel() + 1);
			</OnLoad>
		</Scripts>
	</Frame>
	<Frame name="GatheringPOITemplate" hidden="true" virtual="true">
		<Size>
			<AbsDimension x="16" y="16"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentTexture" file="Interface\AddOns\MapNotesGathering\POIIcons\Icon1">
					<Size>
						<AbsDimension x="16" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				this:SetFrameLevel(this:GetFrameLevel() + 1);
			</OnLoad>
			<OnEnter>
				if( AlphaMapConfig.mngtips == true ) then
					AlphaNotesGathering_OnEnter( this:GetID() );
				end
			</OnEnter>
			<OnLeave>
				AlphaNotesGathering_OnLeave( this:GetID() );
			</OnLeave>
		</Scripts>
	</Frame>
	<Frame name="MapNotesPOITemplate" hidden="true" virtual="true">
		<Size>
			<AbsDimension x="16" y="16"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentTexture" file="Interface\AddOns\MapNotes\POIIcons\Icon1">
					<Size>
						<AbsDimension x="16" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -