view ObjectiveWidgets.xml @ 8:7923243ae972

ObjectiveUI & ObjectiveEvents - securehook to API calls for compatibility with addons that work with the objective tracking interface - let the API hooks invoke ObjectiveUI functions when possible - ObjectiveUI framescript handlers should use the corresponding API call if possible, so that addon space can be fully aware of our actions - Sanity check cached data when possible during 'Remove' hooks ObjectiveInfo - Add cheevID to criteria info ObjectiveCore - Index quest tracker blocks by their watch offset, and use that to verify whether the given block frame should be released into pool ObjectiveFrame - Differentiate between visible and non-visible unused buttons, and only release when their quest has been dropped
author Nenue
date Fri, 01 Apr 2016 14:40:14 -0400
parents 5301c68f28d8
children 2698173edd40
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.70" />
          <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" />
        </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>