icon support FOR NOW.

This commit is contained in:
Hero
2025-07-25 17:51:53 +03:00
parent 36bb70d092
commit 5cff42ccd8
2 changed files with 14 additions and 3 deletions
@@ -57,6 +57,17 @@ final class WindowUtils {
updateTitle();
}
/**
* Sets the window title and icon.
* @param title The title to set.
* @param image The image to set as the icon.
**/
public static inline function setWindow(?name:String, ?image:String)
{
Lib.application.window.setIcon(lime.graphics.Image.fromBytes(Assets.getBytes(Flags.MOD_ICON != null ? Flags.MOD_ICON : image)));
title = Flags.MOD_NAME != null ? Flags.MOD_NAME : title;
}
/**
* Updates the window title to have the current title and prefix/suffix.
**/