You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//**
* MENU STATE
* the "Preload State" call the "Menu State" where i create the "Panel" element.
* "_G.SLICKUI" is a global variable
*/
...
create() {
let panel;
console.log(SlickUI.Element); // ==> 'Undefined'
_G.SLICKUI.add(panel = SlickUI.Element.Panel(8, 8, 150, 16)); // ==> Cannot read property 'Panel' of undefined
}
...
I can't figure out how to solve it.
If call SlickUI.Element.Panel in the console it returns a function (so it should work), but return Undefined if called inside create() method
The text was updated successfully, but these errors were encountered:
Hi,
this is a piece of my code.
I can't figure out how to solve it.
If call
SlickUI.Element.Panel
in the console it returns a function (so it should work), but returnUndefined
if called insidecreate()
methodThe text was updated successfully, but these errors were encountered: