<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<Script file="GameTime.lua"/>
	<Button name="GameTimeFrame" parent="Minimap">
		<Size>
			<AbsDimension x="50" y="50"/>
		</Size>
		<Anchors>
			<Anchor point="TOPRIGHT">
				<Offset>
					<AbsDimension x="21" y="2"/>
				</Offset>
			</Anchor>
		</Anchors>
		<HitRectInsets>
			<AbsInset left="6" right="0" top="5" bottom="10"/>
		</HitRectInsets>
		<Layers>
			<Layer level="ARTWORK">
				<!--
				GameTimeTexture is the old day/night icon and is currently ALWAYS hidden, it is still here in case we want it back at some point
				-->
				<Texture name="GameTimeTexture" file="Interface\Minimap\UI-TOD-Indicator" hidden="true"/>
				<Texture name="GameTimeCalendarInvitesTexture" file="Interface\Calendar\EventNotification" hidden="true">
					<Size x="35" y="40"/>
					<Anchors>
						<Anchor point="CENTER">
							<Offset x="0" y="1"/>
						</Anchor>
					</Anchors>
					<TexCoords left="0.03125" right="0.6484375" top="0.03125" bottom="0.8671875"/>
				</Texture>
				<Texture name="GameTimeCalendarInvitesGlow" file="Interface\Calendar\EventNotificationGlow" hidden="true" alphaMode="ADD">
					<Size>
						<AbsDimension x="60" y="60"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset x="0" y="2"/>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture name="GameTimeCalendarEventAlarmTexture" file="Interface\Calendar\UI-Calendar-Button-Glow" alphaMode="ADD" hidden="true">
					<Size x="64" y="64"/>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				GameTimeFrame_OnLoad(self);
			</OnLoad>
			<OnEnter>
				GameTimeFrame_OnEnter(self);
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
			<OnEvent>
				GameTimeFrame_OnEvent(self, event, ...);
			</OnEvent>
			<OnUpdate>
				GameTimeFrame_OnUpdate(self, elapsed);
			</OnUpdate>
			<OnClick>
				GameTimeFrame_OnClick(self);
			</OnClick>
		</Scripts>
		<ButtonText>
			<Anchors>
				<Anchor point="CENTER">
					<Offset>
						<AbsDimension x="0" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
		</ButtonText>
		<NormalFont style="GameFontBlack"/>
		<NormalTexture file="Interface\Calendar\UI-Calendar-Button">
			<TexCoords left="0.0" right="0.390625" top="0.0" bottom="0.78125"/>
		</NormalTexture>
		<PushedTexture file="Interface\Calendar\UI-Calendar-Button">
			<TexCoords left="0.5" right="0.890625" top="0.0" bottom="0.78125"/>
		</PushedTexture>
		<HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
	</Button>
</Ui>
