annotate Core.xml @ 40:03ed70f846de

- move block accessors into a new file - define a tMove function for reconciling the free/used tables as needed - when retrieving an old block frame, confirm ID still matches; resolves multiple watch items on one block - stop any animations when a block is freed; resolves stuck flare graphics
author Nenue
date Sun, 24 Apr 2016 14:15:25 -0400
parents 1f8f9cc3d956
children
rev   line source
Nenue@0 1 <Ui>
Nenue@0 2 <Font name="VeneerFont" />
Nenue@0 3
Nenue@0 4 <Font name="VeneerFont_Small" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16" />
Nenue@0 5 <Font name="VeneerFont_Large" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="24" />
Nenue@0 6
Nenue@0 7 <Font name="VeneerFontNormal" inherits="VeneerFont_Small">
Nenue@0 8 <Color r="1" g="1" b="1" a="1" />
Nenue@0 9 </Font>
Nenue@0 10
Nenue@0 11 <Font name="VeneerFontHighlight" inherits="VeneerFont_Small" outline="NORMAL">
Nenue@0 12 <Color r="0" g=".7" b="1" a="1" />
Nenue@0 13 </Font>
Nenue@0 14 <Font name="VeneerFontHighlightLarge" inherits="VeneerFont_Large">
Nenue@0 15 <Color r="0" g=".7" b="1" a="1" />
Nenue@0 16 </Font>
Nenue@0 17
Nenue@0 18 <!-- Defining here so interfaces are easy to spot -->
Nenue@0 19 <Frame name="VeneerHandlerTemplate" virtual="true">
Nenue@0 20 <KeyValues>
Nenue@0 21 </KeyValues>
Nenue@0 22 </Frame>
Nenue@0 23
Nenue@0 24
Nenue@0 25
Nenue@14 26 <Texture name="VnTestLine" virtual="true">
Nenue@14 27 <Color r="1" g="1" b="0" a="1" />
Nenue@14 28 </Texture>
Nenue@0 29
Nenue@38 30 <Font name="VeneerActionNumberFont" virtual="true" font="Interface\Addons\SharedMedia_MyMedia\font\XOIREQE.TTF" outline="NORMAL" height="15">
Nenue@38 31 <Color r="1" g="1" b="1" a="1" />
Nenue@38 32 </Font>
Nenue@38 33
Nenue@22 34 <Font name="VeneerNumberFont" virtual="true" font="Interface\Addons\SharedMedia_MyMedia\font\ArchivoNarrow-Bold.ttf" outline="NORMAL" height="13" >
Nenue@22 35 <Color r="1" g="1" b="1" a="1" />
Nenue@22 36 </Font>
Nenue@37 37 <Font name="VeneerNumberFontSmall" virtual="true" font="Interface\Addons\SharedMedia_MyMedia\font\ArchivoNarrow-Bold.ttf" outline="NORMAL" height="12" >
Nenue@34 38 <Color r="1" g="1" b="1" a="1" />
Nenue@34 39 </Font>
Nenue@21 40 <Font name="VeneerTitleFont" virtual="true" font="Interface\Addons\SharedMedia_MyMedia\font\ArchivoNarrow-Bold.ttf" outline="NORMAL" height="15" >
Nenue@21 41 <Color r="1" g="1" b="1" a="1" />
Nenue@14 42 </Font>
Nenue@0 43
Nenue@21 44 <Font name="VeneerCriteriaFontNormal" virtual="true" font="Interface\Addons\SharedMedia_MyMedia\font\ArchivoNarrow-Regular.ttf" outline="NORMAL" height="16">
Nenue@14 45 <Color r="1" g="1" b="1" a="1" />
Nenue@14 46 </Font>
Nenue@21 47 <Font name="VeneerCriteriaFontComplete" virtual="true" font="Interface\Addons\SharedMedia_MyMedia\font\ArchivoNarrow-Regular.ttf" outline="NORMAL" height="16">
Nenue@14 48 <Color r="0" g="1" b="0" a=".75" />
Nenue@14 49 </Font>
Nenue@21 50 <Font name="VeneerCriteriaFontProgressed" virtual="true" font="Interface\Addons\SharedMedia_MyMedia\font\ArchivoNarrow-Regular.ttf" outline="NORMAL" height="16">
Nenue@14 51 <Color r="1" g="1" b="0" a="1" />
Nenue@14 52 </Font>
Nenue@0 53
Nenue@21 54 <Font name="VeneerCriteriaFontFailed" virtual="true" font="Interface\Addons\SharedMedia_MyMedia\font\ArchivoNarrow-Regular.ttf" outline="NORMAL" height="16">
Nenue@14 55 <Color r="1" g=".4" b="0" a=".75" />
Nenue@14 56 </Font>
Nenue@0 57
Nenue@21 58 <Font name="VeneerStatusFont" virtual="true" font="Interface\Addons\SharedMedia_MyMedia\font\ArchivoNarrow-Regular.ttf" outline="NORMAL" height="14">
Nenue@14 59 <Color r="1" g="1" b="0" a="1" />
Nenue@14 60 </Font>
Nenue@0 61
Nenue@0 62 <FontString virtual="true" name="VeneerFieldName" parentKey="fieldname" inherits="VeneerFontHighlight" justifyV="TOP" justifyH="LEFT" />
Nenue@0 63 <FontString virtual="true" name="VeneerFieldValue" parentKey="fieldvalue" inherits="VeneerFontNormal" justifyV="TOP" justifyH="LEFT" />
Nenue@0 64 <Slider virtual="true" orientation="HORIZONTAL" name="VeneerConfigSlider">
Nenue@0 65 <Size x="250" y="18" />
Nenue@0 66 <Thumbtexture name="$parentThumb" alphaMode="BLEND" parentKey="thumb">
Nenue@0 67 <Size x="12" y="18" />
Nenue@0 68 <Color r="0.25" g="0.25" b="0.25" a="1" />
Nenue@0 69 </Thumbtexture>
Nenue@0 70 <Layers>
Nenue@0 71 <Layer level="BACKGROUND">
Nenue@0 72 <Texture>
Nenue@0 73 <Anchors>
Nenue@0 74 <Anchor point="LEFT" />
Nenue@0 75 <Anchor point="RIGHT" />
Nenue@0 76 </Anchors>
Nenue@0 77 <Size y="7" />
Nenue@0 78 <Color r="0" g="0" b="0" a="1" />
Nenue@0 79 </Texture>
Nenue@0 80
Nenue@0 81 </Layer>
Nenue@0 82 <Layer level="OVERLAY">
Nenue@0 83
Nenue@0 84
Nenue@0 85 <FontString name="$parentOptText" inherits="VeneerFieldName">
Nenue@0 86 <Anchors>
Nenue@0 87 <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" />
Nenue@0 88 </Anchors>
Nenue@0 89 </FontString>
Nenue@0 90
Nenue@0 91 <FontString name="$parentOptText" inherits="VeneerFieldValue">
Nenue@0 92 <Anchors>
Nenue@0 93 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT" x="0" y="0" />
Nenue@0 94 </Anchors>
Nenue@0 95 </FontString>
Nenue@0 96 </Layer>
Nenue@0 97 </Layers>
Nenue@0 98 <Scripts>
Nenue@0 99 <OnValueChanged>
Nenue@0 100 self:OnChange()
Nenue@0 101 </OnValueChanged>
Nenue@0 102 </Scripts>
Nenue@0 103 </Slider>
Nenue@0 104
Nenue@0 105 <CheckButton virtual="true" orientation="HORIZONTAL" name="VeneerConfigCheckButton">
Nenue@0 106 <Size x="24" y="24" />
Nenue@0 107 <NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
Nenue@0 108 <PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
Nenue@0 109 <HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
Nenue@0 110 <CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
Nenue@0 111 <Layers>
Nenue@0 112 <Layer level="BACKGROUND">
Nenue@0 113 <Texture setAllPoints="true">
Nenue@0 114 <Size y="24" />
Nenue@0 115 <Color r="0" g="0.7" b="1" a="1" />
Nenue@0 116 </Texture>
Nenue@0 117
Nenue@0 118 <FontString name="$parentOptText" inherits="VeneerFieldName" >
Nenue@0 119 <Anchors>
Nenue@0 120 <Anchor point="LEFT" relativePoint="LEFT" x="24" y="0" />
Nenue@0 121 </Anchors>
Nenue@0 122 </FontString>
Nenue@0 123
Nenue@0 124 </Layer>
Nenue@0 125 </Layers>
Nenue@0 126 <Scripts>
Nenue@0 127 <OnValueChanged>
Nenue@0 128 self:OnChange()
Nenue@0 129 </OnValueChanged>
Nenue@0 130 </Scripts>
Nenue@0 131 </CheckButton>
Nenue@0 132
Nenue@0 133
Nenue@0 134 <Button virtual="true" name="VeneerConfigColor">
Nenue@0 135 <Size x="400" y="20" />
Nenue@0 136 <Layers>
Nenue@0 137 <Layer level="BACKGROUND">
Nenue@0 138 <Texture setAllPoints="true">
Nenue@0 139 <Color r="0.15" g="0.15" b="0.15" a="0.5" />
Nenue@0 140 </Texture>
Nenue@0 141 <Texture>
Nenue@0 142 <Anchors>
Nenue@0 143 <Anchor point="BOTTOMLEFT" x="0" y="0" />
Nenue@0 144 </Anchors>
Nenue@0 145 <Size x="18" y="18" />
Nenue@0 146 <Color r="0" g="0" b="0" a="1" />
Nenue@0 147 </Texture>
Nenue@0 148 </Layer>
Nenue@0 149 <Layer level="ARTWORK">
Nenue@0 150 <Texture name="$parentCurrentColor" parentKey="current">
Nenue@0 151 <Anchors>
Nenue@0 152 <Anchor point="BOTTOMLEFT" x="1" y="1" />
Nenue@0 153 </Anchors>
Nenue@0 154 <Size x="16" y="16" />
Nenue@0 155 <Color r="1" g="1" b="1" a="1" />
Nenue@0 156 </Texture>
Nenue@0 157 </Layer>
Nenue@0 158 <Layer level="OVERLAY">
Nenue@0 159
Nenue@0 160 <FontString name="$parentOptText" inherits="VeneerFieldName">
Nenue@0 161 <Anchors>
Nenue@0 162 <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" x="0" y="0" />
Nenue@0 163 </Anchors>
Nenue@0 164 </FontString>
Nenue@0 165
Nenue@0 166 <FontString parentKey="fieldvalue" name="$parentOptText" inherits="VeneerFontNormal" text="">
Nenue@0 167 <Anchors>
Nenue@0 168 <Anchor point="CENTER" relativePoint="CENTER" relativeKey="$thumb" x="0" y="0" />
Nenue@0 169 </Anchors>
Nenue@0 170 </FontString>
Nenue@0 171
Nenue@0 172 </Layer>
Nenue@0 173 </Layers>
Nenue@0 174 </Button>
Nenue@0 175
Nenue@0 176
Nenue@3 177 <Frame name="Veneer" hidden="true" enableMouse="true" movable="true" parent="UIParent" frameStrata="DIALOG">
Nenue@0 178 <Size x="400" y="400" />
Nenue@0 179 <Anchors>
Nenue@0 180 <Anchor point="CENTER" relativePoint="CENTER" x="0" y="0" />
Nenue@0 181 </Anchors>
Nenue@0 182 <Scripts>
Nenue@0 183 <OnLoad>
Nenue@0 184 self:RegisterForDrag('LeftButton')
Nenue@0 185 </OnLoad>
Nenue@0 186 <OnDragStart>
Nenue@0 187 self:StartMoving()
Nenue@0 188 </OnDragStart>
Nenue@0 189 <OnDragStop>
Nenue@0 190 self:StopMovingOrSizing()
Nenue@0 191 </OnDragStop>
Nenue@0 192 </Scripts>
Nenue@0 193 <Layers>
Nenue@0 194 <Layer level="BACKGROUND">
Nenue@0 195 <Texture setAllPoints="true">
Nenue@0 196 <Color r="0" g="0" b="0" a="0.7" />
Nenue@0 197 </Texture>
Nenue@0 198 </Layer>
Nenue@0 199 <Layer level="ARTWORK">
Nenue@0 200 <FontString name="$parentHeader" parentKey="header" inherits="VeneerFontHighlightLarge" text="Veneer">
Nenue@0 201 <Anchors>
Nenue@0 202 <Anchor point="TOPLEFT" x="3" y="-4" />
Nenue@0 203 </Anchors>
Nenue@0 204 </FontString>
Nenue@0 205 </Layer>
Nenue@0 206 </Layers>
Nenue@0 207 <Frames>
Nenue@0 208 <Button name="$parentCloseButton" parentKey="close" text="X">
Nenue@0 209 <ButtonText inherits="SystemFont_Small" />
Nenue@0 210 <Scripts>
Nenue@0 211 <OnClick>
Nenue@0 212 self:GetParent():Close()
Nenue@0 213 </OnClick>
Nenue@0 214 </Scripts>
Nenue@0 215 <Size x="24" y="24" />
Nenue@0 216 <Anchors>
Nenue@0 217 <Anchor point="TOPRIGHT" x="-5" y="-5" />
Nenue@0 218 </Anchors>
Nenue@0 219 <NormalTexture parentKey="normal" setAllPoints="true">
Nenue@0 220 <Color a="1" r="0" g="0" b="0" />
Nenue@0 221 </NormalTexture>
Nenue@0 222 <PushedTexture setAllPoints="true">
Nenue@0 223 <Color a="1" r="1" g="0" b="0" />
Nenue@0 224 </PushedTexture>
Nenue@0 225 <HighlightTexture setAllPoints="true" alphaMode="ADD">
Nenue@0 226 <Color a=".5" r="1" g=".7" b="0.5" />
Nenue@0 227 </HighlightTexture>
Nenue@0 228 </Button>
Nenue@0 229 <Button name="$parentGuidesButton" parentKey="guides" text="Guides">
Nenue@0 230 <ButtonText inherits="SystemFont_Small" />
Nenue@0 231 <Scripts>
Nenue@0 232 <OnClick>
Nenue@0 233 self:GetParent():ToggleGuides(self)
Nenue@0 234 </OnClick>
Nenue@0 235 </Scripts>
Nenue@0 236 <Size x="36" y="24" />
Nenue@0 237 <Anchors>
Nenue@0 238 <Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentCloseButton" x="-5" y="0" />
Nenue@0 239 </Anchors>
Nenue@0 240 <NormalTexture parentKey="normal" setAllPoints="true">
Nenue@0 241 <Color a="1" r="0" g="0" b="0" />
Nenue@0 242 </NormalTexture>
Nenue@0 243 <PushedTexture setAllPoints="true">
Nenue@0 244 <Color a="1" r="1" g="0" b="0" />
Nenue@0 245 </PushedTexture>
Nenue@0 246 <HighlightTexture setAllPoints="true" alphaMode="ADD">
Nenue@0 247 <Color a=".5" r="1" g=".7" b="0.5" />
Nenue@0 248 </HighlightTexture>
Nenue@0 249 </Button>
Nenue@0 250 </Frames>
Nenue@0 251 </Frame>
Nenue@0 252
Nenue@0 253
Nenue@0 254 <Script file="Init.lua" />
Nenue@0 255 <Script file="Constants.lua" />
Nenue@0 256 <Script file="Config.lua" />
Nenue@0 257
Nenue@0 258 </Ui>