1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-08-20 07:25:59 +00:00

switching opp

This commit is contained in:
Cameron Taylor 2023-12-11 02:26:37 -05:00
parent ac3f27edd4
commit 181e3f85b8

View file

@ -2123,9 +2123,14 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
image.width = 70;
image.height = 70;
if (char == currentSongMetadata.playData.characters.opponent) image.selected = true;
image.icon = CharacterDataParser.getCharPixelIconAsset(char);
image.onClick = _ -> {
healthIconsDirty = true;
currentSongMetadata.playData.characters.opponent = char;
toolbox.hideDialog(haxe.ui.containers.dialogs.Dialog.DialogButton.APPLY);
// var label = toolbox.findComponent('charIconName');
// label.text = char;
};