How to call functions on protected ui objects?
Im currently getting two errors:
Lua Code:
And: Lua Code:
How can do either of those two things? 1. Call those functions anyway? 2. Prevent those functions from getting called when they are secured / protected? For option two I thought checking for "IsForbidden()" would do the trick but I was wrong, meaning this here: Lua Code:
And this: Lua Code:
Did not fix the errors. |
frame:IsForbidden() ≠ frame:IsProtected()
Forbidden frames means you can't interact with them at all. Protected frames just have limited access to a handful of functions while in combat. (see InCombatLockdown()) |
Thank you, that solved it.
|
All times are GMT -6. The time now is 08:20 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI