View Single Post
10/28/15, 08:12 PM   #3
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Actually I figured it out...partially:

Lua Code:
  1. if not MyAbilityTooltip then
  2.     --AbilityTooltipTopLevel
  3.     --ZO_Tooltip
  4.         MyAbilityTooltip = CreateControlFromVirtual("someUniqueName", ZO_Compass, "ZO_Tooltip")
  5.         local ZO_Dyeing_Gamepad_Tooltip_Styles = ZO_ShallowTableCopy(ZO_TOOLTIP_STYLES)
  6.         ZO_Tooltip:Initialize(MyAbilityTooltip, ZO_Dyeing_Gamepad_Tooltip_Styles, style)
  7.     end
  8.    
  9.     MyAbilityTooltip:ClearAnchors()
  10.     MyAbilityTooltip:SetOwner(self, TOPLEFT, 100, 100, TOPLEFT)
  11.    
  12.     InitializeTooltip(MyAbilityTooltip, GuiRoot, TOPLEFT, 100, 100, TOPLEFT)
  13.    
  14.         local upgradeSection = MyAbilityTooltip:AcquireSection(MyAbilityTooltip:GetStyle("abilityUpgradeSection"))
  15.         MyAbilityTooltip:AddSectionEvenIfEmpty(upgradeSection)
  16.     MyAbilityTooltip:LayoutAbility(abilityId, hideRank, overrideRank, pendingChampionPoints, addNewEffects)

But it takes up the whole screen and MyAbilityTooltip:SetDimensions(xx, yy) seems to have no effect. The styles are messing it up, going to try to write my own style table for it, to change dimensions & see if that works.
  Reply With Quote