Currently to refresh a Game Piece Inventory Window a user has to explicitly click “Refresh”.
It could be useful to be able to refresh it programmatically, with a global hotkey. (Similar to the global hotkeys to shuffle decks or send a deck to another deck.)
P.S. Just noticed that if you use “Save” on a GPIW the report in chat is simply “Wrote” in light blue (at least on my screen/default preferences), and nothing else. Tried this with 3.4.11. No info of what was written, just “wrote”.
Help me out here: whats the “Toolbar button when showing” entry about? It’s currently set at “Hide” on my GPIWs.
Anyway, I tried leaving it at “Hide” and changing it to “Refresh” and in both cases the hotkey entered on the line below seemed to be working all right. Thanks!
However, this now raises a side issue for me, possibly GPIW specific, or possibly more general in scope. I am using GPIWs in one module of mine, to keep track of pieces on the screen and calculate current VPs for players and other things. This has been working all right before your fix, but the players had to specifically hit the “Refresh” button to get them to update. With your fix, the idea was now to invoke those hotkeys whenever a piece moved anywhere (through the “command to apply to pieces ending movement on this map” entry).
This now works all right, too, now. But there is an issue with the UNDO button: if somebody moves a piece, any of those GPIWs updates automatically now, but then if UNDO is pressed - and the piece returned back - the “command to apply to pieces ending movement on this map” is not triggering and the GPIWs are now out of sync.
Anything that could be done about that? Perhaps a checkbox on GPIWs to autorefresh whenever a piece is moved/placed on any map (as an alternative to only run when a hotkey is issued or the “refresh” button is pressed)?
Toolbar-button-when-showing – if your Inventory is presently showing on the screen and the player clicks the toolbar button (or presses its hotkey), you have a choice between either (a) It "Hide"s the Inventory window, or (b) it "Refresh"es the inventory window.
MOST toolbar buttons (e.g. map windows, player hands, charts, etc) just ALWAYS work as show/hide toggles. Inventory windows I guess appeared before that convention was established and ended up with slightly weirder options, but we let you choose the conventional way if you want.
Meanwhile… getting into UNDO takes us pretty far out over the abyss in terms of code complexity and “potential consequences of meddling”. I’m not sure I’d feel too confident voyaging into that territory.
Ok, but, wait, shouldn’t UNDO undo everything that the last move/action did? If I move a piece and that movement (through the “command to execute for all pieces that end movement on this map” etc) fires the hotkey to refresh the inventory window… shouldn’t UNDOing that move/action undo also the global hotkey from firing and revert the GPIWs due whatever was the state before the move/action was done?