Mercurial > wow > skeletonkey
view SkeletonUnit/UnitFrame.xml @ 4:a30285f8191e
Units:
make sure unit frames are SecureUnitButton derivatives
remove of unnecessary target/focus events
Stats:
resolve GUID after event handlers have fired
keep frame manipulation in uf.ui, get needed values from wrapper functions
author | Nenue |
---|---|
date | Tue, 21 Jun 2016 11:56:14 -0400 |
parents | f7a0898d293c |
children |
line wrap: on
line source
<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"> <Texture name="KTStatusBar" virtual="true" /> <Frame name="SkeletonUnits" parent="UIParent"></Frame> <Button name="KTUnitFrameTemplate" inherits="SecureUnitButtonTemplate" parent="UIParent" virtual="true"> <Size x="250" y="50" /> <Layers> <Layer level="BACKGROUND"> <Texture name="$parentHealthBG" inherits="KTStatusBar" parentKey="bg"> <Color r="0" g="0" b="0" a="1" /> </Texture> </Layer> <Layer level="ARTWORK"> <Texture name="$parentHealth" inherits="KTStatusBar" parentKey="healthbar"> <Anchors> <Anchor point="LEFT" /> <Anchor point="TOP" /> <Anchor point="BOTTOM" relativePoint="TOP" x="0" y="-20" /> </Anchors> <Color r="1" g="1" b="1" a="1" /> </Texture> <Texture name="$parentPower" inherits="KTStatusBar" parentKey="powerbar"> <Anchors> <Anchor point="LEFT" /> <Anchor point="TOP" x="0" y="-20" /> <Anchor point="BOTTOM" /> </Anchors> <Color r="1" g="0" b=".5" a="1" /> </Texture> </Layer> <Layer level="OVERLAY"> <FontString inherits="NumberFont_Outline_Large" parentKey="healthtext" text="HEALTH_TEXT"> <Anchors> <Anchor point="LEFT" relativeKey="$parent.healthbar" /> </Anchors> </FontString> <FontString inherits="NumberFont_Outline_Large" parentKey="powertext" text="POWER_TEXT"> <Anchors> <Anchor point="RIGHT" relativeKey="$parent.healthbar" /> </Anchors> </FontString> </Layer> </Layers> </Button> </Ui>