cool stuff

This commit is contained in:
Yoshman29
2023-03-13 22:51:31 +01:00
parent e0076a4ddf
commit c97eb04e12
9 changed files with 88 additions and 22 deletions
+15
View File
@@ -0,0 +1,15 @@
package funkin.options.type;
import funkin.game.HealthIcon;
class IconOption extends TextOption {
public var iconSpr:HealthIcon;
public function new(name:String, desc:String, icon:String, callback:Void->Void) {
super(name, desc, callback);
iconSpr = new HealthIcon(icon, false);
iconSpr.setPosition(90 - iconSpr.width, (__text.height - iconSpr.height) / 2);
add(iconSpr);
}
}