From: Erik V. <eri...@xs...> - 2010-01-14 21:16:15
|
The below innocent-looking complaint has led me to completely change the way window visibility is controlled. Before, it was hard-coded with each round type, and as tradihg shares is done in a StockRound subclass (even if it happens in an OperatingRound), the stock round window visiblity rules applied. There is now a new class GUIHints, in which the game engine can put flags to suggest visibility changes to the GUI, in a way that not only visiblity but also stack order can be controlled. I have tried to make this as little intrusive as I could; only a new round will do these settings, overriding any player changes. (But be aware that emergency share selling and treasury share trading count as separate rounds in Rails). Talking about visibility, the new nonmodal popups will now always stay on top of the other windows (but can of course be moved aside). I found it annoying that clicking any other window made these dialogs disappear from sight. There are several more small behind-the-scenes changes. Erik. ---- * At the end of each operating turn, the map annoyingly disappears while I'm asked whether the company that just operated wants to buy or sell its own shares. Even if no such actions are possible (because all the shares are owned by players, or the company has no treasury stock and doesn't have the money to buy a share), it happens anyway. |