<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="HealWatch.lua"/> <Script file="HealWatchComs.lua"/> <Script file="HealWatchEvents.lua"/> <Script file="HealWatchConstants.lua"/> <Script file="HealWatchMenu.lua"/> <Script file="HealWatchFrames.lua"/> <Script file="localisation.en.lua"/> <Script file="localisation.fr.lua"/> <Button name="HealWatchLabelTemplate" virtual="true" hidden="true"> <Size><AbsDimension x="210" y="24"/></Size> <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> <BackgroundInsets> <AbsInset left="1" right="1" top="1" bottom="1"/> </BackgroundInsets> <TileSize> <AbsValue val="16"/> </TileSize> <EdgeSize> <AbsValue val="16"/> </EdgeSize> </Backdrop> <Layers> <Layer level="ARTWORK"> <FontString name="$parent_Health" inherits="GameFontHighlight" justifyH="RIGHT" text="HealWatch"> <Size> <AbsDimension x="210" y="24"/> </Size> <Anchors> <Anchor point="RIGHT" relativePoint="RIGHT"> <Offset> <AbsDimension x="-8" y="1"/> </Offset> </Anchor> </Anchors> </FontString> </Layer> </Layers> <Frames> <CheckButton name="$parent_Check" inherits="UICheckButtonTemplate"> <Size><AbsDimension x="16" y="16"/></Size> <Anchors> <Anchor point="TOPLEFT"> <Offset><AbsDimension x="4" y="-4"/></Offset> </Anchor> </Anchors> <Scripts> <OnClick> if (HealWatch.LabelCheckOnClick) then HealWatch.LabelCheckOnClick(arg1) end </OnClick> </Scripts> </CheckButton> </Frames> <Scripts> <OnLoad> this:RegisterForClicks('LeftButtonDown','RightButtonDown') </OnLoad> <OnClick> if (HealWatch.LabelOnClick) then HealWatch.LabelOnClick(arg1) end </OnClick> <OnMouseUp> HealWatchCastFrame:StopMovingOrSizing() </OnMouseUp> </Scripts> </Button> <Frame name="HealWatchFrame"> <Scripts> <OnLoad> HealWatch.OnLoad(); </OnLoad> <OnEvent> HealWatch.OnEvent(event,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10) </OnEvent> <OnUpdate> if (SpellIsTargeting()) then if (not HealWatch.wasTargeting) then HealWatch.wasTargeting = true end end </OnUpdate> </Scripts> </Frame> <Frame name='HealWatchAnchorFrame' framestrata='LOW' toplevel='true' movable='true' parent='UIParent' hidden='false'> <Size> <AbsDimension x='100' y='32'/> </Size> <Anchors> <Anchor point='CENTER'/> </Anchors> <Frames> <Frame name="HealWatchCastFrame" frameStrata="LOW" toplevel="true" enableMouse="true" movable="true" parent="HealWatchAnchorFrame" hidden="true"> <Size> <AbsDimension x="217" y="32"/> </Size> <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> <BackgroundInsets> <AbsInset left="5" right="4" top="5" bottom="5"/> </BackgroundInsets> <TileSize> <AbsValue val="16"/> </TileSize> <EdgeSize> <AbsValue val="16"/> </EdgeSize> </Backdrop> <TitleRegion setAllPoints="true"/> <Frames> <Button name="HealWatchLabelHeader"> <Size><AbsDimension x="210" y="24"/></Size> <Layers> <Layer level="ARTWORK"> <FontString name="$parent_Title" inherits="GameFontHighlight" justifyH="CENTER" text="HealWatch"> <Size> <AbsDimension x="210" y="24"/> </Size> <Anchors> <Anchor point="CENTER" relativePoint="CENTER"> <Offset> <AbsDimension x="0" y="0"/> </Offset> </Anchor> </Anchors> </FontString> </Layer> </Layers> <Backdrop bgFile="Interface\DialogButton\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> <BackgroundInsets> <AbsInset left="1" right="1" top="1" bottom="1"/> </BackgroundInsets> <TileSize> <AbsValue val="16"/> </TileSize> <EdgeSize> <AbsValue val="16"/> </EdgeSize> </Backdrop> <Scripts> <OnLoad> this:RegisterForClicks('LeftButtonDown','RightButtonDown','LeftButtonUp','MiddleButtonUp','Button4Up','Button5Up') this:RegisterForDrag('LeftButton') </OnLoad> <OnClick> if (HealWatch.LabelOnClick) then HealWatch.LabelOnClick(arg1) end </OnClick> <OnMouseUp> HealWatchAnchorFrame:StopMovingOrSizing() </OnMouseUp> <OnMouseDown> HealWatchAnchorFrame:StartMoving() </OnMouseDown> <OnDragStart> HealWatchAnchorFrame:StartMoving() DEFAULT_CHAT_FRAME:AddMessage('Drag start') </OnDragStart> <OnDragStop> HealWatchAnchorFrame:StopMovingOrSizing() </OnDragStop> </Scripts> </Button> </Frames> <Scripts> <OnDragStart> HealWatchAnchorFrame:StartMoving() </OnDragStart> <OnDragStop> HealWatchAnchorFrame:StopMovingOrSizing() </OnDragStop> </Scripts> </Frame> </Frames> </Frame> </Ui>