Mercurial > wow > buffalo2
view Core.xml @ 37:e84d645c8ab8
- revised the tracker update function to build its complete data list up front and use the values as points of comparison for determining possible out of place blocks, which will be iterated over afterward to remove what wasn't re-used
- also entailed revising the exact role of global event handlers and function hooks, limiting their directions of communication so one doesn't end up calling the other multiple or inifinity times
- schema handling polish
author | Nenue |
---|---|
date | Mon, 18 Apr 2016 07:56:23 -0400 |
parents | 9856ebc63fa4 |
children | 1f8f9cc3d956 |
line wrap: on
line source
<Ui> <Font name="VeneerFont" /> <Font name="VeneerFont_Small" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="16" /> <Font name="VeneerFont_Large" font="Fonts\FRIZQT__.TTF" outline="NORMAL" height="24" /> <Font name="VeneerFontNormal" inherits="VeneerFont_Small"> <Color r="1" g="1" b="1" a="1" /> </Font> <Font name="VeneerFontHighlight" inherits="VeneerFont_Small" outline="NORMAL"> <Color r="0" g=".7" b="1" a="1" /> </Font> <Font name="VeneerFontHighlightLarge" inherits="VeneerFont_Large"> <Color r="0" g=".7" b="1" a="1" /> </Font> <!-- Defining here so interfaces are easy to spot --> <Frame name="VeneerHandlerTemplate" virtual="true"> <KeyValues> </KeyValues> </Frame> <Texture name="VnTestLine" virtual="true"> <Color r="1" g="1" b="0" a="1" /> </Texture> <Font name="VeneerNumberFont" virtual="true" font="Interface\Addons\SharedMedia_MyMedia\font\ArchivoNarrow-Bold.ttf" outline="NORMAL" height="13" > <Color r="1" g="1" b="1" a="1" /> </Font> <Font name="VeneerNumberFontSmall" virtual="true" font="Interface\Addons\SharedMedia_MyMedia\font\ArchivoNarrow-Bold.ttf" outline="NORMAL" height="12" > <Color r="1" g="1" b="1" a="1" /> </Font> <Font name="VeneerTitleFont" virtual="true" font="Interface\Addons\SharedMedia_MyMedia\font\ArchivoNarrow-Bold.ttf" outline="NORMAL" height="15" > <Color r="1" g="1" b="1" a="1" /> </Font> <Font name="VeneerCriteriaFontNormal" virtual="true" font="Interface\Addons\SharedMedia_MyMedia\font\ArchivoNarrow-Regular.ttf" outline="NORMAL" height="16"> <Color r="1" g="1" b="1" a="1" /> </Font> <Font name="VeneerCriteriaFontComplete" virtual="true" font="Interface\Addons\SharedMedia_MyMedia\font\ArchivoNarrow-Regular.ttf" outline="NORMAL" height="16"> <Color r="0" g="1" b="0" a=".75" /> </Font> <Font name="VeneerCriteriaFontProgressed" virtual="true" font="Interface\Addons\SharedMedia_MyMedia\font\ArchivoNarrow-Regular.ttf" outline="NORMAL" height="16"> <Color r="1" g="1" b="0" a="1" /> </Font> <Font name="VeneerCriteriaFontFailed" virtual="true" font="Interface\Addons\SharedMedia_MyMedia\font\ArchivoNarrow-Regular.ttf" outline="NORMAL" height="16"> <Color r="1" g=".4" b="0" a=".75" /> </Font> <Font name="VeneerStatusFont" virtual="true" font="Interface\Addons\SharedMedia_MyMedia\font\ArchivoNarrow-Regular.ttf" outline="NORMAL" height="14"> <Color r="1" g="1" b="0" a="1" /> </Font> <FontString virtual="true" name="VeneerFieldName" parentKey="fieldname" inherits="VeneerFontHighlight" justifyV="TOP" justifyH="LEFT" /> <FontString virtual="true" name="VeneerFieldValue" parentKey="fieldvalue" inherits="VeneerFontNormal" justifyV="TOP" justifyH="LEFT" /> <Slider virtual="true" orientation="HORIZONTAL" name="VeneerConfigSlider"> <Size x="250" y="18" /> <Thumbtexture name="$parentThumb" alphaMode="BLEND" parentKey="thumb"> <Size x="12" y="18" /> <Color r="0.25" g="0.25" b="0.25" a="1" /> </Thumbtexture> <Layers> <Layer level="BACKGROUND"> <Texture> <Anchors> <Anchor point="LEFT" /> <Anchor point="RIGHT" /> </Anchors> <Size y="7" /> <Color r="0" g="0" b="0" a="1" /> </Texture> </Layer> <Layer level="OVERLAY"> <FontString name="$parentOptText" inherits="VeneerFieldName"> <Anchors> <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" /> </Anchors> </FontString> <FontString name="$parentOptText" inherits="VeneerFieldValue"> <Anchors> <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT" x="0" y="0" /> </Anchors> </FontString> </Layer> </Layers> <Scripts> <OnValueChanged> self:OnChange() </OnValueChanged> </Scripts> </Slider> <CheckButton virtual="true" orientation="HORIZONTAL" name="VeneerConfigCheckButton"> <Size x="24" y="24" /> <NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/> <PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/> <HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/> <CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/> <Layers> <Layer level="BACKGROUND"> <Texture setAllPoints="true"> <Size y="24" /> <Color r="0" g="0.7" b="1" a="1" /> </Texture> <FontString name="$parentOptText" inherits="VeneerFieldName" > <Anchors> <Anchor point="LEFT" relativePoint="LEFT" x="24" y="0" /> </Anchors> </FontString> </Layer> </Layers> <Scripts> <OnValueChanged> self:OnChange() </OnValueChanged> </Scripts> </CheckButton> <Button virtual="true" name="VeneerConfigColor"> <Size x="400" y="20" /> <Layers> <Layer level="BACKGROUND"> <Texture setAllPoints="true"> <Color r="0.15" g="0.15" b="0.15" a="0.5" /> </Texture> <Texture> <Anchors> <Anchor point="BOTTOMLEFT" x="0" y="0" /> </Anchors> <Size x="18" y="18" /> <Color r="0" g="0" b="0" a="1" /> </Texture> </Layer> <Layer level="ARTWORK"> <Texture name="$parentCurrentColor" parentKey="current"> <Anchors> <Anchor point="BOTTOMLEFT" x="1" y="1" /> </Anchors> <Size x="16" y="16" /> <Color r="1" g="1" b="1" a="1" /> </Texture> </Layer> <Layer level="OVERLAY"> <FontString name="$parentOptText" inherits="VeneerFieldName"> <Anchors> <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" x="0" y="0" /> </Anchors> </FontString> <FontString parentKey="fieldvalue" name="$parentOptText" inherits="VeneerFontNormal" text=""> <Anchors> <Anchor point="CENTER" relativePoint="CENTER" relativeKey="$thumb" x="0" y="0" /> </Anchors> </FontString> </Layer> </Layers> </Button> <Frame name="Veneer" hidden="true" enableMouse="true" movable="true" parent="UIParent" frameStrata="DIALOG"> <Size x="400" y="400" /> <Anchors> <Anchor point="CENTER" relativePoint="CENTER" x="0" y="0" /> </Anchors> <Scripts> <OnLoad> self:RegisterForDrag('LeftButton') </OnLoad> <OnDragStart> self:StartMoving() </OnDragStart> <OnDragStop> self:StopMovingOrSizing() </OnDragStop> </Scripts> <Layers> <Layer level="BACKGROUND"> <Texture setAllPoints="true"> <Color r="0" g="0" b="0" a="0.7" /> </Texture> </Layer> <Layer level="ARTWORK"> <FontString name="$parentHeader" parentKey="header" inherits="VeneerFontHighlightLarge" text="Veneer"> <Anchors> <Anchor point="TOPLEFT" x="3" y="-4" /> </Anchors> </FontString> </Layer> </Layers> <Frames> <Button name="$parentCloseButton" parentKey="close" text="X"> <ButtonText inherits="SystemFont_Small" /> <Scripts> <OnClick> self:GetParent():Close() </OnClick> </Scripts> <Size x="24" y="24" /> <Anchors> <Anchor point="TOPRIGHT" x="-5" y="-5" /> </Anchors> <NormalTexture parentKey="normal" setAllPoints="true"> <Color a="1" r="0" g="0" b="0" /> </NormalTexture> <PushedTexture setAllPoints="true"> <Color a="1" r="1" g="0" b="0" /> </PushedTexture> <HighlightTexture setAllPoints="true" alphaMode="ADD"> <Color a=".5" r="1" g=".7" b="0.5" /> </HighlightTexture> </Button> <Button name="$parentGuidesButton" parentKey="guides" text="Guides"> <ButtonText inherits="SystemFont_Small" /> <Scripts> <OnClick> self:GetParent():ToggleGuides(self) </OnClick> </Scripts> <Size x="36" y="24" /> <Anchors> <Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentCloseButton" x="-5" y="0" /> </Anchors> <NormalTexture parentKey="normal" setAllPoints="true"> <Color a="1" r="0" g="0" b="0" /> </NormalTexture> <PushedTexture setAllPoints="true"> <Color a="1" r="1" g="0" b="0" /> </PushedTexture> <HighlightTexture setAllPoints="true" alphaMode="ADD"> <Color a=".5" r="1" g=".7" b="0.5" /> </HighlightTexture> </Button> </Frames> </Frame> <Script file="Init.lua" /> <Script file="Constants.lua" /> <Script file="Config.lua" /> </Ui>