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