Quantcast
<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="TitanClock.lua"/>
	<Frame name="TitanPanelClockControlFrameTemplate" inherits="BackdropTemplate" virtual="true" hidden="true">
		<Size>
			<AbsDimension x="90" y="200" />
		</Size>
<!--
Blizzard decided to remove direct Backdrop API in 9.0 (Shadowlands) so inherit the template
and set the values in the code.
-->
<!--
		<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			<EdgeSize>
				<AbsValue val="16"/>
			</EdgeSize>
			<TileSize>
				<AbsValue val="16"/>
			</TileSize>
			<BackgroundInsets>
				<AbsInset left="5" right="5" top="5" bottom="5"/>
			</BackgroundInsets>
		</Backdrop>
-->
		<Layers>
			<Layer>
				<FontString name="$parentTitle" inherits="GameFontNormalSmall">
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="-10" />
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Slider name="TitanPanelClockControlSlider" inherits="TitanOptionsSliderTemplate">
				<Anchors>
					<Anchor point="TOP">
						<Offset>
							<AbsDimension x="0" y="-40"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnShow>
						TitanPanelClockControlSlider_OnShow(self);
					</OnShow>
					<OnValueChanged>
						TitanPanelClockControlSlider_OnValueChanged(self, value);
					</OnValueChanged>
					<OnMouseWheel>
						TitanPanelClockControlSlider_OnValueChangedWheel(self, delta);
					</OnMouseWheel>
					<OnEnter>
						TitanPanelClockControlSlider_OnEnter(self);
					</OnEnter>
					<OnLeave>
						TitanPanelClockControlSlider_OnLeave(self)
					</OnLeave>
				</Scripts>
			</Slider>
			<CheckButton name="TitanPanelClockControlCheckButton" inherits="OptionsCheckButtonTemplate">
				<Size>
					<AbsDimension x="24" y="24"/>
				</Size>
				<Anchors>
					<Anchor point="TOP" relativeTo="TitanPanelClockControlSlider" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="-25" y="-20"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnShow>
						TitanPanelClockControlCheckButton_OnShow(self);
					</OnShow>
					<OnClick>
						TitanPanelClockControlCheckButton_OnClick(self, button);
					</OnClick>
					<OnEnter>
						TitanPanelClockControlCheckButton_OnEnter(self);
					</OnEnter>
					<OnLeave>
						TitanPanelClockControlCheckButton_OnLeave(self)
					</OnLeave>
				</Scripts>
			</CheckButton>
		</Frames>
		<Scripts>
			<OnLoad>
				TitanPanelClockControlFrame_OnLoad(self);
			</OnLoad>
			<OnEnter>
				TitanUtils_StopFrameCounting(self);
			</OnEnter>
			<OnLeave>
				TitanUtils_StartFrameCounting(self, 0.5);
			</OnLeave>
			<OnUpdate>
				TitanPanelClockControlFrame_OnUpdate(self, elapsed);
			</OnUpdate>
		</Scripts>
	</Frame>
	<Frame parent="UIParent" inherits="BackdropTemplate">
		<Frames>
			<Button name="TitanPanelClockButton" inherits="TitanPanelTextTemplate" frameStrata="FULLSCREEN" toplevel="true">
				<Scripts>
					<OnLoad>
						TitanPanelClockButton_OnLoad(self);
						TitanPanelButton_OnLoad(self);
					</OnLoad>
					<OnShow>
						TitanPanelClockButton_OnShow();
						TitanPanelButton_OnShow(self);
					</OnShow>
					<OnHide>
					TitanPanelClockButton_OnHide();
					</OnHide>
					<OnEvent>
						TitanPanelClockButton_OnEvent(self, event, ...);
					</OnEvent>
					<OnClick>
					TitanPanelClockButton_OnClick(self, button);
					</OnClick>
				</Scripts>
			</Button>
			<Frame name="TitanPanelClockControlFrame" inherits="TitanPanelClockControlFrameTemplate" frameStrata="FULLSCREEN" toplevel="true" />
		</Frames>
	</Frame>
</Ui>