mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-09-12 05:07:06 +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.width = 70;
|
||||||
image.height = 70;
|
image.height = 70;
|
||||||
|
|
||||||
|
if (char == currentSongMetadata.playData.characters.opponent) image.selected = true;
|
||||||
|
|
||||||
image.icon = CharacterDataParser.getCharPixelIconAsset(char);
|
image.icon = CharacterDataParser.getCharPixelIconAsset(char);
|
||||||
image.onClick = _ -> {
|
image.onClick = _ -> {
|
||||||
|
healthIconsDirty = true;
|
||||||
|
currentSongMetadata.playData.characters.opponent = char;
|
||||||
toolbox.hideDialog(haxe.ui.containers.dialogs.Dialog.DialogButton.APPLY);
|
toolbox.hideDialog(haxe.ui.containers.dialogs.Dialog.DialogButton.APPLY);
|
||||||
|
|
||||||
// var label = toolbox.findComponent('charIconName');
|
// var label = toolbox.findComponent('charIconName');
|
||||||
// label.text = char;
|
// label.text = char;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue