ericoporto / ImGi

AGS Script Module for Immediate Gui (based on rxi's Microui)
https://www.adventuregamestudio.co.uk/forums/index.php?topic=58842.0
Other
2 stars 2 forks source link

Enhancement: avoid new ImGi_Layout #19

Closed ericoporto closed 3 years ago

ericoporto commented 3 years ago

We can probably reverse how push_layout works to avoid using new ImGi_Layout, so it just increments 1 and returns me the layout.

This will require creating all Layout objects at game start and NEVER deallocating them, so push would only return the pointer of the "new" layout in the stack.

New though DOES initialize everything as 0, so need to figure out what we need to then manually initialize as zero.