mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-27 01:55:52 -05:00
switching opp
This commit is contained in:
parent
ac3f27edd4
commit
181e3f85b8
1 changed files with 5 additions and 0 deletions
|
@ -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