annotate Turok/Modules/Combat/CombatLog.xml @ 6:a9b8b0866ece

clear out log jam
author Nenue
date Sun, 21 Feb 2016 08:32:53 -0500
parents
children
rev   line source
Nenue@6 1 <Ui>
Nenue@6 2 <Frame name="TurokCombatMessageTemplate" virtual="true">
Nenue@6 3 <Anchors>
Nenue@6 4 <Anchor point="BOTTOMLEFT" />
Nenue@6 5 </Anchors>
Nenue@6 6 <Layers>
Nenue@6 7 <Layer level="OVERLAY">
Nenue@6 8 <Texture parentKey="icon" hidden="true">
Nenue@6 9 <Size x="28" y="28" />
Nenue@6 10 <Anchors>
Nenue@6 11 <Anchor point="RIGHT" relativePoint="LEFT" x="-1" y="0" />
Nenue@6 12 </Anchors>
Nenue@6 13 <TexCoords top="0.15" left="0.15" right=".85" bottom="0.85" />
Nenue@6 14 </Texture>
Nenue@6 15 </Layer>
Nenue@6 16 <Layer level="OVERLAY">
Nenue@6 17 <Font name="$parentTkMessageFont" parentKey="font" font="InterfaceAddons\Turok\Media\font\ArchivoNarrow-Regular.ttf" >
Nenue@6 18 <FontHeight>
Nenue@6 19 <AbsValue val="12" />
Nenue@6 20 </FontHeight>
Nenue@6 21 </Font>
Nenue@6 22 <FontString name="$parentMessageText" parentKey="string" inherits="$parentTkMessageFont">
Nenue@6 23 <Anchors>
Nenue@6 24 <Anchor point="BOTTOMLEFT" />
Nenue@6 25 </Anchors>
Nenue@6 26 </FontString>
Nenue@6 27 </Layer>
Nenue@6 28 </Layers>
Nenue@6 29 <Animations>
Nenue@6 30 <AnimationGroup name="pop" parentKey="pop" ignoreFramerateThrottle="true">
Nenue@6 31 <Scale parentArray="scale" toScaleX="1" fromScaleX="1.75" toScaleY="1" fromScaleY="1.75" duration="0.12" order="1"/>
Nenue@6 32 <Translation parentArray="translation" offsetX="85" offsetY="70" order="1" duration="0.32" />
Nenue@6 33 <Alpha parentArray="alpha" duration="0.75" order="1" change="-1" startDelay="2.25"/>
Nenue@6 34 <Scripts>
Nenue@6 35 <OnPlay>
Nenue@6 36 self:GetParent():Show()
Nenue@6 37 </OnPlay>
Nenue@6 38 <OnStop>
Nenue@6 39 local ct = self:GetParent()
Nenue@6 40 ct.discard = true
Nenue@6 41 ct:Hide()
Nenue@6 42 </OnStop>
Nenue@6 43 <OnFinished>
Nenue@6 44 local ct = self:GetParent()
Nenue@6 45 ct.discard = true
Nenue@6 46 ct:Hide()
Nenue@6 47 </OnFinished>
Nenue@6 48 </Scripts>
Nenue@6 49 </AnimationGroup>
Nenue@6 50 <AnimationGroup name="$parent_FadeAway" parentKey="slide" ignoreFramerateThrottle="true">
Nenue@6 51 <Translation parentArray="translation" offsetX="0" offsetY="300" duration="3" order="1" />
Nenue@6 52 <Alpha parentArray="alpha" change="-1" startDelay="2.25" duration="0.75" order="1" />
Nenue@6 53 <Scripts>
Nenue@6 54 <OnPlay>
Nenue@6 55 self:GetParent():Show()
Nenue@6 56 </OnPlay>
Nenue@6 57 <OnStop>
Nenue@6 58 local ct = self:GetParent()
Nenue@6 59 ct.discard = true
Nenue@6 60 ct:Hide()
Nenue@6 61 </OnStop>
Nenue@6 62 <OnFinished>
Nenue@6 63 local ct = self:GetParent()
Nenue@6 64 ct.discard = true
Nenue@6 65 ct:Hide()
Nenue@6 66 </OnFinished>
Nenue@6 67 </Scripts>
Nenue@6 68 </AnimationGroup>
Nenue@6 69 <AnimationGroup name="$parent_SideAway" parentKey="lateralSlide" ignoreFramerateThrottle="true">
Nenue@6 70 <Translation parentArray="translation" offsetX="300" offsetY="0" duration="3" order="1" />
Nenue@6 71 <Alpha parentArray="alpha" change="-1" startDelay="2.25" duration="0.75" order="1" />
Nenue@6 72 <Scripts>
Nenue@6 73 <OnPlay>
Nenue@6 74 self:GetParent():Show()
Nenue@6 75 </OnPlay>
Nenue@6 76 <OnStop>
Nenue@6 77 local ct = self:GetParent()
Nenue@6 78 ct.discard = true
Nenue@6 79 ct:Hide()
Nenue@6 80 </OnStop>
Nenue@6 81 <OnFinished>
Nenue@6 82 local ct = self:GetParent()
Nenue@6 83 ct.discard = true
Nenue@6 84 ct:Hide()
Nenue@6 85 </OnFinished>
Nenue@6 86 </Scripts>
Nenue@6 87 </AnimationGroup>
Nenue@6 88 </Animations>
Nenue@6 89 </Frame>
Nenue@6 90
Nenue@6 91 <Frame name="TurokSCTAnchorTemplate" parent="UIParent" virtual="true" movable="true" resizable="true">
Nenue@6 92 <ResizeBounds>
Nenue@6 93 <minResize x="40" y="40" />
Nenue@6 94 <maxResize x="1900" y="1200" />
Nenue@6 95 </ResizeBounds>
Nenue@6 96 <Scripts>
Nenue@6 97 <OnLoad>
Nenue@6 98 </OnLoad>
Nenue@6 99 <OnMouseDown>
Nenue@6 100 if button ~= 'LeftButton' then
Nenue@6 101 return
Nenue@6 102 end
Nenue@6 103
Nenue@6 104 print(self.sizer:GetCenter(), self.sizer:IsMouseOver())
Nenue@6 105 if self.sizer:IsMouseOver() then
Nenue@6 106 self:StartSizing()
Nenue@6 107 else
Nenue@6 108 self:StartMoving()
Nenue@6 109 end
Nenue@6 110 self:SetScript('OnUpdate', function()
Nenue@6 111 self.configHeader:SetText(self.name .."\n"
Nenue@6 112 ..math.floor(self:GetWidth())..' x '..math.floor(self:GetHeight()).."\n("
Nenue@6 113 ..math.floor(self:GetLeft())..', '.. math.floor(self:GetTop())..')')
Nenue@6 114 print('hammer')
Nenue@6 115 end)
Nenue@6 116 </OnMouseDown>
Nenue@6 117 <OnMouseUp>
Nenue@6 118 if button ~= 'LeftButton' then
Nenue@6 119 return
Nenue@6 120 end
Nenue@6 121 self:SetScript('OnUpdate', nil)
Nenue@6 122 print('stop')
Nenue@6 123 self:StopMovingOrSizing()
Nenue@6 124 </OnMouseUp>
Nenue@6 125 </Scripts>
Nenue@6 126 <Anchors>
Nenue@6 127 <Anchor point="CENTER" relativeTo="UIParent" />
Nenue@6 128 </Anchors>
Nenue@6 129 <Size x="400" y="500" />
Nenue@6 130 <Layers>
Nenue@6 131 <Layer level="BACKGROUND">
Nenue@6 132 <Texture setAllPoints="true" parentArray="configRegions" hidden="true">
Nenue@6 133 <Color r="0" g="0" b="0" a="1" />
Nenue@6 134 </Texture>
Nenue@6 135 </Layer>
Nenue@6 136 <Layer level="OVERLAY">
Nenue@6 137 <FontString parentArray="configRegions" parentKey="configHeader" inherits="TurokFontDetail" text="configHeader" hidden="true">
Nenue@6 138 <Anchors>
Nenue@6 139 <Anchor point="CENTER" />
Nenue@6 140 </Anchors>
Nenue@6 141 </FontString>
Nenue@6 142 </Layer>
Nenue@6 143 <Layer level="HIGHLIGHT">
Nenue@6 144 <Texture parentArray="configRegions" parentKey="sizer" hidden="true">
Nenue@6 145 <Size x="24" y="24" />
Nenue@6 146 <Color r="1" g="1" b="1" a="1" />
Nenue@6 147 <Anchors>
Nenue@6 148 <Anchor point="BOTTOMRIGHT" />
Nenue@6 149 </Anchors>
Nenue@6 150 </Texture>
Nenue@6 151 </Layer>
Nenue@6 152 </Layers>
Nenue@6 153 </Frame>
Nenue@6 154
Nenue@6 155 <Frame name="TkDotBarTemplate" virtual="true">
Nenue@6 156 <Size x="120" y="16" />
Nenue@6 157 <Layers>
Nenue@6 158 <Layer level="BACKGROUND">
Nenue@6 159 <Texture name="$parentBackground" parentKey="background" setAllPoint="true">
Nenue@6 160 <Color a="1" r="0" b="0" g="0" />
Nenue@6 161 </Texture>
Nenue@6 162 </Layer>
Nenue@6 163 <Layer level="ARTWORK">
Nenue@6 164 <Texture name="$parentForeground" parentKey="foreground">
Nenue@6 165 <Color a="1" r="1" b="1" g="0" />
Nenue@6 166 </Texture>
Nenue@6 167 </Layer>
Nenue@6 168 </Layers>
Nenue@6 169 </Frame>
Nenue@6 170
Nenue@6 171 <Frame name="TkCombatLogTemplate" parent="UIParent" virtual="true">
Nenue@6 172 <Scripts>
Nenue@6 173 <OnLoad>
Nenue@6 174 print('Layout', self:GetName(), 'has arrived.')
Nenue@6 175 </OnLoad>
Nenue@6 176 <OnHide>
Nenue@6 177 print('Layout', self:GetName(), ' hidden.')
Nenue@6 178 </OnHide>
Nenue@6 179 </Scripts>
Nenue@6 180 <Frames>
Nenue@6 181 <ScrollingMessageFrame>
Nenue@6 182
Nenue@6 183 </ScrollingMessageFrame>
Nenue@6 184 </Frames>
Nenue@6 185 </Frame>
Nenue@6 186 </Ui>