<GuiXml>
	<Controls>

 		<TopLevelControl name="DasControl" movable="true" mouseEnabled="true">
			<Dimensions x="330" minY="45" y="45" />
			<Anchor point="TOPLEFT" relativeTo="GuiRoot" relativePoint="TOPLEFT" />
			<OnMoveStop>DailyAutoShare.SaveControlLocation(self)</OnMoveStop>
			<Controls>


				<Control name="DasHandle" clampedToScreen="true">
					<Anchor point="TOPLEFT" 	relativeTo="DasControl" relativePoint="TOPLEFT"/>
					<Anchor point="BOTTOMRIGHT" relativeTo="DasControl" relativePoint="TOPRIGHT" offsetY="45"/>


					<Controls>
						<Backdrop name="$(parent)_BG" edgeColor="000000" centerColor="969696" alpha="0.5" drawLayer="0">
							<Anchor point="TOPLEFT" 	relativeTo="$(parent)" relativePoint="TOPLEFT"/>
							<Anchor point="BOTTOMRIGHT" relativeTo="$(parent)" relativePoint="BOTTOMRIGHT"/>
						</Backdrop>

						<Button name="DasButtonLock" >
							<Dimensions x="16" y="16" />
							<Anchor point="TOPLEFT" relativeTo="DasHandle" relativePoint="TOPLEFT" offsetX="15" offsetY="15"/>
							<OnMouseUp> DailyAutoShare.SetLocked(not DailyAutoShare.GetLocked()) </OnMouseUp>
							<Textures
								normal		="esoui/art/miscellaneous/locked_up.dds"
                                pressed		="esoui/art/miscellaneous/locked_down.dds"
                                mouseOver	="esoui/art/miscellaneous/locked_over.dds"
							/>
						</Button>
						<Button name="DasButtonHide" >
							<Dimensions x="15" y="15" />
							<Anchor point="LEFT" relativeTo="DasButtonLock" relativePoint="RIGHT" offsetX="10"  offsetY="1"/>

							<Textures
								normal		="/esoui/art/buttons/decline_up.dds"
                                pressed		="/esoui/art/buttons/decline_down.dds"
                                mouseOver	="/esoui/art/buttons/decline_over.dds"
							 />
							<OnMouseUp>	 DasControl:SetHidden(true) </OnMouseUp>
						</Button>

						<Button name="DasButtonMinmax" >
							<Dimensions x="16" y="16" />
							<Anchor point="TOPRIGHT" relativeTo="DasHandle" relativePoint="TOPRIGHT" offsetX="-20" offsetY="15"/>
							<Textures
                                normal		="/esoui/art/buttons/minus_up.dds"
                                pressed		="/esoui/art/buttons/minus_down.dds"
                                mouseOver	="/esoui/art/buttons/minus_over.dds"
                            />
							<OnMouseUp>DailyAutoShare.MinMaxButton()</OnMouseUp>
						</Button>

						<Button name="DasButtonRefresh">
                            <Anchor point="RIGHT" relativeTo="DasHandle" relativePoint="RIGHT" offsetX="-40" offsetY="1"/>
                            <Dimensions x="30" y="30" />
                            <Textures
                                normal		="/esoui/art/help/help_tabicon_feedback_up.dds"
                                pressed		="/esoui/art/help/help_tabicon_feedback_down.dds "
                                mouseOver	="/esoui/art/help/help_tabicon_feedback_over.dds"
                            />
                            <OnMouseEnter>		DailyAutoShare.CreateControlTooltip(self)	</OnMouseEnter>
                            <OnMouseExit> 		DailyAutoShare.HideTooltip(self)			</OnMouseExit>
                             <OnMouseUp>		DailyAutoShare.RefreshLabels(true, true)	</OnMouseUp>
                        </Button>

						<Label name="$(parent)_Label" font="ZoFontWinH2" color="ffffff" text="DailyAutoShare"
							verticalAlignment="CENTER" horizontalAlignment="LEFT" alpha="0.85">
							<Dimensions x="350" y="50" />
							<Anchor point="TOPLEFT"  relativeTo="DasHandle" relativePoint="TOPLEFT" offsetX="80" offsetY="-2"/>
						</Label>

					</Controls>
				</Control>
				<Tooltip name="DailyAutoShare_Tooltip" inherits="ZO_BaseTooltip" tier="1">
					<Anchor point="TOPLEFT" relativeTo="DasList" relativePoint="TOPLEFT" offsetX="0" offsetY="-50"/>
				</Tooltip>

				<Control name="DasList" resizeToFitDescendents="true" >
					<Dimensions x="330" />
					<Anchor point="TOPLEFT" relativeTo="DasHandle" relativePoint="BOTTOMLEFT" offsetX="0" offsetY="0" />
					<Controls>
						<Backdrop name="$(parent)_BG" inherits="ZO_DefaultBackdrop"><AnchorFill/></Backdrop>
						<Control name="DasHeader">
							<Anchor point="TOPLEFT" relativeTo="DasList_Backdrop" relativePoint="TOPLEFT"		offsetX="20" offsetY="15"/>
							<Anchor point="BOTTOMRIGHT" relativeTo="DasList_Backdrop" relativePoint="TOPLEFT" 	offsetX="310" offsetY="30" />
							<Controls>
								<Button name="DasButtonInvite">
									<Dimensions x="20" y="20" />
									<Anchor point="TOPLEFT" relativeTo="$(parent)" relativePoint="TOPLEFT"  />
									<Textures
										normal="/DailyAutoShare/textures/invite_up.dds"
										pressed="/DailyAutoShare/textures/invite_down.dds"
										mouseOver="/DailyAutoShare/textures/invite_down.dds"
									 />

									<OnMouseEnter>		DailyAutoShare.CreateControlTooltip(self)	</OnMouseEnter>
									<OnMouseExit> 		DailyAutoShare.HideTooltip(self)			</OnMouseExit>
									<OnMouseUp>			DailyAutoShare.SettingsButton(self, button)	</OnMouseUp>

								</Button>

								<Button name="DasButtonAccept" >
									<Dimensions x="20" y="20" />
									<Anchor point="TOPLEFT" relativeTo="DasButtonInvite" relativePoint="TOPRIGHT" offsetX="10" />

									<Textures
										normal="DailyAutoShare/textures/accept_up.dds"
										pressed="DailyAutoShare/textures/accept_down.dds"
										mouseOver="DailyAutoShare/textures/accept_down.dds"
									 />
									<OnMouseEnter>		DailyAutoShare.CreateControlTooltip(self)	</OnMouseEnter>
									<OnMouseExit> 		DailyAutoShare.HideTooltip(self)			</OnMouseExit>
									<OnMouseUp>			DailyAutoShare.SettingsButton(self, button)	</OnMouseUp>
								</Button>

								<Button name="DasButtonShare" >
									<Dimensions x="20" y="20" />
									<Anchor point="TOPLEFT" relativeTo="DasButtonAccept" relativePoint="TOPRIGHT" offsetX="10" />

									<Textures
										normal="DailyAutoShare/textures/share_up.dds"
										pressed="DailyAutoShare/textures/share_down.dds"
										mouseOver="DailyAutoShare/textures/share_down.dds"
									 />
									<OnMouseEnter>		DailyAutoShare.CreateControlTooltip(self)	</OnMouseEnter>
									<OnMouseExit> 		DailyAutoShare.HideTooltip(self)			</OnMouseExit>
									<OnMouseUp>			DailyAutoShare.SettingsButton(self, button)	</OnMouseUp>

								</Button>

								<Button name="DasButtonSpam">
									<Anchor point="TOPLEFT" relativeTo="DasButtonShare" relativePoint="TOPRIGHT" offsetX="50" />
									<Dimensions x="20" y="20" />
									<Textures
										normal="DailyAutoShare/textures/speaker_up.dds"
										pressed="DailyAutoShare/textures/speaker_down.dds"
										mouseOver="DailyAutoShare/textures/speaker_down.dds"
									 />
									<OnMouseEnter>		DailyAutoShare.CreateControlTooltip(self)	</OnMouseEnter>
									<OnMouseExit> 		DailyAutoShare.HideTooltip(self)			</OnMouseExit>
									 <OnMouseUp>	DailyAutoShare.SettingsButton(self, button)	</OnMouseUp>
								</Button>


								<Button name="DasButtonDonate" alpha="0.6">
									<Anchor point="TOPRIGHT" relativeTo="$(parent)" relativePoint="TOPRIGHT" offsetY="-4" />
									<Dimensions x="30" y="30" />
									<Textures
										normal="esoui/art/chatwindow/chat_mail_up.dds"
										pressed="esoui/art/chatwindow/chat_mail_down.dds"
										mouseOver="esoui/art/chatwindow/chat_mail_over.dds"
									 />

									<OnMouseEnter>		DailyAutoShare.CreateControlTooltip(self)	</OnMouseEnter>
									<OnMouseExit> 		DailyAutoShare.HideTooltip(self)			</OnMouseExit>
									<OnMouseUp> DailyAutoShare.Donate(self, button) </OnMouseUp>
								</Button>



							</Controls>
						</Control>

                        <Control name="DasInvisibleFooterSpacer" mouseEnabled="false" >
                            <Dimensions y="15" />
                        </Control>
                    </Controls>

				</Control>

                <Control name="DasSubList" hidden="true" resizeToFitDescendents="true">
                    <Dimensions x="310" />
					<Anchor point="LEFT" relativeTo="DasList" relativePoint="RIGHT" offsetX="10" offsetY="10" />
                    <Controls>
                        <Backdrop name="$(parent)_BG" inherits="ZO_DefaultBackdrop"><AnchorFill/></Backdrop>
                        <Button name="DasButtonHideSublist" >
							<Dimensions x="20" y="20" />
							<Anchor point="TOPRIGHT" relativeTo="DasSubList" relativePoint="TOPRIGHT" offsetX="-8"  offsetY="5"/>

							<Textures
								normal		="/esoui/art/buttons/decline_up.dds"
                                pressed		="/esoui/art/buttons/decline_down.dds"
                                mouseOver	="/esoui/art/buttons/decline_over.dds"
							 />
							<OnMouseUp>	DasSubList:SetHidden(true)</OnMouseUp>
						</Button>

                    </Controls>
                </Control>
            </Controls>
		</TopLevelControl>

		<Button name="Das_Label" font="ZoFontChat" text="" wrapMode="TRUNCATE"
			verticalAlignment="CENTER" horizontalAlignment="LEFT" alpha="0.85" hidden="true"
			disabled="true" virtual="true"
            drawLayer="1">
			<Dimensions x="350" y="30" />
            <FontColors
                normalColor="INTERFACE_COLOR_TYPE_TEXT_COLORS:INTERFACE_TEXT_COLOR_NORMAL"
                pressedColor="INTERFACE_COLOR_TYPE_TEXT_COLORS:INTERFACE_TEXT_COLOR_SELECTED"
                mouseOverColor="INTERFACE_COLOR_TYPE_TEXT_COLORS:INTERFACE_TEXT_COLOR_HIGHLIGHT"
                disabledColor="INTERFACE_COLOR_TYPE_TEXT_COLORS:INTERFACE_TEXT_COLOR_DISABLED"
            />


			<OnMouseEnter>DailyAutoShare.CreateLabelTooltip(self)</OnMouseEnter>
			<OnMouseExit>DailyAutoShare.HideTooltip(self)</OnMouseExit>
			<OnMouseUp>DailyAutoShare.QuestLabelClicked(self, button)</OnMouseUp>
		</Button>
        <Control name="DasInvisibleFooterSpacer" mouseEnabled="false" virtual="true">
            <Dimensions y="15" />
        </Control>
	</Controls>

</GuiXml>