Menu

#1319 Tooltips does not work with 9.1.5

New
HonorGoG
None
Critical
Defect
2021-11-02
2021-10-26
No

Tooltips do not work with 9.1.5. Game generates an error:

Interface\\AddOns\\Titan\\TitanPanelTemplate.lua:114: attempt to call method 'GetBackdropColor' (a nil value)

It appears GameTooltip does not inherit BackdropTemplate anymore and TooltipBackdropTemplateMixin should be added explicitly to it and new tooltips frame should be used.

Discussion

  • Lonely Stranger

    Lonely Stranger - 2021-10-26

    I've fixed it partially by adding

    TitanPanelTooltip = CreateFrame("GameTooltip", "TitanPanelTooltip", UIParent, "GameTooltipTemplate, TooltipBackdropTemplate")
    

    into TitanPanel.lua and replacing GameTooltip with TitanPanelTooltip everywhere (LDBToTitan.lua, TitanPanel.lua, TitanPanelTemplate.lua) but tooltips have weird background color with such change, initial part of text in them is also missing (have no foreground color I believe) and performance has no tooltip at all.

     
  • Lonely Stranger

    Lonely Stranger - 2021-10-26

    Performance plugin has own tooltip mechanics, fixed its appearance there.

     
  • Lonely Stranger

    Lonely Stranger - 2021-10-26

    Resolved that. Changing line in TitanPanel.xml into

    <GameTooltip name="TitanPanelTooltip" inherits="GameTooltipTemplate" mixin="TooltipBackdropTemplateMixin" parent="UIParent" hidden="true"/>
    

    and dropping that added line above fixed tooltips. Please, release fixed version ASAP (9.1.5 will be released on November 2, you know).

     
  • Lonely Stranger

    Lonely Stranger - 2021-10-26

    Just for clarification:
    1) add the mixin to XML file
    2) replace all GameTooltip with TitanPanelTooltip
    all that is needed to fix this issue.

     
  • urnati

    urnati - 2021-10-26

    You are correct, blizzard did change the GameTooltip. We'll see if developers take backdrops in a different direction in the future.
    Thanks for the suggestions! Our change was a bit different but effective.
    Testing now.

     
    • Lonely Stranger

      Lonely Stranger - 2021-10-27

      You are right, no need in so much changes, just a line into TitanPanel.lua

      Mixin(GameTooltip, TooltipBackdropTemplateMixin)
      

      is enough.

       
    • Lonely Stranger

      Lonely Stranger - 2021-11-02

      Your latest complicate change broken the transparency of tooltips - setting value to 0 in configuration does not change tooltips to have transparent background, it's still opaque.

      The solution with Mixin(...) works correctly though, I have all tooltips with exact transparency I've set in configuration.

       

      Last edit: Lonely Stranger 2021-11-02

Log in to post a comment.