view Turok/Modules/Combat/CombatLog.xml @ 11:0b1a2f3dbfc4 tip

aura duration override triggering activation twice when aura data still exists briefly after duration end
author Nenue
date Mon, 22 Feb 2016 03:11:54 -0500
parents a9b8b0866ece
children
line wrap: on
line source
<Ui>
  <Frame name="TurokCombatMessageTemplate" virtual="true">
    <Anchors>
      <Anchor point="BOTTOMLEFT" />
    </Anchors>
    <Layers>
      <Layer level="OVERLAY">
        <Texture parentKey="icon" hidden="true">
          <Size x="28" y="28" />
          <Anchors>
            <Anchor point="RIGHT" relativePoint="LEFT" x="-1" y="0" />
          </Anchors>
          <TexCoords top="0.15" left="0.15" right=".85" bottom="0.85" />
        </Texture>
      </Layer>
      <Layer level="OVERLAY">
        <Font name="$parentTkMessageFont" parentKey="font" font="InterfaceAddons\Turok\Media\font\ArchivoNarrow-Regular.ttf" >
          <FontHeight>
            <AbsValue val="12" />
          </FontHeight>
        </Font>
        <FontString name="$parentMessageText" parentKey="string" inherits="$parentTkMessageFont">
          <Anchors>
            <Anchor point="BOTTOMLEFT" />
          </Anchors>
        </FontString>
      </Layer>
    </Layers>
    <Animations>
      <AnimationGroup name="pop" parentKey="pop" ignoreFramerateThrottle="true">
        <Scale parentArray="scale" toScaleX="1" fromScaleX="1.75" toScaleY="1" fromScaleY="1.75" duration="0.12" order="1"/>
        <Translation parentArray="translation" offsetX="85" offsetY="70" order="1" duration="0.32" />
        <Alpha parentArray="alpha" duration="0.75" order="1"  change="-1" startDelay="2.25"/>
        <Scripts>
          <OnPlay>
            self:GetParent():Show()
          </OnPlay>
          <OnStop>
            local ct = self:GetParent()
            ct.discard = true
            ct:Hide()
          </OnStop>
          <OnFinished>
            local ct = self:GetParent()
            ct.discard = true
            ct:Hide()
          </OnFinished>
        </Scripts>
      </AnimationGroup>
      <AnimationGroup name="$parent_FadeAway" parentKey="slide" ignoreFramerateThrottle="true">
        <Translation parentArray="translation" offsetX="0" offsetY="300" duration="3" order="1" />
        <Alpha parentArray="alpha" change="-1" startDelay="2.25" duration="0.75" order="1" />
        <Scripts>
          <OnPlay>
            self:GetParent():Show()
          </OnPlay>
          <OnStop>
            local ct = self:GetParent()
            ct.discard = true
            ct:Hide()
          </OnStop>
          <OnFinished>
            local ct = self:GetParent()
            ct.discard = true
            ct:Hide()
          </OnFinished>
        </Scripts>
      </AnimationGroup>
      <AnimationGroup name="$parent_SideAway" parentKey="lateralSlide" ignoreFramerateThrottle="true">
        <Translation parentArray="translation" offsetX="300" offsetY="0" duration="3" order="1" />
        <Alpha parentArray="alpha" change="-1" startDelay="2.25" duration="0.75" order="1" />
        <Scripts>
          <OnPlay>
            self:GetParent():Show()
          </OnPlay>
          <OnStop>
            local ct = self:GetParent()
            ct.discard = true
            ct:Hide()
          </OnStop>
          <OnFinished>
            local ct = self:GetParent()
            ct.discard = true
            ct:Hide()
          </OnFinished>
        </Scripts>
      </AnimationGroup>
    </Animations>
  </Frame>

  <Frame name="TurokSCTAnchorTemplate" parent="UIParent" virtual="true" movable="true" resizable="true">
    <ResizeBounds>
      <minResize x="40" y="40" />
      <maxResize x="1900" y="1200" />
    </ResizeBounds>
    <Scripts>
      <OnLoad>
      </OnLoad>
      <OnMouseDown>
        if button ~= 'LeftButton' then
          return
        end

        print(self.sizer:GetCenter(), self.sizer:IsMouseOver())
        if self.sizer:IsMouseOver() then
          self:StartSizing()
        else
          self:StartMoving()
        end
        self:SetScript('OnUpdate', function()
          self.configHeader:SetText(self.name .."\n"
              ..math.floor(self:GetWidth())..' x '..math.floor(self:GetHeight()).."\n("
              ..math.floor(self:GetLeft())..', '.. math.floor(self:GetTop())..')')
          print('hammer')
        end)
      </OnMouseDown>
      <OnMouseUp>
        if button ~= 'LeftButton' then
          return
        end
        self:SetScript('OnUpdate', nil)
        print('stop')
        self:StopMovingOrSizing()
      </OnMouseUp>
    </Scripts>
    <Anchors>
      <Anchor point="CENTER" relativeTo="UIParent" />
    </Anchors>
    <Size x="400" y="500" />
    <Layers>
      <Layer level="BACKGROUND">
        <Texture setAllPoints="true" parentArray="configRegions" hidden="true">
          <Color r="0" g="0" b="0" a="1" />
        </Texture>
      </Layer>
      <Layer level="OVERLAY">
        <FontString parentArray="configRegions" parentKey="configHeader" inherits="TurokFontDetail" text="configHeader" hidden="true">
          <Anchors>
            <Anchor point="CENTER" />
          </Anchors>
        </FontString>
      </Layer>
      <Layer level="HIGHLIGHT">
        <Texture parentArray="configRegions" parentKey="sizer" hidden="true">
          <Size x="24" y="24" />
          <Color r="1" g="1" b="1" a="1" />
          <Anchors>
            <Anchor point="BOTTOMRIGHT" />
          </Anchors>
        </Texture>
      </Layer>
    </Layers>
  </Frame>

  <Frame name="TkDotBarTemplate" virtual="true">
    <Size x="120" y="16" />
    <Layers>
      <Layer level="BACKGROUND">
        <Texture name="$parentBackground" parentKey="background" setAllPoint="true">
          <Color a="1" r="0" b="0" g="0" />
        </Texture>
      </Layer>
      <Layer level="ARTWORK">
        <Texture name="$parentForeground" parentKey="foreground">
          <Color a="1" r="1" b="1" g="0" />
        </Texture>
      </Layer>
    </Layers>
  </Frame>

  <Frame name="TkCombatLogTemplate" parent="UIParent" virtual="true">
    <Scripts>
      <OnLoad>
        print('Layout', self:GetName(), 'has arrived.')
      </OnLoad>
      <OnHide>
        print('Layout', self:GetName(), ' hidden.')
      </OnHide>
    </Scripts>
    <Frames>
      <ScrollingMessageFrame>

      </ScrollingMessageFrame>
    </Frames>
  </Frame>
</Ui>