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

[2.7.1] Feature: Modloader UI for selecting mechs in the custom mech screen #141

Open
KnightMiner opened this issue Aug 2, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@KnightMiner
Copy link
Member

With the update to 1.2.75, we now have space for up to 18 mechs in each spot in the custom squad, it might be nice to be able to configure which mechs show up there.

I believe all mechs selected in squads are forced to show, but we could add addition mechs afterwards. Even beyond the initial 18, having them available in random squads would be nice.

@KnightMiner KnightMiner added the enhancement New feature or request label Aug 2, 2022
@KnightMiner
Copy link
Member Author

Full design:

Modder functions

  • modApi:addMech: add a new mech to the custom squad screen, shows regardless of selected squads. feature-add-individual-mech is working on this.
  • modApi:addSquad will gain a new option for "extra mechs" which will conditionally show in custom squad screen as long as the squad is enabled. This replaces the hack of adding the mechs after the 3rd mech in the array (internally its the same hack, but it looks like an API)

UIs

Mech selector is a new UI that allows selecting which extra mechs show in custom squads. By default, all mechs added through modApi:addMech are checked, and all squad mechs from modApi:addSquad are unchecked but available.

Any mechs in the selected squads may still be checked, but will be filtered out in the hangar UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant