mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 10:54:51 +00:00
UI (#106)
* 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:
committed by
GitHub
parent
e7fded0c9e
commit
477afa142b
@@ -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) : "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -147,4 +147,4 @@ public class AssetManager {
|
||||
public static void addAsset(Asset<? extends BaseResource> asset) {
|
||||
assets.put(asset.getName(), asset);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user