mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 01:02:19 +00:00
Better Texture Selection GUI
This commit is contained in:
1 parent
4369f99225
commit
8203fc7d6b
4 files changed
+346
-2
No files matched your search
@@ -175,7 +175,7 @@ public class SubGuiChainedAbilityConfig extends SubGuiInterface implements IText
|
||||
java.util.function.BooleanSupplier layerVisible = () -> chainIcon.getLayerCount() > idx;
|
||||
String sectionLabel = net.minecraft.util.StatCollector.translateToLocal("ability.icon.layer") + " " + (idx + 1);
|
||||
fieldDefs.add(FieldDef.section(sectionLabel).tab("Icon").visibleWhen(layerVisible));
|
||||
fieldDefs.add(FieldDef.stringField("gui.texture",
|
||||
fieldDefs.add(FieldDef.textureSubGui("gui.texture",
|
||||
() -> chainIcon.getLayer(idx).texture,
|
||||
t -> chainIcon.setLayerTexture(idx, t))
|
||||
.tab("Icon").visibleWhen(layerVisible));
|
||||
|
||||
Reference in new issue
Block a user