View Single Post
11-11-21, 10:32 PM   #6
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,879
As I believe it's mentioned elsewhere, frames are just special types of tables so:

GameTooltip.GetBackdrop is the same as GameTooltip["GetBackdrop"] ie. test the existance/value of the GetBackdrop key in the GameTooltip table (in this case it's a function (method))

GameTooltip:GetBackdrop() runs the function but unlike using GameTooltip.GetBackdrop(), automatically passes the table (or in this case frame) as the first parameter (self).
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote