Mercurial > wow > buffalo2
view ObjectiveTracker.xml @ 19:605e8f0e46db
ObjectiveCore / Style / Events / Frame
- polishing the execution path for better performance
- make use of the Blizzard_ObjectiveTracker bitfield values to ensure compatibility in possible secure hooks
- avoid full updates when possible (using said bitfield values to indicate targeted sections)
- extreme streamlining of event handling layout: specific reason updates are invoked from API hooks; broader updates are invoked by when the event listener catches something vague like 'QUEST_LOG_UPDATE'
author | Nenue |
---|---|
date | Wed, 06 Apr 2016 07:38:35 -0400 |
parents | d1812fb10ae6 |
children | d5ee940de273 |
line wrap: on
line source
<Ui> <Frame name="VeneerObjectiveWrapper" parent="UIParent" movable="true" enableMouse="true" frameStrata="LOW"> <Scripts> <OnLoad> self.toggle = true self.drag = true Veneer.OnLoad(self) </OnLoad> <OnShow> </OnShow> <OnDragStart> Veneer.OnDragStart(self) </OnDragStart> <OnDragStop> Veneer.OnDragStop(self) Veneer.ObjectiveTracker.UpdateActionButtons() </OnDragStop> <!--@debug@--> <!--@end-debug@--> </Scripts> <Anchors> <Anchor point="TOPRIGHT" x="-60" y="-240" /> </Anchors> <Layers> <Layer level="ARTWORK"> <Texture parentKey="BackgroundLeft" parentArray="headerComplex" /> <Texture parentKey="BackgroundRight" parentArray="headerComplex" /> <Texture parentKey="BackgroundTile" parentArray="headerComplex" /> <Texture parentKey="headerComplexBounds" parentArray="config" alphaMode="ADD" hidden="true"> <Color r="0" g="0" b="1" a="0.5" /> <Anchors> <Anchor point="TOPLEFT" relativeKey="$parent.BackgroundLeft" /> <Anchor point="BOTTOMRIGHT" relativeKey="$parent.BackgroundRight" /> </Anchors> </Texture> <Texture parentKey="FrameBounds" parentArray="config" alphaMode="ADD" hidden="true"> <Color r="1" g="0" b="1" a="0.25" /> <Anchors> <Anchor point="TOPLEFT" /> <Anchor point="BOTTOMRIGHT" /> </Anchors> </Texture> <!--<Texture desatuated="true" parentKey="LineGlow" hidden="false" alpha="0" alphaMode="ADD" atlas="OBJFX_LineGlow" useAtlasSize="true"> <Anchors> <Anchor point="LEFT" relativeKey="$parent.Background" x="-21" y="18"/> </Anchors> </Texture> <Texture parentKey="SoftGlow" hidden="false" alpha="0" alphaMode="ADD" atlas="OBJFX_Glow" useAtlasSize="true"> <Anchors> <Anchor point="CENTER" relativeKey="$parent.Background" relativePoint="LEFT" x="49" y="20"/> </Anchors> </Texture> <Texture parentKey="StarBurst" hidden="false" alpha="0" alphaMode="ADD" atlas="OBJFX_StarBurst" useAtlasSize="true"> <Anchors> <Anchor point="CENTER" relativeKey="$parent.SoftGlow" x="29"/> </Anchors> </Texture> <Texture parentKey="LineSheen" hidden="false" alpha="0" alphaMode="ADD" atlas="OBJFX_LineBurst"> <Size x="60" y="15"/> <Anchors> <Anchor point="CENTER" relativeKey="$parent.SoftGlow" x="29" y="-13"/> </Anchors> </Texture>--> </Layer> <Layer level="OVERLAY"> <!--<Texture name="$parentTCR" parentKey="outlineClosed" file="Interface\FrameGeneral\UI-Frame"> <Size x="40" y="30" /> <Color r="1" g="1" b="1" a="1" /> <TexCoords top=".0156" bottom=".0265" left=".625" right=".875" /> <Anchors> <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="2" y="2" /> </Anchors> </Texture>--> </Layer> </Layers> <Frames> <ScrollFrame name="$parentScrollFrame" enableMouseWheel="true" parentKey="scrollArea" parentArray="minimizeFrames"> <Anchors> <Anchor point="TOPLEFT" /> </Anchors> <Layers> <Layer level="BACKGROUND"> <Texture setAllPoints="true" parentKey="bg"> <Color r="0.15" g=".3" b=".3" a="0" /> </Texture> </Layer> </Layers> <Frames> <Frame name="VeneerObjectiveScroll"> <Anchors> <Anchor point="TOPLEFT" /> </Anchors> <Layers> <Layer level="BACKGROUND"> <Texture setAllPoints="true" parentKey="bg"> <Color r="1" g="1" b="1" a="1" /> <Gradient orientation="HORIZONTAL"> <MinColor r="0" g="0.5" b="0.5" a="0" /> <MaxColor r="0" g="0.5" b="0.5" a="0" /> </Gradient> </Texture> </Layer> </Layers> </Frame> </Frames> </ScrollFrame> <Frame name="$parentStatusHeader" parentKey="header" frameStrata="MEDIUM"> <Layers> <Layer level="OVERLAY"> <FontString name="$parentTitle" parentKey="status" inherits="VeneerStatusFont" text="status test" justifyH="RIGHT"> <Anchors> <Anchor point="TOPRIGHT" x="-64" y="0" /> </Anchors> </FontString> </Layer> </Layers> </Frame> <Button name="$parentCloseButton" parentKey="CloseButton" enableMouse="true" frameStrata="MEDIUM"> <Size x="16" y="16" /> <HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/> <Anchors> <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="-2" y="0" /> </Anchors> </Button> <Button name="$parentQuestMapButton" parentArray="minimizeFrames" parentKey="QuestMapButton" frameStrata="MEDIUM"> <Size x="42" y="16" /> <HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/> <Anchors> <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" relativeKey="$parent.CloseButton" x="0" y="0" /> </Anchors> </Button> </Frames> </Frame> <Frame name="$parentXP" parent="VeneerObjectiveWrapper" parentKey="XPBar" hidden="true"> <Size x="250" y="24" /> <Anchors> <Anchor point="TOPLEFT" /> </Anchors> <Layers> <Layer level="BACKGROUND"> <Texture name="$parentBackground" parentKey="statusbg" setAllPoints="true"/> </Layer> <Layer level="ARTWORK"> <Texture name="$parentForeground" parentKey="foreground"> <Anchors> <Anchor point="TOPLEFT" /> <Anchor point="BOTTOMLEFT" /> </Anchors> </Texture> <Texture name="$parentRested" parentKey="rested" > <Anchors> <Anchor point="TOPLEFT" /> <Anchor point="BOTTOMLEFT" /> </Anchors> </Texture> </Layer> <Layer level="OVERLAY"> <FontString inherits="VeneerFontNormal" parentKey="title"> <Anchors> <Anchor point="CENTER" /> </Anchors> </FontString> </Layer> </Layers> </Frame> <!-- Header Panel --> <!-- Background panels --> <Frame name="VeneerTrackerTemplate" parent="UIParent" virtual="true"> <Layers> <Layer level="BACKGROUND"> <Texture name="$parentTitleBackground" parentKey="titlebg"> <Anchors> <Anchor point="TOPLEFT" /> <Anchor point="RIGHT" /> </Anchors> <Color r="1" g="1" b="1" a="1" /> <Gradient orientation="HORIZONTAL"> <MinColor r="0" g="0" b="0" a="0.1" /> <MaxColor r="0" g="0" b="0" a="0" /> </Gradient> </Texture> </Layer> <Layer level="OVERLAY"> <FontString name="$parentTitle" inherits="VeneerFontHighlight" text="OBJ" parentKey="title" justifyH="LEFT"> <Anchors> <Anchor point="TOP" relativeKey="$parent.titlebg" /> <Anchor point="BOTTOM" relativeKey="$parent.titlebg" /> <Anchor point="LEFT" relativeKey="$parent.titlebg" /> <Anchor point="RIGHT" relativeKey="$parent" /> </Anchors> </FontString> <FontString name="$parentStatus" inherits="VeneerStatusFont" parentKey="status" justifyH="RIGHT"> <Anchors> <Anchor point="TOP" relativeKey="$parent.titlebg" /> <Anchor point="BOTTOM" relativeKey="$parent.titlebg" /> <Anchor point="LEFT" relativeKey="$parent.titlebg" /> <Anchor point="RIGHT" relativeKey="$parent" /> </Anchors> </FontString> </Layer> </Layers> </Frame> <Frame name="VeneerTrackerBlock" parent="VeneerObjectiveScroll" virtual="true" enableMouse="true"> <Layers> <Layer level="BACKGROUND"> </Layer> <Layer level="ARTWORK"> <Texture name="$parentTitleBackground" parentKey="titlebg"> <Color r="1" g="1" b="1" a="1" /> <Anchors> <Anchor point="TOPLEFT" /> </Anchors> </Texture> <Texture name="$parentStatusBackground" parentKey="statusbg"> <Anchors> <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.titlebg" /> </Anchors> <Color r="1" g="1" b="1" a="1" /> <Gradient orientation="HORIZONTAL"> <MinColor r="0" g="0" b="0" a=".15" /> <MaxColor r="0" g="0" b="0" a=".35" /> </Gradient> </Texture> <Texture name="$parentItemTile" parentKey="icon" alphaMode="ADD" hidden="true"> <Size x="40" y="40" /> <TexCoords top="0.12" bottom="0.87" left="0.12" right="0.87" /> <Anchors> <Anchor point="TOPRIGHT" x="0" y="0" /> </Anchors> </Texture> <Texture parentKey="TypeTag" file="Interface\QuestFrame\QuestTypeIcons" alphaMode="ADD" hidden="true"> <Size x="18" y="18"/> <Anchors> <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" relativeKey="$parent.FrequencyTag" x="-3" y="-3"/> </Anchors> </Texture> <Texture parentKey="FrequencyTag" file="Interface\QuestFrame\QuestTypeIcons" alphaMode="ADD" hidden="true"> <Size x="18" y="18"/> <Anchors> <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" relativeKey="$parent.CompletionTag" x="-3" y="-3"/> </Anchors> </Texture> <Texture parentKey="CompletionTag" file="Interface\QuestFrame\QuestTypeIcons" alphaMode="ADD" hidden="true"> <Size x="18" y="18"/> <Anchors> <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" relativeKey="$parent.icon" x="-3" y="-3"/> </Anchors> </Texture> <Texture parentKey="SelectionOverlay" setAllPoints="true" alphaMode="ADD" hidden="true"> <Color r="1" g="1" b="1" a="1" /> <Gradient orientation="HORIZONTAL"> <MaxColor r="1" g="1" b="1" a="0.125" /> <MinColor r="1" g="1" b="1" a="0.25" /> </Gradient> </Texture> <Texture name="$parentMoneyTile" parentKey="money" hidden="true" /> </Layer> <Layer level="HIGHLIGHT"> <Texture name="$parentHighLight" parentKey="highlight"> <Anchors> <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeKey="$parent.titlebg" /> <Anchor point="BOTTOM" relativePoint="TOP" relativeKey="$parent.titlebg" x="0" y="-4"/> <Anchor point="RIGHT" relativePoint="RIGHT" /> </Anchors> <Color r="1" g="1" b="1" a="1" /> <Gradient orientation="VERTICAL"> <MaxColor r="1" g="1" b="1" a=".15" /> <MinColor r="1" g="1" b="1" a="0" /> </Gradient> </Texture> <Texture name="$parentLowLight" parentKey="highlight2"> <Anchors> <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.statusbg" x="0" y="14" /> <Anchor point="BOTTOM" relativePoint="BOTTOM" relativeKey="$parent.statusbg" x="0" y="0"/> <Anchor point="RIGHT" relativePoint="RIGHT" relativeKey="$parent" /> </Anchors> <Color r="1" g="1" b="1" a="1" /> <Gradient orientation="VERTICAL"> <MaxColor r="1" g="1" b="1" a="0" /> <MinColor r="1" g="1" b="1" a="0.15" /> </Gradient> </Texture> </Layer> <Layer level="OVERLAY"> <FontString name="$parentTitle" parentKey="title" inherits="VeneerTitleFont" justifyH="LEFT" justifyV="MIDDLE"> <Anchors> <Anchor point="TOP" relativeKey="$parent.titlebg" /> <Anchor point="LEFT" relativeKey="$parent" /> <Anchor point="RIGHT" relativeKey="$parent" /> </Anchors> </FontString> <FontString name="$parentStatus" parentKey="status" inherits="VeneerCriteriaFontNormal" justifyH="LEFT" justifyV="MIDDLE" wordwrap="true"> <Anchors> <Anchor point="TOP" relativeKey="$parent.statusbg" /> <Anchor point="LEFT" relativeKey="$parent" /> <Anchor point="RIGHT" relativeKey="$parent" /> </Anchors> </FontString> <FontString name="$parentDebugText" parentKey="debugText" inherits="VeneerCriteriaFontNormal" justifyH="RIGHT"> <Anchors> <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" /> </Anchors> </FontString> <FontString name="$parentItemTileText" parentKey="iconLabel" inherits="VeneerCriteriaFontNormal"> <Anchors> <Anchor point="TOPRIGHT" x="-2" y="-4" relativeKey="$parent.icon" /> </Anchors> </FontString> </Layer> </Layers> </Frame> <Include file="ObjectiveSecure.xml" /> <Include file="ObjectiveWidgets.xml" /> <Script file="ObjectiveCore.lua" /> <Script file="ObjectiveInfo.lua" /> <Script file="ObjectiveUI.lua" /> <Script file="ObjectiveStyle.lua" /> <Script file="ObjectiveFrame.lua" /> <Script file="ObjectiveEvents.lua" /> <Script file="ObjectiveWidgets.lua" /> <Script file="XPTracker.lua" /> </Ui>