mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
[Mobile] fix preferred icons
This commit is contained in:
@@ -66,7 +66,7 @@ public class FSkin {
|
||||
public void run() {
|
||||
FSkinFont.deleteCachedFiles(); //delete cached font files so font can be update for new skin
|
||||
FSkinFont.updateAll();
|
||||
CardImageRenderer.forceStaticFieldUpdate();
|
||||
//CardImageRenderer.forceStaticFieldUpdate();
|
||||
FThreads.invokeInEdtLater(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
|
||||
@@ -465,7 +465,7 @@ public enum FSkinImage implements FImage {
|
||||
}
|
||||
}
|
||||
if (texture != null) {
|
||||
if (sourceFile != SourceFile.ICONS && sourceFile != SourceFile.MANAICONS) { //just return region for preferred file if not icons file
|
||||
if (!(sourceFile == SourceFile.ICONS || sourceFile == SourceFile.MANAICONS)) { //just return region for preferred file if not icons file
|
||||
textureRegion = new TextureRegion(texture, x, y, w, h);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user