Mercurial > wow > buffalo2
comparison Modules/BuffFrame.xml @ 84:16b300d96724
rewritten using mixin attributes
| author | Nenue |
|---|---|
| date | Tue, 18 Oct 2016 13:07:21 -0400 |
| parents | |
| children | 48182978d1c6 |
comparison
equal
deleted
inserted
replaced
| 83:4ec4fd89fced | 84:16b300d96724 |
|---|---|
| 1 <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/ | |
| 2 ..\FrameXML\UI.xsd"> | |
| 3 <Script file="BuffFrame.lua" /> | |
| 4 | |
| 5 <Frame name="VeneerBuffFrame" mixin="VeneerBuffFrameMixin" inherits="VeneerMixinScripts" /> | |
| 6 <Frame name="VeneerBuffTemplate" virtual="true" inherits="VeneerTemplate" hidden="true"> | |
| 7 <Scripts> | |
| 8 <OnLoad> | |
| 9 self.duration = self.progress.duration | |
| 10 self.count = self.progress.count | |
| 11 self.border = self.underlay.bg | |
| 12 </OnLoad> | |
| 13 </Scripts> | |
| 14 <Frames> | |
| 15 <!-- | |
| 16 | |
| 17 frame.progress:SetPoint('BOTTOMLEFT', frame, 'BOTTOMLEFT', -1, -7) | |
| 18 frame.progress:SetPoint('TOPRIGHT', frame, 'BOTTOMRIGHT', 1, -2) | |
| 19 frame.progress:SetHeight(BUFF_PROGRESS_SIZE + (BUFF_PROGRESS_INSET * 2)) | |
| 20 | |
| 21 frame.progress.bg:SetColorTexture(0,0,0,1) | |
| 22 frame.progress.fg:SetColorTexture(1,1,1,1) | |
| 23 frame.progress.fg:ClearAllPoints() | |
| 24 frame.progress.fg:SetPoint('BOTTOMLEFT', BUFF_PROGRESS_INSET,BUFF_PROGRESS_INSET) | |
| 25 frame.progress.fg:SetPoint('TOP', 0, -BUFF_PROGRESS_INSET) | |
| 26 --> | |
| 27 | |
| 28 <Frame name="$parentUnderlay" parentKey="underlay" frameStrata="BACKGROUND"> | |
| 29 <Layers> | |
| 30 <Layer level="BORDER"> | |
| 31 <Texture parentKey="bg" setAllPoints="true" hidden="true" /> | |
| 32 </Layer> | |
| 33 </Layers> | |
| 34 </Frame> | |
| 35 <Cooldown name="$parentCooldown" parentKey="cooldown" inherits="CooldownFrameTemplate" reverse="true" setAllPoints="true"> | |
| 36 <EdgeTexture> | |
| 37 <Color a="0" r="0" g="0" b="0" /> | |
| 38 </EdgeTexture> | |
| 39 </Cooldown> | |
| 40 <Frame name="$parentProgress" parentKey="progress" frameStrata="MEDIUM"> | |
| 41 <Anchors> | |
| 42 <Anchor point="BOTTOMLEFT" x="-1" y="-7" /> | |
| 43 <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT" x="1" y="-2" /> | |
| 44 </Anchors> | |
| 45 <Layers> | |
| 46 <Layer level="BACKGROUND"> | |
| 47 <Texture parentKey="bg" setAllPoints="true"> | |
| 48 <Color a="1" r="0" g="0" b="0" /> | |
| 49 </Texture> | |
| 50 </Layer> | |
| 51 <Layer level="ARTWORK"> | |
| 52 <Texture parentKey="fg" > | |
| 53 <Color a="1" r="1" g="1" b="1" /> | |
| 54 </Texture> | |
| 55 </Layer> | |
| 56 <Layer level="OVERLAY"> | |
| 57 <FontString name="$parentDuration" parentKey="duration" inherits="VeneerNumberFont"> | |
| 58 <Anchors> | |
| 59 <Anchor point="BOTTOM" x="0" y="2" /> | |
| 60 </Anchors> | |
| 61 </FontString> | |
| 62 <FontString name="$parentCount" parentKey="count" inherits="VeneerNumberFont" justifyH="RIGHT"> | |
| 63 <Anchors> | |
| 64 <Anchor point="TOPRIGHT" x="-3" y="-3" /> | |
| 65 </Anchors> | |
| 66 </FontString> | |
| 67 </Layer> | |
| 68 </Layers> | |
| 69 </Frame> | |
| 70 </Frames> | |
| 71 </Frame> | |
| 72 </Ui> |
