Page 1 of 1

what does Player.opened return?

Posted: Wed Nov 18, 2020 6:47 pm
by ixu
When calling LuaControl.opened the documentation says that LuaEntity or LuaItemStack or LuaEquipment or LuaEquipmentGrid or LuaPlayer or LuaGuiElement or defines.gui_type could be returned.
Is there an elegant way to get the actual runtime type from the returned object?

Re: what does Player.opened return?

Posted: Wed Nov 18, 2020 7:05 pm
by PFQNiet
That's what opened_gui_type is for :)

Re: what does Player.opened return?

Posted: Sat Nov 21, 2020 5:18 am
by eradicator
Common.object_name also exists nowadays.