mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Add support for removing colours from palette
This commit is contained in:
@ -92,6 +92,7 @@ namespace osu.Game.Graphics.UserInterfaceV2
|
||||
});
|
||||
|
||||
display.Current.BindValueChanged(colour => Colours[colourIndex] = colour.NewValue);
|
||||
display.DeleteRequested += colourDeletionRequested;
|
||||
}
|
||||
|
||||
palette.Add(new AddColourButton
|
||||
@ -102,6 +103,8 @@ namespace osu.Game.Graphics.UserInterfaceV2
|
||||
reindexItems();
|
||||
}
|
||||
|
||||
private void colourDeletionRequested(ColourDisplay display) => Colours.RemoveAt(palette.IndexOf(display));
|
||||
|
||||
private void reindexItems()
|
||||
{
|
||||
int index = 1;
|
||||
|
Reference in New Issue
Block a user