annotate Turok/Layout/Dialog.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 9400a0ff8540
children
rev   line source
Nenue@6 1 <Ui>
Nenue@6 2 <!-- Visual element structures for configuration interfaces -->
Nenue@6 3 <Script file="Dialog.lua" />
Nenue@6 4 <Font name="TkDialogFieldFont" font="Interface\Addons\Turok\Media\font\ArchivoNarrow-Bold.ttf" outline="NORMAL">
Nenue@6 5 <Color r="1" g="1" b="1" a="1" />
Nenue@6 6 <FontHeight>
Nenue@6 7 <AbsValue val="13"/>
Nenue@6 8 </FontHeight>
Nenue@6 9 </Font>
Nenue@6 10
Nenue@6 11
Nenue@6 12 <Button name="TurokButton" virtual="true" parentArray="buttons" enableMouse="true">
Nenue@6 13 <Scripts>
Nenue@6 14 <OnShow>
Nenue@6 15 self:RegisterForClicks("LeftButtonUp")
Nenue@6 16 self.bname:SetText(self:GetName():match("_(%a+)$"))
Nenue@6 17 </OnShow>
Nenue@6 18 <OnClick>
Nenue@6 19 self:GetParent().Click(self, self:GetParent())
Nenue@6 20 </OnClick>
Nenue@6 21 </Scripts>
Nenue@6 22 <NormalTexture setAllPoints="true">
Nenue@6 23 <Color r="0" g="0" b="0" a="1" />
Nenue@6 24 </NormalTexture>
Nenue@6 25 <PushedTexture setAllPoints="true" alphaMode="ADD">
Nenue@6 26 <Color r="1" g="0.5" b="0" a="1" />
Nenue@6 27 </PushedTexture>
Nenue@6 28 <HighlightTexture setAllPoints="true" alphaMode="ADD">
Nenue@6 29 <Color r="0.5" g="0.1" b=".4" a="1" />
Nenue@6 30 </HighlightTexture>
Nenue@6 31 <DisabledTexture setAllPoints="true">
Nenue@6 32 <Color r="0.4" g="0.4" b="0.4" a="1" />
Nenue@6 33 </DisabledTexture>
Nenue@6 34 <Size x="100" y="20" />
Nenue@6 35 <Layers>
Nenue@6 36 <Layer level="BACKDROP">
Nenue@6 37 </Layer>
Nenue@6 38 <Layer level="OVERLAY">
Nenue@6 39 <FontString inherits="TurokFont" parentKey="bname" justifyH="CENTER" justifyV="MIDDLE" setAllPoints="true" text="Foo" />
Nenue@6 40 </Layer>
Nenue@6 41 <Layer level="HIGHLIGHT">
Nenue@6 42 </Layer>
Nenue@6 43 </Layers>
Nenue@6 44 </Button>
Nenue@6 45
Nenue@6 46 <Frame name="TurokDialogMenu" parent="UIParent" enableMouse="true" hidden="true">
Nenue@6 47 <Size x="200" y="200" />
Nenue@6 48 <Anchors>
Nenue@6 49 <Anchor point="TOPLEFT" />
Nenue@6 50 </Anchors>
Nenue@6 51 <Layers>
Nenue@6 52 <Layer level="BACKGROUND">
Nenue@6 53 <Texture setAllPoints="true">
Nenue@6 54 <Color r="0" g="0" b="0" a="0.2" />
Nenue@6 55 </Texture>
Nenue@6 56 </Layer>
Nenue@6 57 </Layers>
Nenue@6 58 </Frame>
Nenue@6 59
Nenue@6 60 <CheckButton name="TurokCheckButton" virtual="true" enableMouse="true">
Nenue@6 61 <Scripts>
Nenue@6 62 <OnClick>
Nenue@6 63 if self:GetParent().Check then
Nenue@6 64 self:GetParent().Check(self, self:GetParent())
Nenue@6 65 else
Nenue@6 66 self:GetParent():GetParent().Check(self, self:GetParent(), self:GetParent():GetParent())
Nenue@6 67 end
Nenue@6 68 </OnClick>
Nenue@6 69 </Scripts>
Nenue@6 70 <NormalTexture>
Nenue@6 71 <Color r="0.3" g="0.05" b="0.6" a="1" />
Nenue@6 72 <Size x="16" y="16" />
Nenue@6 73 <Anchors>
Nenue@6 74 <Anchor point="TOPLEFT" x="2" y="-2" />
Nenue@6 75 </Anchors>
Nenue@6 76 </NormalTexture>
Nenue@6 77 <PushedTexture>
Nenue@6 78 <Color r="0" g="0" b="0" a="1" />
Nenue@6 79 <Size x="16" y="16" />
Nenue@6 80 <Anchors>
Nenue@6 81 <Anchor point="TOPLEFT" x="2" y="-2" />
Nenue@6 82 </Anchors>
Nenue@6 83 </PushedTexture>
Nenue@6 84 <HighlightTexture>
Nenue@6 85 <Color r="1" g="0" b="0" a="0.1" />
Nenue@6 86 <Size x="16" y="16" />
Nenue@6 87 <Anchors>
Nenue@6 88 <Anchor point="TOPLEFT" x="2" y="-2" />
Nenue@6 89 </Anchors>
Nenue@6 90 </HighlightTexture>
Nenue@6 91 <CheckedTexture>
Nenue@6 92 <Color r="1" g="1" b="0.5" a="1" />
Nenue@6 93 <Size x="16" y="16" />
Nenue@6 94 <Anchors>
Nenue@6 95 <Anchor point="TOPLEFT" x="2" y="-2" />
Nenue@6 96 </Anchors>
Nenue@6 97 </CheckedTexture>
Nenue@6 98
Nenue@6 99 <DisabledCheckedTexture>
Nenue@6 100 <Color r="0.7" g=".7" b=".7" a="1" />
Nenue@6 101 <Size x="18" y="18" />
Nenue@6 102 <Anchor point="TOPLEFT" />
Nenue@6 103 </DisabledCheckedTexture>
Nenue@6 104 </CheckButton>
Nenue@6 105
Nenue@6 106 <CheckButton name="TurokCheckButtonInline" inherits="TurokCheckButton" virtual="true" enableMouse="true">
Nenue@6 107 <Size x="20" y="20" />
Nenue@6 108 <Layers>
Nenue@6 109 <Layer level="BORDER">
Nenue@6 110 <Texture name="$parentBorder">
Nenue@6 111 <Anchors>
Nenue@6 112 <Anchor point="TOPLEFT" x="1" y="-1" />
Nenue@6 113 <Anchor point="BOTTOMRIGHT" x="-1" y="1" />
Nenue@6 114 </Anchors>
Nenue@6 115 <Size x="18" y="18" />
Nenue@6 116 <Color r="1" g="1" b="1" a="1" />
Nenue@6 117 <Gradient>
Nenue@6 118 <MinColor r="1" g="0" b=".5" a="1" />
Nenue@6 119 <MaxColor r="0.5" g="0.9" b="1" a="1" />
Nenue@6 120 </Gradient>
Nenue@6 121 </Texture>
Nenue@6 122 </Layer>
Nenue@6 123 <Layer level="OVERLAY">
Nenue@6 124 <FontString name="$parentDescText" inherits="TurokFontDetail" justifyH="LEFT" parentKey="description" text="Inline CheckButton">
Nenue@6 125 <Anchors>
Nenue@6 126 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="4" y="-3" />
Nenue@6 127 </Anchors>
Nenue@6 128 </FontString>
Nenue@6 129 </Layer>
Nenue@6 130 </Layers>
Nenue@6 131 </CheckButton>
Nenue@6 132
Nenue@6 133 <!-- CheckButton designed to collapse on top of an EditBox -->
Nenue@6 134 <CheckButton name="TurokCheckButtonOverlay" inherits="TurokCheckButton" virtual="true" enableMouse="true" frameStrata="HIGH">
Nenue@6 135 <Size x="20" y="48" />
Nenue@6 136 <Layers>
Nenue@6 137 <Layer level="BORDER">
Nenue@6 138 <Texture name="$parentBorder">
Nenue@6 139 <Size x="18" y="18" />
Nenue@6 140 <Anchors>
Nenue@6 141 <Anchor point="TOPLEFT" x="1" y="-1" />
Nenue@6 142 </Anchors>
Nenue@6 143 <Color r="1" g="1" b="1" a="1" />
Nenue@6 144 <Gradient>
Nenue@6 145 <MinColor r="1" g="0" b=".5" a="1" />
Nenue@6 146 <MaxColor r="0.5" g="0.9" b="1" a="1" />
Nenue@6 147 </Gradient>
Nenue@6 148 </Texture>
Nenue@6 149 </Layer>
Nenue@6 150 <Layer level="OVERLAY">
Nenue@6 151 <FontString name="$parentDescText" inherits="TurokFontDetail" justifyH="LEFT" parentKey="description" text="Overlay CheckButton">
Nenue@6 152 <Anchors>
Nenue@6 153 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="4" y="-3" />
Nenue@6 154 </Anchors>
Nenue@6 155 </FontString>
Nenue@6 156 </Layer>
Nenue@6 157 </Layers>
Nenue@6 158 </CheckButton>
Nenue@6 159
Nenue@6 160 <Frame name="TurokDialogFrame" parent="UIParent" enableMouse="true" hidden="true" movable="true" virtual="true" toplevel="true" mouseWheel="true">
Nenue@6 161 <Scripts>
Nenue@6 162 <OnShow>
Nenue@6 163 for i, g in pairs({self:GetChildren()}) do
Nenue@6 164 g:Show()
Nenue@6 165 end
Nenue@6 166 self:RegisterForDrag("LeftButton")
Nenue@6 167 </OnShow>
Nenue@6 168 <OnDragStart>
Nenue@6 169 self:StartMoving()
Nenue@6 170 </OnDragStart>
Nenue@6 171 <OnDragStop>
Nenue@6 172 self:StopMovingOrSizing()
Nenue@6 173 </OnDragStop>
Nenue@6 174 <OnMouseWheel>
Nenue@6 175 self:Wheel(delta)
Nenue@6 176 </OnMouseWheel>
Nenue@6 177 </Scripts>
Nenue@6 178 <Anchors>
Nenue@6 179 <Anchor point="CENTER" />
Nenue@6 180 </Anchors>
Nenue@6 181 <Size x="300" y="200" />
Nenue@6 182 <Layers>
Nenue@6 183 <Layer level="BACKGROUND">
Nenue@6 184 <Texture setAllPoints="true" blendMode="ADD">
Nenue@6 185 <Color r="1" b="1" g="1" a="1" />
Nenue@6 186 <Gradient orientation="HORIZONTAL">
Nenue@6 187 <MinColor r="1" g="0" b="0.5" a="0.5" />
Nenue@6 188 <MaxColor r="1" g=".5" b="0" a="0.5" />
Nenue@6 189 </Gradient>
Nenue@6 190 </Texture>
Nenue@6 191 <Texture blendMode="ADD" parentKey="controls">
Nenue@6 192 <Anchors>
Nenue@6 193 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" />
Nenue@6 194 <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT" />
Nenue@6 195 </Anchors>
Nenue@6 196 <Color r="1" b="1" g="1" a="1" />
Nenue@6 197 <Gradient orientation="HORIZONTAL">
Nenue@6 198 <MinColor r=".4" g=".4" b="1" a="1" />
Nenue@6 199 <MaxColor r="1" g="0" b=".5" a="1" />
Nenue@6 200 </Gradient>
Nenue@6 201 </Texture>
Nenue@6 202 </Layer>
Nenue@6 203 <Layer level="BORDER">
Nenue@6 204 <Texture blendMode="BLEND">
Nenue@6 205 <Color r="0" g="0" b="0" a="1" />
Nenue@6 206 <Anchors>
Nenue@6 207 <Anchor point="TOPLEFT" />
Nenue@6 208 <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" x="0" y="-25" />
Nenue@6 209 </Anchors>
Nenue@6 210 </Texture>
Nenue@6 211 </Layer>
Nenue@6 212 <Layer level="OVERLAY">
Nenue@6 213 <FontString name="$parentTitle" parentKey="name" inherits="TurokFont" justifyV="TOP" justifyH="LEFT" text="Set Title!">
Nenue@6 214 <Color r="1" g="1" b="1" a="1" />
Nenue@6 215 <Anchors>
Nenue@6 216 <Anchor point="TOPLEFT" x="5" y="-5" />
Nenue@6 217 </Anchors>
Nenue@6 218 <Size x="200" y="40" />
Nenue@6 219 </FontString>
Nenue@6 220 <FontString name="$parentTitle" parentKey="pagenum" inherits="TurokFont" justifyV="TOP" justifyH="RIGHT">
Nenue@6 221 <Color r="1" g="1" b="1" a="1" />
Nenue@6 222 <Anchors>
Nenue@6 223 <Anchor point="TOPRIGHT" x="-25" y="-5" />
Nenue@6 224 </Anchors>
Nenue@6 225 </FontString>
Nenue@6 226 </Layer>
Nenue@6 227 </Layers>
Nenue@6 228 <Frames>
Nenue@6 229
Nenue@6 230 <Button name="$parentButton_Close" inherits="UIPanelCloseButton">
Nenue@6 231 <Size x="30" y="30" />
Nenue@6 232 <Anchors>
Nenue@6 233 <Anchor point="TOPRIGHT" x="3" y="3" />
Nenue@6 234 </Anchors>
Nenue@6 235 </Button>
Nenue@6 236 </Frames>
Nenue@6 237 </Frame>
Nenue@6 238
Nenue@6 239 <!-- LIST FRAME OVERHEAD -->
Nenue@6 240 <Frame name="TurokListFrame" inherits="TurokDialogFrame" virtual="true">
Nenue@6 241 <Frames>
Nenue@6 242 <Button name="$parentButton_Prev" inherits="TurokButton" />
Nenue@6 243 <Button name="$parentButton_Add" inherits="TurokButton" />
Nenue@6 244 <Button name="$parentButton_Next" inherits="TurokButton" />
Nenue@6 245 </Frames>
Nenue@6 246 </Frame>
Nenue@6 247
Nenue@6 248 <!-- LIST FRAME ROW -->
Nenue@6 249 <Frame name="TurokListItem" parent="UIParent" parentArray="tabs" enableMouse="true" hidden="true" virtual="true">
Nenue@6 250 <Scripts>
Nenue@6 251 <OnEnter>
Nenue@6 252 GameTooltip:SetOwner(self, "ANCHOR_LEFT");
Nenue@6 253 if self.spellID then
Nenue@6 254 GameTooltip:SetSpellByID(self.spellID);
Nenue@6 255 else
Nenue@6 256 GameTooltip:SetText(self.desc)
Nenue@6 257 end
Nenue@6 258 GameTooltip:Show();
Nenue@6 259 </OnEnter>
Nenue@6 260 <OnLeave function="GameTooltip_Hide"/>
Nenue@6 261 </Scripts>
Nenue@6 262 <Size x="300" y="30" />
Nenue@6 263 <Layers>
Nenue@6 264 <Layer level="BACKGROUND">
Nenue@6 265 <Texture parentKey="background" name="$parentTab" blendMode="BLEND">
Nenue@6 266 <Size x="50" y="21" />
Nenue@6 267 <Color r="0" g="0" b="0" a=".3" />
Nenue@6 268 <Anchors>
Nenue@6 269 <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentTab" />
Nenue@6 270 </Anchors>
Nenue@6 271 </Texture>
Nenue@6 272 </Layer>
Nenue@6 273 <Layer level="HIGHLIGHT">
Nenue@6 274 <Texture name="$parent_Highlight" parentKey="highlight" selAllPoints="true" blendMode="ADD">
Nenue@6 275 <Color r="1" g="1" b="1" a=".25" />
Nenue@6 276 </Texture>
Nenue@6 277 </Layer>
Nenue@6 278
Nenue@6 279 <Layer level="OVERLAY">
Nenue@6 280 </Layer>
Nenue@6 281 </Layers>
Nenue@6 282 </Frame>
Nenue@6 283
Nenue@6 284 <Frame name="TkWidgetScripts" virtual="true">
Nenue@6 285 <Scripts>
Nenue@6 286 <OnValueChanged>
Nenue@6 287 if self.value then
Nenue@6 288 self.value:SetText(tostring(math.floor(value)))
Nenue@6 289 self.value:SetPoint('LEFT', self:GetThumbTexture(), 'LEFT', 1, 0)
Nenue@6 290 end
Nenue@6 291 </OnValueChanged>
Nenue@6 292 </Scripts>
Nenue@6 293 </Frame>
Nenue@6 294
Nenue@6 295 <Slider name="TkSlider" orientation="HORIZONTAL" enableMouse="true"
Nenue@6 296 parentArray="_scroller"
Nenue@6 297 minValue="0" maxValue="800" valueStep="4" stepsPerPage="3" defaultValue="400" inherits="TkWidgetScripts" virtual="true">
Nenue@6 298 <HitRectInsets left="0" right="0" bottom="0" top="0" />
Nenue@6 299 <Anchors><Anchor point="CENTER" /></Anchors>
Nenue@6 300 <Size x="350" y="30" />
Nenue@6 301 <ThumbTexture parentKey="thumb" name="$parentThumb">
Nenue@6 302 <Color r="1" g=".45" b="0" a="1" />
Nenue@6 303 <Size x="30" y="30" />
Nenue@6 304 <Anchors>
Nenue@6 305 <Anchor point="BOTTOM" />
Nenue@6 306 </Anchors>
Nenue@6 307 </ThumbTexture>
Nenue@6 308 <Layers>
Nenue@6 309 <Layer level="BACKGROUND">
Nenue@6 310 <Texture parentKey="background">
Nenue@6 311 <Color r="0" g="0" b="0" a="0.5" />
Nenue@6 312 <Anchors>
Nenue@6 313 <Anchor point="TOPLEFT" x="0" y="-16" />
Nenue@6 314 <Anchor point="BOTTOMRIGHT" x="0" y="0" />
Nenue@6 315 </Anchors>
Nenue@6 316 </Texture>
Nenue@6 317 </Layer>
Nenue@6 318 <Layer level="OVERLAY">
Nenue@6 319 <FontString parentKey="value" inherits="TurokFontDetail" />
Nenue@6 320 <FontString parentkey="name" inherits="TurokFont">
Nenue@6 321 <Anchors>
Nenue@6 322 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" />
Nenue@6 323 </Anchors>
Nenue@6 324 </FontString>
Nenue@6 325 </Layer>
Nenue@6 326 <Layer level="HIGHLIGHT">
Nenue@6 327
Nenue@6 328 <Texture alphaMode="MOD">
Nenue@6 329 <Anchors>
Nenue@6 330 <Anchor point="TOPLEFT" x="0" y="-16" />
Nenue@6 331 <Anchor point="BOTTOMRIGHT" x="0" y="0" />
Nenue@6 332 </Anchors>
Nenue@6 333 <Color r="0.5" b="0.5" g="0.5" a="0.25" />
Nenue@6 334 </Texture>
Nenue@6 335 </Layer>
Nenue@6 336 </Layers>
Nenue@6 337 </Slider>
Nenue@6 338
Nenue@6 339
Nenue@6 340 <EditBox name="TkEditBox" font="TurokFont" inherits="TkWidgetScripts" virtual="true"
Nenue@6 341 historyLines="3"
Nenue@6 342 autoFocus="false"
Nenue@6 343 parentArray="_inputs">
Nenue@6 344 <Backdrop bgFile="Interface\Addons\Turok\Media\border\BG-Solid.blp" edgeFile="Interface\Addons\Turok\Media\border\BigBorder-Solid.blp" tile="true">
Nenue@6 345 <EdgeSize val="12"/>
Nenue@6 346 <TileSize val="12"/>
Nenue@6 347 <BorderColor r="0" g="0" b="0" a="1" />
Nenue@6 348 <Color r="1" g="1" b="1" a="1" />
Nenue@6 349 <BackgroundInsets>
Nenue@6 350 <AbsInset left="3" right="3" top="3" bottom="3"/>
Nenue@6 351 </BackgroundInsets>
Nenue@6 352 </Backdrop>
Nenue@6 353 <Scripts>
Nenue@6 354 <OnEscapePressed>
Nenue@6 355 self:ClearFocus()
Nenue@6 356 </OnEscapePressed>
Nenue@6 357 <OnEnterPressed>
Nenue@6 358 self:ClearFocus()
Nenue@6 359 </OnEnterPressed>
Nenue@6 360 <OnEditFocusGained>
Nenue@6 361 print(self:GetName(),'gained focus')
Nenue@6 362 self.__bg = {self.background:GetTexture()}
Nenue@6 363 self.background:SetTexture(0,0,0,1)
Nenue@6 364 </OnEditFocusGained>
Nenue@6 365 <OnEditFocusLost>
Nenue@6 366 print(self:GetName(),'lost focus')
Nenue@6 367 self:GetParent():GetParent().EditBox(self)
Nenue@6 368 self.background:SetTexture(unpack(self.__bg))
Nenue@6 369 self.__bg = nil
Nenue@6 370 </OnEditFocusLost>
Nenue@6 371 </Scripts>
Nenue@6 372 <Size x="350" y="48" />
Nenue@6 373 <TextInsets>
Nenue@6 374 <AbsInset left="4" top="22" right="4" bottom="0" />
Nenue@6 375 </TextInsets>
Nenue@6 376 <Layers>
Nenue@6 377 <Layer level="BACKGROUND">
Nenue@6 378 <Texture parentKey="border" alphaMode="MOD">
Nenue@6 379 <Anchors>
Nenue@6 380 <Anchor point="BOTTOMLEFT" x="3" y="3" />
Nenue@6 381 <Anchor point="TOPRIGHT" x="-3" y="-3" />
Nenue@6 382 </Anchors>
Nenue@6 383 <Color r="1" g="1" b="1" a="1" />
Nenue@6 384 <Gradient orientation="HORIZONTAL">
Nenue@6 385 <MinColor r="0.4" g="0" b="0.2" a="1" />
Nenue@6 386 <MaxColor r="1" g="0.35" b="0.15" a="1" />
Nenue@6 387 </Gradient>
Nenue@6 388 </Texture>
Nenue@6 389 </Layer>
Nenue@6 390 <Layer level="BORDER">
Nenue@6 391 <Texture parentKey="background">
Nenue@6 392 <Color r="0" g="0" b="0" a="0.5" />
Nenue@6 393 <Anchors>
Nenue@6 394 <Anchor point="TOPLEFT" x="3" y="-22" />
Nenue@6 395 <Anchor point="BOTTOMRIGHT" x="-3" y="3" />
Nenue@6 396 </Anchors>
Nenue@6 397 </Texture>
Nenue@6 398 </Layer>
Nenue@6 399 <Layer level="OVERLAY">
Nenue@6 400 <FontString parentkey="description" inherits="TkDialogFieldFont" justifyV="TOP" justifyH="LEFT">
Nenue@6 401 <Anchors>
Nenue@6 402 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="5" y="-6" />
Nenue@6 403 </Anchors>
Nenue@6 404 </FontString>
Nenue@6 405 </Layer>
Nenue@6 406 </Layers>
Nenue@6 407 </EditBox>
Nenue@6 408
Nenue@6 409
Nenue@6 410 <Button name="TurokDDButton" inherits="TurokButton" parent="UIParent" enableMouse="true" virtual="true">
Nenue@6 411 <NormalTexture setAllPoints="true">
Nenue@6 412 <Color r=".35" g="0" b=".7" a="1" />
Nenue@6 413 </NormalTexture>
Nenue@6 414 </Button>
Nenue@6 415
Nenue@6 416 <Frame name="TurokDialogRow" enableMouse="true" hidden="true" movable="true" virtual="true" toplevel="true" mouseWheel="true">
Nenue@6 417 <Size x="200" y="42" />
Nenue@6 418 </Frame>
Nenue@6 419
Nenue@6 420 <!-- TIMER EDIT FRAME -->
Nenue@6 421 <Frame name="TkTimerConfig" parent="UIParent" hidden="true" inherits="TurokDialogFrame">
Nenue@6 422 <Scripts>
Nenue@6 423 <OnLoad>
Nenue@6 424 self.Wheel = function(self, delta) print(self:GetName(), 'wheel stuff')
Nenue@6 425 if self._scroller then
Nenue@6 426 for i, region in ipairs(self._scroller) do
Nenue@6 427 if region:IsMouseOver() then
Nenue@6 428 print(self:GetName(),'hit #', i, region:GetName())
Nenue@6 429 region:SetValue(region:GetValue()+delta)
Nenue@6 430 end
Nenue@6 431 end
Nenue@6 432 else
Nenue@6 433 print(self:GetName(),'no scrollwheel regions')
Nenue@6 434 end
Nenue@6 435 end
Nenue@6 436
Nenue@6 437 LibStub("LibFog-1.0").SetAnimationGroup(self)
Nenue@6 438 -- Turok stuff
Nenue@6 439 </OnLoad>
Nenue@6 440 <OnShow>
Nenue@6 441 TkPanel_Init(self)
Nenue@6 442 self:RegisterForDrag("LeftButton")
Nenue@6 443 self.name:SetText(self.timerName)
Nenue@6 444 self.pagenum:SetText(self.timerID)
Nenue@6 445 self:SetAlpha(0)
Nenue@6 446 self:Fade(0.2, 1)
Nenue@6 447 </OnShow>
Nenue@6 448 </Scripts>
Nenue@6 449 <Size x="400" y="300" />
Nenue@6 450 <Anchors>
Nenue@6 451 <Anchor point="CENTER" />
Nenue@6 452 </Anchors>
Nenue@6 453 <Frames>
Nenue@6 454
Nenue@6 455
Nenue@6 456 <Button name="$parentButton_Spells" inherits="TurokButton" />
Nenue@6 457 <Button name="$parentButton_Move" inherits="TurokButton" />
Nenue@6 458 <Button name="$parentButton_Delete" inherits="TurokButton" />
Nenue@6 459 </Frames>
Nenue@6 460 </Frame>
Nenue@6 461 </Ui>