Thread Tools Display Modes
Prev Previous Post   Next Post Next
11-07-21, 03:56 PM   #1
fullmoon_sulfuras
A Fallenroot Satyr
Join Date: Dec 2019
Posts: 21
GameTooltip:GetBackdrop() a nil value for Shadowlands 90105

Hi there! I'm a little baffled by the following line working on Classic, BCc and Restila (up to 90100), but throwing an exception in Retail 90105:


Lua Code:
  1. backdrop = GameTooltip:GetBackdrop();

I get the following exception:

Code:
Interface\AddOns\LunarSphere\lib\moduleButton.lua:223: attempt to call method 'GetBackdrop' (a nil value)
I've searched the GametoolTip API ref and it doesn't seem to have a GetBackdrop method, nor a notice that it has been deprecated.

I've tried using this:

Lua Code:
  1. if not GameTooltip:GetBackdrop then
  2.         Mixin(tooltip, BackdropTemplateMixin)
  3.     end

But then I get an error:

Code:
function arguments expected near 'then'

I'm not the original author of the addon, so I'm not sure what was their intention calling
Code:
GameTooltip:GetBackdrop()
and not over some object (something like
Code:
my_widget:GetBackdrop()
)

Thanks!!

Last edited by fullmoon_sulfuras : 11-07-21 at 04:03 PM.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » GameTooltip:GetBackdrop() a nil value for Shadowlands 90105


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off