Small fixes

This commit is contained in:
Ne_Eo
2024-10-04 17:57:54 +02:00
parent 76f7069d99
commit cdfddcde48
7 changed files with 35 additions and 21 deletions
+4 -2
View File
@@ -6,6 +6,7 @@ import flixel.math.FlxPoint;
class EditorPicker extends MusicBeatSubstate {
public var bg:FlxSprite;
// Name is for backwards compatability, dont use it, use id instead
public var options:Array<Editor> = [
{
name: "Chart Editor",
@@ -80,7 +81,8 @@ class EditorPicker extends MusicBeatSubstate {
optionHeight = FlxG.height / options.length;
for(k=>o in options) {
var visualName = o.name;
var id = o.id + ".name";
var visualName = TU.translate(id);
var spr = new EditorPickerOption(visualName, o.iconID, optionHeight);
spr.y = k * optionHeight;
add(spr);
@@ -234,4 +236,4 @@ class EditorPickerOption extends FlxTypedSpriteGroup<FlxSprite> {
callback();
});
}
}
}