changeset 39:1aaec7cefc7a

even more logjam cleaning
author Nenue
date Tue, 16 Aug 2016 10:29:26 -0400
parents 93e2a51b3a52
children b5d462458850
files LibKraken/LibKraken.xml
diffstat 1 files changed, 218 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LibKraken/LibKraken.xml	Tue Aug 16 10:29:26 2016 -0400
@@ -0,0 +1,218 @@
+<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="LibKraken-1.0.lua" />
+
+  <Font name="KTLogString" font="Fonts\ARIALN.TTF" height="14" justifyH="LEFT" justifyV="TOP" inherits="NumberFontNormal" virtual="true">
+    <Color a="1" r="1" g="1" b="1" />
+  </Font>
+
+  <Font name="KTHeaderFont" height="18" font="Fonts\skurri.ttf" outline="NORMAL" justifyH="LEFT" justifyV="TOP" virtual="true" />
+  <Font name="KTHeader2Font" height="14" font="Fonts\skurri.ttf" outline="NORMAL" justifyH="LEFT" justifyV="TOP" virtual="true" />
+  <Font name="KTUIPanelFont" justifyH="LEFT" virtual="true"  inherits="NumberFontNormal"  />
+  <Font name="KTMacroButtonFont" height="12" font="Fonts\ARIALN.TTF" justifyH="LEFT" virtual="true" >
+    <Color a="1" r="1" g="1" b="1" />
+  </Font>
+
+
+  <Button name="KTButton" parentArray="controls" virtual="true">
+    <Size x="72" y="28" />
+    <Scripts>
+      <OnEnter>
+        if self.tooltip then
+          GameTooltip:SetOwner(self)
+          GameTooltip:SetAnchorType('ANCHOR_TOPRIGHT')
+          GameTooltip:SetText(self.tooltip)
+          GameTooltip:Show()
+        end
+      </OnEnter>
+      <OnLeave>
+        GameTooltip:Hide()
+      </OnLeave>
+    </Scripts>
+    <NormalFont style="NumberFontNormal" />
+    <NormalTexture setAllPoints="true">
+      <Color a="1" r="0" g=".4" b="1" />
+    </NormalTexture>
+    <DisabledTexture>
+      <Color a="1" r="0.5" b="0.5" g="0.5" />
+    </DisabledTexture>
+    <DisabledColor a="0.5" r="1" g="1" b="1" />
+    <PushedTexture>
+      <Color a="1" r="1" g="0.25" b="0.25" />
+    </PushedTexture>
+    <HighlightTexture alphaMode="ADD">
+      <Color a="0.25" r="1" g="0" b=".5" />
+    </HighlightTexture>
+  </Button>
+
+  <!-- style for Blizzard UIPanel activators
+    // The template anchor gets overwritten for successive iterations -->
+  <Button name="KTUIPanelButton" virtual="true" parentArray="UIPanels">
+    <Size x="84" y="24" />
+    <Scripts>
+      <OnEnter>
+        if self.tooltip then
+          GameTooltip:SetOwner(self)
+          GameTooltip:SetAnchorType('ANCHOR_TOPRIGHT')
+          GameTooltip:SetText(self.tooltip)
+          GameTooltip:Show()
+        end
+      </OnEnter>
+      <OnLeave>
+        GameTooltip:Hide()
+      </OnLeave>
+    </Scripts>
+    <Layers>
+      <Layer level="OVERLAY">
+        <Texture parentKey="icon" />
+      </Layer>
+    </Layers>
+
+    <ButtonText>
+      <Anchors>
+        <Anchor point="LEFT" x="14" y="0" />
+      </Anchors>
+    </ButtonText>
+
+    <NormalFont style="KTUIPanelFont" />
+    <NormalTexture>
+      <Color a="1" r=".24" g=".24" b=".24" />
+    </NormalTexture>
+    <PushedTexture>
+      <Color a="1" r="0" g="0" b="0" />
+    </PushedTexture>
+    <HighlightTexture alphaMode="ADD">
+      <Size x="32" />
+      <Color a="1" r="1" g="1" b="1" />
+      <Gradient orientation="HORIZONTAL">
+        <MaxColor r=".25" g=".25" b=".25"/>
+        <MinColor  r="0" g="0" b="0" />
+      </Gradient>
+    </HighlightTexture>
+
+  </Button>
+
+  <Button name="KTTabButton" virtual="true" parentArray="tabButtons">
+    <Scripts>
+      <OnEnter>
+
+        if not self.tooltip then
+          return
+        end
+        GameTooltip:SetOwner(self)
+        GameTooltip:SetAnchorType('LEFT')
+        GameTooltip:SetText(self.tooltip)
+        GameTooltip:Show()
+      </OnEnter>
+      <OnLeave>
+
+        if not self.tooltip then
+          return
+        end
+        GameTooltip:Hide()
+      </OnLeave>
+    </Scripts>
+    <Size x="40" y="40" />
+    <Layers>
+      <Layer level="BACKGROUND">
+        </Layer>
+      <Layer level="BORDER">
+        <Texture parentKey="icon">
+          <Color a="1" r="1" g="0" b="0" />
+          <Anchors>
+            <Anchor point="TOPLEFT" x="2" y="-2"/>
+            <Anchor point="BOTTOMRIGHT" x="-2" y="2"/>
+          </Anchors>
+        </Texture>
+      </Layer>
+      <Layer level="ARTWORK">
+      </Layer>
+    </Layers>
+
+    <NormalTexture name="$parentNormalTexture" file="Interface\Buttons\UI-Quickslot2">
+      <Anchors>
+        <Anchor point="TOPLEFT" x="-12" y="12"/>
+        <Anchor point="BOTTOMRIGHT" x="13" y="-13"/>
+      </Anchors>
+    </NormalTexture>
+    <PushedTexture file="Interface\Buttons\UI-Quickslot-Depress"/>
+    <HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
+  </Button>
+
+  <!-- inherited to generate event feedback -->
+  <Frame name="KTDebugTemplate" virtual="true">
+    <Layers>
+      <Layer level="OVERLAY">
+        <FontString inherits="GameFontNormal" parentKey="status" text="text thing here">
+          <Anchors>
+            <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" />
+          </Anchors>
+        </FontString>
+        <FontString inherits="KTLogString" parentKey="logfirst" text="First">
+          <Anchors>
+            <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" x="0" y="0" relativeKey="$parent.status" />
+          </Anchors>
+        </FontString>
+        <FontString inherits="KTLogString" parentKey="logdiff" text="Different">
+          <Anchors>
+            <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeKey="$parent.logfirst" />
+          </Anchors>
+        </FontString>
+        <FontString inherits="KTLogString" parentKey="log" text="Last">
+          <Anchors>
+            <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeKey="$parent.logdiff" />
+          </Anchors>
+        </FontString>
+      </Layer>
+    </Layers>
+  </Frame>
+
+
+
+  <Frame name="KTErrorFrame" parent="UIParent" toplevel="true" movable="true" enableMouse="true" hidden="true" clampedToScreen="true">
+    <Size x="450" y="280" />
+    <Anchors>
+      <Anchor point="CENTER" />
+    </Anchors>
+    <Scripts>
+      <OnLoad>
+        self:RegisterForDrag('LeftButton')
+      </OnLoad>
+      <OnDragStart>
+        self:StartMoving()
+      </OnDragStart>
+      <OnDragStop>
+        self:StopMovingOrSizing()
+      </OnDragStop>
+    </Scripts>
+    <Layers>
+      <Layer level="BACKGROUND">
+        <Texture setAllPoints="true">
+          <Color a="1" r="0" g="0" b="0" />
+        </Texture>
+      </Layer>
+      <Layer level="OVERLAY">
+        <FontString inherits="NumberFont_Outline_Huge" text="KrakTool Error">
+          <Anchors>
+            <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" />
+          </Anchors>
+        </FontString>
+        <FontString inherits="NumberFont_Outline_Large" parentKey="errmsg" justifyH="LEFT" spacing="3">
+          <Anchors>
+            <Anchor point="TOP" />
+            <Anchor point="LEFT" />
+            <Anchor point="RIGHT" />
+          </Anchors>
+        </FontString>
+        <FontString inherits="NumberFont_Outline_Large" parentKey="debugstack" justifyH="LEFT" spacing="3">
+          <Anchors>
+            <Anchor point="LEFT" />
+            <Anchor point="RIGHT" />
+            <Anchor point="TOP" relativePoint="BOTTOM" relativeKey="$parent.errmsg" x="0" y="-8" />
+          </Anchors>
+        </FontString>
+      </Layer>
+    </Layers>
+  </Frame>
+</Ui>
\ No newline at end of file