Map Window - changed button function?

I just noticed that creating a new map window has changed in a small way. When a new map window/private window is created, and you want to specify a named button for the window, you need to save and reload the module in order to be able to name the button. The text box to specify the button name won’t appear when first checking the box.

Was this change necessary in 3.1.18 to fix an issue?

BTW, the message for this new functionality is incorrect. It reads: ‘only takes affect when module loaded’

The word ‘affect’ is the wrong spelling, and the module is already loaded. A better message would be: ‘will only take effect when module is re-loaded.’

I will add a note about this new function to the designer’s guide.

I also noticed that if you remove the name for a map window the corresponding button behaves erratically:

a) sometimes it disappears completely
b) sometimes it is shown as a very small (but clickable) empty square

Behaviour (a) or (b) seems to be dependent on whether or not the said window is the last one to have been added to module or not. By last one I mean either cronologically or in the listed order of maps in the module (following “move” commands).

I do apply blank texts to windows I don’t really want to be seen by players (e.g. turn tracker). But I wonder if it is a legimitate use or just exploiting a bug with no guarantee it will work in future releases. I have to experiment moving/recreating a lot to make sure they are really completely hidden from the toolbar, whereas maybe it should be a legitimate map window option.

If you want to hide a toolbar button completely, use a toolbar menu that is
blanked out completely - that will also remove the little square. This is a
feature of toolbar menu so you don’t have to blank out your button entries
you want to hide

-----Original Message-----
From: messages-bounces@vassalengine.org
[mailto:messages-bounces@vassalengine.org] On Behalf Of barbanera
Sent: Saturday, January 28, 2012 3:50 AM
To: messages@vassalengine.org
Subject: [messages] [Developers] Re: Map Window - changed button function?

I also noticed that if you remove the name for a map window the
corresponding button behaves erratically:

a) sometimes it disappears completely
b) sometimes it is shown as a very small (but clickable) empty square

Behaviour (a) or (b) seems to be dependent on whether or not the said window
is the last one to have been added to module or not. By last one I mean
either cronologically or in the listed order of maps in the module
(following “move” commands).

I do apply blank texts to windows I don’t really want to be seen by players
(e.g. turn tracker). But I wonder if it is a legimitate use or just
exploiting a bug with no guarantee it will work in future releases.
I have to experiment moving/recreating a lot to make sure they are really
completely hidden from the toolbar, whereas maybe it should be a legitimate
map window option.


Read this topic online here:
https://forum.vassalengine.org/t/map-window-changed-button-function/4631/2

Ok, thanks. Never experimented with toolbar menu so far, but I will keep your suggestion in mind for the future.

However, what about the Turn Counter? Can you also put it in a blank toolbar menu to hide it and avoid little/square (or, sometimes, space between the previous button and the next) problem?

Stick it in a hidden map

-----Original Message-----
From: messages-bounces@vassalengine.org
[mailto:messages-bounces@vassalengine.org] On Behalf Of barbanera
Sent: Saturday, January 28, 2012 8:30 AM
To: messages@vassalengine.org
Subject: [messages] [Developers] Re: Map Window - changed button function?

Ok, thanks. Never experimented with toolbar menu so far, but I will keep
your suggestion in mind for the future.

However, what about the Turn Counter? Can you also put it in a blank toolbar
menu to hide it and avoid little/square (or, sometimes, space between the
previous button and the next) problem?


Read this topic online here:
https://forum.vassalengine.org/t/map-window-changed-button-function/4631/4