Mercurial > wow > buffalo2
view ObjectiveWidgets.xml @ 7:5301c68f28d8
TrackerBlock
- use IsModifiedClick function to determine appropriate OnClick actions
- handle 'CHATLINK' modifier
- handle 'TOGGLEQUESTWATCH' modifier
TrackerBlockObjectives
- use a generic framework to manage frame creation for various criteria tracker types:
- ProgressBar when Blizzard flag data indicates so
- skip when Blizzard flag data indicates so
- DynamicText otherwise
- events related to the criteria are registered in the criteria frame, and unregistered when the frame is hidden, either by destruction of its parent or completion
author | Nenue |
---|---|
date | Fri, 01 Apr 2016 12:27:05 -0400 |
parents | 3397aae1f44d |
children | 7923243ae972 |
line wrap: on
line source
<Ui> <!-- houses objective widget templates --> <Frame name="VeneerObjectiveCriteriaProgressBar" virtual="true" hidden="true"> <Size x="250" y="30" /> <Scripts> <OnLoad> self.widgetType = 'ProgressBar' Veneer.ObjectiveTracker.RegisterWidget(self) </OnLoad> <OnShow> Veneer.ObjectiveTracker.InitializeWidget(self) </OnShow> <OnHide> Veneer.ObjectiveTracker.ReleaseWidget(self) </OnHide> <OnEvent> </OnEvent> </Scripts> <Layers> <Layer level="BACKGROUND"> <Texture SetAllPoints="true" name="$parentBackground" parentKey="bg"> <Color r="0" g="0" b="0" a="0.25" /> <Anchors> <Anchor point="BOTTOMLEFT" /> <Anchor point="TOPRIGHT" /> </Anchors> </Texture> </Layer> <Layer level="ARTWORK"> <Texture SetAllPoints="true" name="$parentForeground" parentKey="fg"> <Color r="1" g="1" b="1" a="1" /> <Anchors> <Anchor point="TOPLEFT" x="1" y="-1" /> </Anchors> </Texture> </Layer> <Layer level="OVERLAY"> <FontString name="$parentQuantityString" parentKey="quantityString" inherits="VeneerCriteriaFont"> <Anchors> <Anchor point="CENTER" /> </Anchors> </FontString> </Layer> </Layers> </Frame> <Frame name="VeneerObjectiveCriteriaEvent" virtual="true" hidden="true"> <Size x="250" y="24" /> <Scripts> <OnLoad> self.widgetType = 'Event' self.lines = 1 Veneer.ObjectiveTracker.RegisterWidget(self) </OnLoad> <OnShow> Veneer.ObjectiveTracker.InitializeWidget(self) </OnShow> <OnHide> Veneer.ObjectiveTracker.ReleaseWidget(self) </OnHide> </Scripts> <Layers> <Layer level="OVERLAY"> <FontString name="$parentQuantityString" parentKey="quantityString" inherits="VeneerCriteriaFont"> </FontString> </Layer> </Layers> </Frame> </Ui>