Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add deployment options #4922

Merged
merged 24 commits into from
Dec 21, 2023
Merged

Conversation

kuronekochomusuke
Copy link
Collaborator

@kuronekochomusuke kuronekochomusuke commented Nov 24, 2023

  • add option to default Non-bot players to team 1
  • add option for Non-bot player entities with "Use Owners*" deployment set, use Player 0's settings, instead of current player's settings
  • these should help speed up lobby setup in coop games.
  • defaulted them to off, to have the current behavior.

  • allow limiting the "Any" deployment zone to an arbitrary smaller square area
  • must turn off exclusive double blind deployment zones
  • can select the NW and SE corners of the square in player and entity configs
  • setting to (0, 0) - (0, 0) disables the limit and can deploy anywhere as normal

  • show player deployments on map preview
  • add refresh preview button to update player deployments on map preview. to make it easier to adjust the deployment positions, while keeping the map preview open
  • add ruler to map preview

to use ruler to set Deployment Any corners:

  1. select start and end points with ruler on map preview
  2. hit "Use ruler coords" in player config
  3. hit "Apply" or "Ok" button in player config
  4. hit "refresh preview" button on map preview to show updated deployment zone

  • if blind drop hide enemy player deployment zones from non gm players
  • allow gm to see and edit all units on any team, hidden or not, in lobby
  • while in lobby and there is a gm, if player disconnects transfer the disconnected player's units to the gm

image

image


image

image

set to a single hex
image


image

image


image

@kuronekochomusuke kuronekochomusuke added the GUI User Interface label Nov 24, 2023
@kuronekochomusuke kuronekochomusuke marked this pull request as draft November 24, 2023 16:45
@HammerGS
Copy link
Member

This sounds like a huge help for games like Joker runs.

@kuronekochomusuke kuronekochomusuke added the GM Tools All things related to the GM Tools project. label Nov 25, 2023
@kuronekochomusuke kuronekochomusuke marked this pull request as ready for review December 5, 2023 00:33
Copy link
Member

@SJuliez SJuliez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd appreciate if the texts could be adjusted but otherwise good to go. I wonder if we might once upgrade deployment to a class that supports various forms of deployment areas. This might lighten the load of specialized code such as the one in here for Entity, PlayerSettings and other classes and offer more variety of deployment. I once went through some of the Chaos Campaign books and noted all deployment variations. Quite a lot of different area types. Also, it could be interesting to have deployment options that can be programmed in MHQ but are difficult to represent in a GUI.

@@ -285,6 +285,7 @@ BoardSelectionDialog.UpdateSize=Update Size
BoardSelectionDialog.Updating=Updating...
BoardSelectionDialog.ViewGameBoard=Preview Game Map... *
BoardSelectionDialog.ViewGameBoardTooltip=Shows a preview of the game's map.<br> * Note: For generated maps and surprise maps the preview is only a sample<br> and will not be the same as the actual map used.
BoardSelectionDialog.ViewGameBoardButton=refresh preview
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is a button text I feel this needs at least a capital letter as the first

CustomMechDialog.labDeploymentAnyNW=Deployment Any NW corner:
CustomMechDialog.labDeploymentAnySE=Deployment Any SE corner:
CustomMechDialog.BtnDeploymentUseRuler=Use ruler coords
CustomMechDialog.BtnDeploymentUseRulerTip=set the Any NW and SE corners based on the corners of the NW and SE corners the square defined by the map preview ruler
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capital letter

@@ -33,6 +33,10 @@ GameOptionsInfo.option.dumping_from_round.displayableName=first round for ammo d
GameOptionsInfo.option.dumping_from_round.description=Number of the round that has to be at least reached before allowing ammo dumps.
GameOptionsInfo.option.set_arty_player_homeedge.displayableName=Automatically set artillery home edge
GameOptionsInfo.option.set_arty_player_homeedge.description=If checked, all of the players' artillery units will have their home edge set to the deployment edge of the player, NW and NE are North, SW and SE are South. \nUnchecked by default.
GameOptionsInfo.option.set_default_team_1.displayableName=Default non-bot players to team 1
GameOptionsInfo.option.set_default_team_1.description=Unchecked each player is assigned new team
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel this is not understandable unless you already know what it does. At least it should start with "When this option is unchecked, "

GameOptionsInfo.option.set_default_team_1.displayableName=Default non-bot players to team 1
GameOptionsInfo.option.set_default_team_1.description=Unchecked each player is assigned new team
GameOptionsInfo.option.set_player_deployment_to_player0.displayableName=Non-bot player entities with \"Use Owners*\" deployment set, use Player 0\'s settings, instead of current player\'s settings
GameOptionsInfo.option.set_player_deployment_to_player0.description=Unchecked use current player deployments settings
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

@sldfgunslinger2766
Copy link
Contributor

As per Julie's comment on the Chaos Campaign deployment types: being able to deploy on more than one 'edge/side' would be really useful and cool...

@HammerGS HammerGS merged commit 06b637e into MegaMek:master Dec 21, 2023
5 checks passed
HammerGS added a commit that referenced this pull request Dec 21, 2023
+ PR #4957: More tooltips colors (set FG color and BG color for more
tooltips, add highlight, weapon, quirk client settings, consolidate some
colors into existing client setting colors)

+ PR #4922: Add deployment options (There is a lot in this one see note
from PR link for specifics)
@kuronekochomusuke kuronekochomusuke deleted the deploymentOptions branch December 31, 2023 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GM Tools All things related to the GM Tools project. GUI User Interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants