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

Bug: support more than one BeginWindow #1

Closed ericoporto closed 3 years ago

ericoporto commented 3 years ago

Currently if you do

BeginWindow ("win1", 2, 2, 64, 64)
EndWindow ()
BeginWindow ("win2", 128, 2, 64, 64)
EndWindow ()

Only the first window will be rendered.

This is probably due to not fully working jump commands, so I need to fix this part of the renderer first.

ericoporto commented 3 years ago

Since I have both the renderer and the way to process the command list in the same code, I should be able to solve this easier by not going as similar as the original code since it broke a lot of type safety and used overriding features, both being things we don't want or don't have in Script.

ericoporto commented 3 years ago

Fixed with https://github.com/ericoporto/ImGi/commit/7f56e0c1f15883860922805f393225d93f17e0c7