Use new place grid icon

This commit is contained in:
OliBomby 2024-10-07 16:51:53 +02:00
parent 533ed609fb
commit db10202642
2 changed files with 5 additions and 1 deletions

View File

@ -23,7 +23,7 @@ Right click to only set the origin.
"""; """;
} }
public override Drawable CreateIcon() => new SpriteIcon { Icon = OsuIcon.EditorGridSnap }; public override Drawable CreateIcon() => new SpriteIcon { Icon = OsuIcon.EditorPlaceGrid };
public override PlacementBlueprint CreatePlacementBlueprint() => new GridPlacementBlueprint(); public override PlacementBlueprint CreatePlacementBlueprint() => new GridPlacementBlueprint();
} }

View File

@ -178,6 +178,7 @@ public static class OsuIcon
public static IconUsage EditorWhistle => get(OsuIconMapping.EditorWhistle); public static IconUsage EditorWhistle => get(OsuIconMapping.EditorWhistle);
public static IconUsage Tortoise => get(OsuIconMapping.Tortoise); public static IconUsage Tortoise => get(OsuIconMapping.Tortoise);
public static IconUsage Hare => get(OsuIconMapping.Hare); public static IconUsage Hare => get(OsuIconMapping.Hare);
public static IconUsage EditorPlaceGrid => get(OsuIconMapping.EditorPlaceGrid);
private static IconUsage get(OsuIconMapping glyph) => new IconUsage((char)glyph, FONT_NAME); private static IconUsage get(OsuIconMapping glyph) => new IconUsage((char)glyph, FONT_NAME);
@ -392,6 +393,9 @@ private enum OsuIconMapping
[Description(@"hare")] [Description(@"hare")]
Hare, Hare,
[Description(@"Editor/place-grid")]
EditorPlaceGrid,
} }
public class OsuIconStore : ITextureStore, ITexturedGlyphLookupStore public class OsuIconStore : ITextureStore, ITexturedGlyphLookupStore