New button for selector menus (horrible code))

This commit is contained in:
NeeEoo
2023-08-07 23:23:47 +02:00
parent e7caf7e9bd
commit a3593fbf47
5 changed files with 72 additions and 9 deletions
+18
View File
@@ -0,0 +1,18 @@
package funkin.options.type;
import flixel.util.FlxColor;
import funkin.game.HealthIcon;
class NewOption extends TextOption {
public var iconSpr:FlxSprite;
public function new(name:String, desc:String, callback:Void->Void) {
super(name, desc, callback);
__text.color = FlxColor.LIME;
iconSpr = new FlxSprite().loadGraphic(Paths.image("editors/new"));
iconSpr.setPosition(90 - iconSpr.width, (__text.height - iconSpr.height) / 2);
add(iconSpr);
}
}