WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   SetBackdropBorderColor Error (https://www.wowinterface.com/forums/showthread.php?t=58515)

BloodDragon 01-02-21 12:44 PM

SetBackdropBorderColor Error
 
1 Attachment(s)
Hello @ all,
i have found a old Addon it works perfect but i have one Error.

Lua Code:
  1. 2x Farcaster\FarCaster-1.01.lua:54: attempt to call method 'SetBackdropBorderColor' (a nil value)
  2. [string "@Farcaster\FarCaster-1.01.lua"]:54: in function <Farcaster\FarCaster.lua:40>
  3.  
  4. Locals:
  5. self = <unnamed> {
  6.  0 = <userdata>
  7.  OnUpdate = <function> defined @Farcaster\FarCaster.lua:77
  8.  OnEvent = <function> defined @Farcaster\FarCaster.lua:40
  9. }
  10. event = "ADDON_LOADED"
  11. arg1 = "Farcaster"
  12. (*temporary) = nil
  13. (*temporary) = frmOptions {
  14.  0 = <userdata>
  15. }
  16. (*temporary) = 0.800000
  17. (*temporary) = 0.600000
  18. (*temporary) = 0.500000
  19. (*temporary) = 0.900000
  20. (*temporary) = "attempt to call method 'SetBackdropBorderColor' (a nil value)"
  21. iCurrentTalentTree = 3

Can anyone help me with this please?

Kanegasi 01-02-21 01:25 PM

Add the following line above the bordercolor line like so:

Lua Code:
  1. if not frmOptions.SetBackdrop then Mixin(frmOptions,BackdropTemplateMixin) end
  2. frmOptions:SetBackdropBorderColor(0.8, 0.6, 0.5, 0.9);


All times are GMT -6. The time now is 06:51 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI