Jump to content

Can't no longer push Window as a global with Interpreter.


Recommended Posts

Hi Josh, I understand that the window class was heavily modified for the GUI development that's going on, but I've noticed that this chunk of code doesn't work properly.

 


#define WINDOW Leadwerks::Window::GetCurrent()

int stacksize = Interpreter::GetStackSize();

Interpreter::PushObject(WINDOW);

Interpreter::SetGlobal("window");

Interpreter::SetStackSize(stacksize);

 

It's like the window class never gets pushed anymore like it did in the past. If I roll back to 4.1, it'll work fine. Again, I understand you're in the process of GUI and haven't got the chance to put back together the window class (for example, the window title is also missing), but I just ask that you look at this when you start cleaning up for the next release.

 

Thanks.

  • Upvote 2

Cyclone - Ultra Game System - Component PreprocessorTex2TGA - Darkness Awaits Template (Leadwerks)

If you like my work, consider supporting me on Patreon!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...