Create account / Log in

Is there a way to hide map window buttons?

Talk about module design ideas and techniques.

Moderators: Tim M, uckelman

Is there a way to hide map window buttons?

Postby Benkyo » August 4th, 2019, 5:21 am

I have 5 map windows that "belong" to players, but cannot be private and other players may sometimes move pieces on other players' windows, so I'm using standard map windows.

Is there any way to hide map window buttons on the controls window for PlayerSides that aren't in the game? Or any way at all to hide map window buttons?
Benkyo
 
Posts: 130
Joined: March 13th, 2013, 11:02 pm

Re: Is there a way to hide map window buttons?

Postby Rhett » August 13th, 2019, 2:57 pm

If I understand what you ask, hiding buttons on the top of a Map Window is just a matter of leaving out the button text.

Instead of actual text you can put a property like $Text$ in the button text field ... I guess.
Rhett
 
Posts: 15
Joined: March 18th, 2014, 9:32 am

Re: Is there a way to hide map window buttons?

Postby DrNostromo » August 13th, 2019, 5:26 pm

You can completely hide a window (no menu button) by doing the following

In your Map Window properties, check "Include toolbar button to show/hide" and then name your map in the Button Text box. If you don't have these options, it's because you have to save, close and re-open your mod for these to appear once you've check the box above. You may also want to include a hotkey (something like ALT CRTL M) so you can still open the map "in game".

Now add a Toolbar Menu to your main tree and place it directly above the Map Windows you want to hide. Leaver everything blank and under Menu Entries, add the button text name you gave to your map. This button will now control this map but since you gave it no name, tooltip or icon, it will not appear on the menu.

As far as keeping the maps hidden from observers but NOT make them private is something I don't know. I know that you can make private windows and there's an option for the windows to be visible to other players. I don't know if that applies to observers or not, though.
User avatar
DrNostromo
 
Posts: 1033
Joined: December 21st, 2007, 3:54 am
Location: Wine Country, Cal. USA

Re: Is there a way to hide map window buttons?

Postby Benkyo » August 13th, 2019, 7:35 pm

Thanks for the replies.

I guess I should have been clearer with my question. I don't need permanently hidden buttons, I need buttons that can be hidden with a key command or hotkey. I'm pretty sure this can't be done from within Vassal, so I'm asking about modifying Vassal code, I suppose?
Benkyo
 
Posts: 130
Joined: March 13th, 2013, 11:02 pm

Re: Is there a way to hide map window buttons?

Postby JoelCFC25 » August 13th, 2019, 7:39 pm

Correct, that isn't an out-of-the-box feature.
JoelCFC25
 
Posts: 572
Joined: October 12th, 2010, 5:15 pm
Location: Minnetrista, MN


Return to Module Design

Who is online

Users browsing this forum: Google [Bot] and 2 guests