Format .hx files
Co-Authored-By: Eric <4635334+EliteMasterEric@users.noreply.github.com>
This commit is contained in:
@@ -13,7 +13,6 @@ class ChartEditorBaseDialog extends Dialog
|
||||
{
|
||||
var chartEditorState:ChartEditorState;
|
||||
var params:DialogParams;
|
||||
|
||||
var locked:Bool = false;
|
||||
|
||||
public function new(chartEditorState:ChartEditorState, params:DialogParams)
|
||||
|
||||
@@ -16,8 +16,7 @@ import flixel.tweens.FlxEase;
|
||||
import haxe.ui.components.Button;
|
||||
|
||||
// @:nullSafety // TODO: Fix null safety when used with HaxeUI build macros.
|
||||
@:access(funkin.ui.debug.charting.ChartEditorState)
|
||||
@:build(haxe.ui.ComponentBuilder.build("assets/exclude/data/ui/chart-editor/dialogs/character-icon-selector.xml"))
|
||||
@:access(funkin.ui.debug.charting.ChartEditorState) @:build(haxe.ui.ComponentBuilder.build("assets/exclude/data/ui/chart-editor/dialogs/character-icon-selector.xml"))
|
||||
class ChartEditorCharacterIconSelectorMenu extends ChartEditorBaseMenu
|
||||
{
|
||||
public var charSelectScroll:ScrollView;
|
||||
@@ -49,18 +48,25 @@ class ChartEditorCharacterIconSelectorMenu extends ChartEditorBaseMenu
|
||||
{
|
||||
currentCharId = switch (charType)
|
||||
{
|
||||
case BF: chartEditorState.currentSongMetadata.playData.characters.player;
|
||||
case GF: chartEditorState.currentSongMetadata.playData.characters.girlfriend;
|
||||
case DAD: chartEditorState.currentSongMetadata.playData.characters.opponent;
|
||||
default: throw 'Invalid charType: ' + charType;
|
||||
case BF:
|
||||
chartEditorState.currentSongMetadata.playData.characters.player;
|
||||
case GF:
|
||||
chartEditorState.currentSongMetadata.playData.characters.girlfriend;
|
||||
case DAD:
|
||||
chartEditorState.currentSongMetadata.playData.characters.opponent;
|
||||
default:
|
||||
throw 'Invalid charType: ' + charType;
|
||||
};
|
||||
|
||||
// Position this menu.
|
||||
var targetHealthIcon:Null<HealthIcon> = switch (charType)
|
||||
{
|
||||
case BF: chartEditorState.healthIconBF;
|
||||
case DAD: chartEditorState.healthIconDad;
|
||||
default: null;
|
||||
case BF:
|
||||
chartEditorState.healthIconBF;
|
||||
case DAD:
|
||||
chartEditorState.healthIconDad;
|
||||
default:
|
||||
null;
|
||||
};
|
||||
|
||||
if (lockPosition && targetHealthIcon != null)
|
||||
@@ -120,11 +126,13 @@ class ChartEditorCharacterIconSelectorMenu extends ChartEditorBaseMenu
|
||||
case BF:
|
||||
chartEditorState.currentSongMetadata.playData.characters.player = charId;
|
||||
chartEditorState.playerPreviewDirty = true;
|
||||
case GF: chartEditorState.currentSongMetadata.playData.characters.girlfriend = charId;
|
||||
case GF:
|
||||
chartEditorState.currentSongMetadata.playData.characters.girlfriend = charId;
|
||||
case DAD:
|
||||
chartEditorState.currentSongMetadata.playData.characters.opponent = charId;
|
||||
chartEditorState.opponentPreviewDirty = true;
|
||||
default: throw 'Invalid charType: ' + charType;
|
||||
default:
|
||||
throw 'Invalid charType: ' + charType;
|
||||
};
|
||||
|
||||
defaultText = (charId != "") ? '${charData.name} [${charId}]' : 'None';
|
||||
|
||||
@@ -10,8 +10,7 @@ import haxe.ui.containers.dialogs.Dialog.DialogButton;
|
||||
import haxe.ui.containers.dialogs.Dialog.DialogEvent;
|
||||
|
||||
// @:nullSafety // TODO: Fix null safety when used with HaxeUI build macros.
|
||||
@:build(haxe.ui.ComponentBuilder.build("assets/exclude/data/ui/chart-editor/dialogs/upload-chart.xml"))
|
||||
@:access(funkin.ui.debug.charting.ChartEditorState)
|
||||
@:build(haxe.ui.ComponentBuilder.build("assets/exclude/data/ui/chart-editor/dialogs/upload-chart.xml")) @:access(funkin.ui.debug.charting.ChartEditorState)
|
||||
class ChartEditorUploadChartDialog extends ChartEditorBaseDialog
|
||||
{
|
||||
var dropHandlers:Array<DialogDropTarget> = [];
|
||||
|
||||
@@ -17,17 +17,14 @@ import haxe.ui.core.Component;
|
||||
|
||||
// @:nullSafety // TODO: Fix null safety when used with HaxeUI build macros.
|
||||
|
||||
@:build(haxe.ui.ComponentBuilder.build("assets/exclude/data/ui/chart-editor/dialogs/upload-vocals.xml"))
|
||||
@:access(funkin.ui.debug.charting.ChartEditorState)
|
||||
@:build(haxe.ui.ComponentBuilder.build("assets/exclude/data/ui/chart-editor/dialogs/upload-vocals.xml")) @:access(funkin.ui.debug.charting.ChartEditorState)
|
||||
class ChartEditorUploadVocalsDialog extends ChartEditorBaseDialog
|
||||
{
|
||||
var dropHandlers:Array<DialogDropTarget> = [];
|
||||
|
||||
var vocalContainer:Component;
|
||||
var dialogCancel:Button;
|
||||
var dialogNoVocals:Button;
|
||||
var dialogContinue:Button;
|
||||
|
||||
var charIds:Array<String>;
|
||||
var instId:String;
|
||||
var hasClearedVocals:Bool = false;
|
||||
|
||||
@@ -17,8 +17,7 @@ import haxe.ui.events.MouseEvent;
|
||||
* Builds and opens a dialog letting the user create a new chart, open a recent chart, or load from a template.
|
||||
* Opens when the chart editor first opens.
|
||||
*/
|
||||
@:build(haxe.ui.ComponentBuilder.build("assets/exclude/data/ui/chart-editor/dialogs/welcome.xml"))
|
||||
@:access(funkin.ui.debug.charting.ChartEditorState)
|
||||
@:build(haxe.ui.ComponentBuilder.build("assets/exclude/data/ui/chart-editor/dialogs/welcome.xml")) @:access(funkin.ui.debug.charting.ChartEditorState)
|
||||
class ChartEditorWelcomeDialog extends ChartEditorBaseDialog
|
||||
{
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user