Create account / Log in

Map Window hotkeys that aren't a toggle

Suggestions for additional features for the module editor and Vassal engine.

Moderators: uckelman, Tim M

Map Window hotkeys that aren't a toggle

Postby Benkyo » January 9th, 2021, 2:12 am

I would like to see a close hotkey and an open hotkey in addition to the Map Window Hotkey toggle.

Currently, to make a public player window private mid-game, I have had to send all the pieces on the public window to a private window.

If there were a hotkey to close windows, I could have it close the player windows, and make the buttons that would open other players' windows ineffective, then simply make the buttons effective again when the need for privacy ends. This would be a lot cleaner and easier, and avoid the need to have two windows (and two buttons) for each player.
Benkyo
 
Posts: 326
Joined: March 13th, 2013, 11:02 pm

Re: Map Window hotkeys that aren't a toggle

Postby marktb1961 » January 9th, 2021, 6:06 am

+1 for this, for the more generic reason that any automation that opens a window currently relies on that window being closed in the first place.

However, @benkyo - no hotkey or other action from one player can close a window on another players' machines can it? Have I misunderstood your post, or does this undermine your idea ?

Mark
Platform: Vassal 3.5.3, MacOS Big Sur on iMac (27", mid-2020)
User avatar
marktb1961
 
Posts: 448
Joined: October 4th, 2018, 2:36 pm
Location: Liverpool, England

Re: Map Window hotkeys that aren't a toggle

Postby Benkyo » January 9th, 2021, 7:03 am

Ah, just my mistake. Thought it would be possible, but a moment's thought and yeah, it's clear my idea wouldn't work.
Benkyo
 
Posts: 326
Joined: March 13th, 2013, 11:02 pm

Re: Map Window hotkeys that aren't a toggle

Postby marktb1961 » January 9th, 2021, 1:34 pm

How about something like this idea....

Create a piece in each of the hand windows, dimensioned to cover the entire window, or part of it that needs to be masked from prying eyes. The piece should have a Marker to place it the topmost Layer of the map, be non-movable/selectable; the Piece must have two piece layers - one with a masking image - Curtains? :) and one with no image.

The hand window has a global property - handPrivate - by default set false and a handOwner property - fixed at the PlayerSide that owns the window.

When you want to conceal a player's window, the action includes setting the hand window's gp handPrivate to true; so, the masking piece kicks in, based on an evaluation such as:-
{handPrivate == true && handOwner!=PlayerSide} (modified to allow Solo play, if your module requires this)

When done, handPrivate gets set to false again to cause the masking piece to disappear.

Hope this helps.

Mark
Platform: Vassal 3.5.3, MacOS Big Sur on iMac (27", mid-2020)
User avatar
marktb1961
 
Posts: 448
Joined: October 4th, 2018, 2:36 pm
Location: Liverpool, England

Re: Map Window hotkeys that aren't a toggle

Postby Benkyo » January 9th, 2021, 1:41 pm

Thanks, but the private phase is an active one - each player manipulates a lot of pieces on their window while it is private, so a masking image would get in the way.
Benkyo
 
Posts: 326
Joined: March 13th, 2013, 11:02 pm


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest