<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="WIM_Titan.lua" />
	<Frame parent="UIParent">
		<Frames>
			<Button name="TitanPanelWIMButton" inherits="TitanPanelComboTemplate" frameStrata="FULLSCREEN" toplevel="true">
				<Scripts>
					<OnLoad>
						WIM_TitanButton_OnLoad();
					</OnLoad>
					<OnClick>
						WIM_Icon_ToolTip:Hide();
						if(arg1 == "LeftButton") then
							WIM_Titan_ToggleDropDown();
						else
							WIM_ShowNewMessages();
						end
					</OnClick>
					<OnShow>
						WIM_TitanButton_OnShow();
					</OnShow>
					<OnEnter>
						if(WIM_Data.showToolTips == true) then
							WIM_Icon_ToolTip:Show();
							WIM_Icon_ToolTip:ClearAllPoints();
							WIM_Icon_ToolTip:SetPoint("TOPLEFT", this, "BOTTOMLEFT", 0 , 0);
						end
					</OnEnter>
					<OnLeave>
						WIM_Icon_ToolTip:Hide();
					</OnLeave>
				</Scripts>
				<Frames>
					<Frame name="WIM_Titan_NewMessageFlash" hidden="true"  frameStrata="TOOLTIP">
						<Size>
							<AbsDimension x="25" y="25"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentIcon" relativePoint="TOPLEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Layers>
							<Layer level="BACKGROUND">
								<Texture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight">
									<Size>
										<AbsDimension x="20" y="20"/>
									</Size>
									<Anchors>
										<Anchor point="TOPLEFT">
											<Offset>
												<AbsDimension x="0" y="0"/>
											</Offset>
										</Anchor>
									</Anchors>
								</Texture>
							</Layer>
						</Layers>
					</Frame>
				</Frames>
			</Button>
		</Frames>
	</Frame>
</Ui>