mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-08-20 07:25:59 +00:00
switching opp
This commit is contained in:
parent
ac3f27edd4
commit
181e3f85b8
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue