Skip to content

Multiple hat styles#253

Merged
AndreasArvidsson merged 12 commits intomasterfrom
multiple-hat-styles
Sep 1, 2021
Merged

Multiple hat styles#253
AndreasArvidsson merged 12 commits intomasterfrom
multiple-hat-styles

Conversation

@pokey
Copy link
Copy Markdown
Member

@pokey pokey commented Aug 26, 2021

Currently three styles, but I think we can get a couple more in there

image

Note that this PR also increases default circle hat size

  • Don't reprocess glyph svgs for every color
  • Add a couple more hat styles
  • Change base to master
  • Rename color variables to hatStyleName (see comment below)
  • Implement talon side
  • Figure out good names for the colors. I think the "x" could be "cross" / "blast" / "ninja" / "star" / "splat"
  • Add settings to configure priorities of colors / shapes. Have nested setting with disabled / penalty

@pokey pokey changed the base branch from master to sub-token-exclusions-error August 26, 2021 17:58
Comment thread src/core/NavigationMap.ts Outdated
} = {};

static getKey(color: SymbolColor, character: string) {
static getKey(color: HatStyleName, character: string) {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

  • rename all the color vars in this file (and other necessary places) to hatStyleName

Comment thread src/core/constants.ts Outdated
export type HatColor = typeof HAT_COLORS[number];
export type HatGlyphName = typeof HAT_GLYPHS[number];
type HatNonDefaultGlyph = typeof HAT_NON_DEFAULT_GLYPHS[number];
export type HatStyleName = HatColor | `${HatColor}-${HatNonDefaultGlyph}`;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Finally got to use those template literal types 😊

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice!

@pokey pokey requested a review from AndreasArvidsson August 26, 2021 21:09
Base automatically changed from sub-token-exclusions-error to master August 31, 2021 06:19
@pokey pokey force-pushed the multiple-hat-styles branch from d88b856 to 520595e Compare August 31, 2021 09:17
@pokey pokey marked this pull request as ready for review August 31, 2021 09:18
@pokey pokey modified the milestones: 0.22.0, 0.23.0 Aug 31, 2021
@pokey pokey force-pushed the multiple-hat-styles branch from 5b005dd to 09c590c Compare September 1, 2021 12:03
@AndreasArvidsson AndreasArvidsson merged commit 3d53c87 into master Sep 1, 2021
@AndreasArvidsson AndreasArvidsson deleted the multiple-hat-styles branch September 1, 2021 14:01
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.

2 participants