Allow "stacking" game modes
Currently, for example when you are in the inventory and bring up the console, closing the console again will bring you to the game mode instead of back to the inventory mode. There are many more examples for this (closing trade window should bring you back to dialogue window, etc).
This could be resolved by adding "pushGuiMode(GuiMode mode)" and "popGuiMode()" methods to the window manager, instead of only managing one GUI mode at once (which is set via setGuiMode).
(RM-293 from redmine: created on 2012-05-22 by scrawl ., , closed on 2012-05-24 by scrawl .)
Edited by redmine