mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
Merge pull request #2655 from kevlahnota/newmaster2
fix old themes without hdbuttons and hdstart
This commit is contained in:
@@ -316,9 +316,13 @@ public class FSkin {
|
|||||||
Forge.hdbuttons = true;
|
Forge.hdbuttons = true;
|
||||||
}
|
}
|
||||||
} else if (f11b.exists() && Forge.allowCardBG) {
|
} else if (f11b.exists() && Forge.allowCardBG) {
|
||||||
|
if (FSkin.preferredName.isEmpty() || FSkin.preferredName.equalsIgnoreCase("default")) {
|
||||||
manager.load(f11b.path(), Texture.class, Forge.getAssets().getTextureFilter());
|
manager.load(f11b.path(), Texture.class, Forge.getAssets().getTextureFilter());
|
||||||
manager.finishLoadingAsset(f11b.path());
|
manager.finishLoadingAsset(f11b.path());
|
||||||
Forge.hdbuttons = true;
|
Forge.hdbuttons = true;
|
||||||
|
} else {
|
||||||
|
Forge.hdbuttons = false;
|
||||||
|
}
|
||||||
} else { Forge.hdbuttons = false; } //how to refresh buttons when a theme don't have hd buttons?
|
} else { Forge.hdbuttons = false; } //how to refresh buttons when a theme don't have hd buttons?
|
||||||
if (f12.exists()) {
|
if (f12.exists()) {
|
||||||
if (!Forge.allowCardBG) {
|
if (!Forge.allowCardBG) {
|
||||||
@@ -329,9 +333,13 @@ public class FSkin {
|
|||||||
Forge.hdstart = true;
|
Forge.hdstart = true;
|
||||||
}
|
}
|
||||||
} else if (f12b.exists() && Forge.allowCardBG) {
|
} else if (f12b.exists() && Forge.allowCardBG) {
|
||||||
|
if (FSkin.preferredName.isEmpty() || FSkin.preferredName.equalsIgnoreCase("default")) {
|
||||||
manager.load(f12b.path(), Texture.class, Forge.getAssets().getTextureFilter());
|
manager.load(f12b.path(), Texture.class, Forge.getAssets().getTextureFilter());
|
||||||
manager.finishLoadingAsset(f12b.path());
|
manager.finishLoadingAsset(f12b.path());
|
||||||
Forge.hdstart = true;
|
Forge.hdstart = true;
|
||||||
|
} else {
|
||||||
|
Forge.hdstart = false;
|
||||||
|
}
|
||||||
} else { Forge.hdstart = false; }
|
} else { Forge.hdstart = false; }
|
||||||
//update colors
|
//update colors
|
||||||
for (final FSkinColor.Colors c : FSkinColor.Colors.values()) {
|
for (final FSkinColor.Colors c : FSkinColor.Colors.values()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user