Ruin0x11 / OpenNefia

(Archived) Moddable engine reimplementation of the Japanese roguelike Elona.
MIT License
115 stars 18 forks source link

Hiding/showing of the inventory menu inside inventory protos is incorrect #336

Closed Ruin0x11 closed 3 years ago

Ruin0x11 commented 3 years ago

In vanilla, because the screen was updated using bitmap blitting, there were some cases where the inventory window would become hidden (like for directional prompts) and some where it would remain shown (like when buying/selling items). Since OpenNefia redraws the screen every frame, this means that the window can only be shown or hidden in every case.

There should be a way to programmatically show/hide the inventory screen from inside the inventory prototype logic when needed.