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

Icon chooser in MML #1444

Merged
merged 6 commits into from
Mar 9, 2024
Merged

Icon chooser in MML #1444

merged 6 commits into from
Mar 9, 2024

Conversation

SJuliez
Copy link
Member

@SJuliez SJuliez commented Feb 29, 2024

This PR adds an icon selector to MML. This is accompanied by an MM change that enables storing a chosen icon in the unit file in base64 encoding. As with the recent fluff addition this is meant to be used for custom units so that they become self-contained and can be passed around or moved while keeping their icon/fluff intact. Also custom units need no more fiddling with the mechset (although it's still allowed of course).

This is not intended for canon units; the mechset should still be used.

The icon that is chosen via mechset (i.e. automatic) is shown in white (see tooltip). When an icon is chosen, either from file or from another unit in the cache, that icon is shown with a gold camo instead. Only a gold camo icon will be saved to the unit file.

To work properly this requires having the icons in MML. I'll add these in a separate PR so this one can even be reviewed.

Requires an MM PR and icon PR (tbd)

image
image
image
image

@SJuliez SJuliez changed the title Icon64 Icon chooser in MML Feb 29, 2024
@Thom293
Copy link

Thom293 commented Mar 3, 2024

Oh man. Very nice!

@SJuliez SJuliez merged commit 6ef88c1 into MegaMek:master Mar 9, 2024
1 of 4 checks passed
@SJuliez SJuliez deleted the icon64 branch March 9, 2024 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants