* added localization options
//todo add all the strings

* broken push

* merge to UI

* broken push

* Alpha rebase complete, added asset loader for UI branch

* merge to UI

* UI now uses assetmanager

* added NL and EN for all strings currently in UI

* fix small merge error

* Removed no more needed files.

* JDK25

* Removed files no longer in use

* Removed need for manual typecast

* Added ability to load in BundledResource for localization

* Docs and easy font loading. Added interfaces for PreloadResource's

* added German, French, Spanish, Italian and Mandarin Chinese

---------

Co-authored-by: Ticho Hidding <tichohidding@gmail.com>
Co-authored-by: ramollia <@>
This commit is contained in:
Bas Antonius de Jong
2025-10-02 19:25:21 +02:00
committed by GitHub
parent e7fded0c9e
commit 477afa142b
14 changed files with 121 additions and 41 deletions

View File

@@ -144,6 +144,7 @@ public class AssetLoader {
"File " + file.getName() + " is not of type " + type.getSimpleName()
);
}
return type.cast(resource);
}
@@ -242,4 +243,4 @@ public class AssetLoader {
int i = name.lastIndexOf('.');
return (i > 0) ? name.substring(i + 1) : "";
}
}
}

View File

@@ -147,4 +147,4 @@ public class AssetManager {
public static void addAsset(Asset<? extends BaseResource> asset) {
assets.put(asset.getName(), asset);
}
}
}