mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 14:19:49 +00:00
Better Texture Browsing for Ability Icons
This commit is contained in:
1 parent
e57fab9160
commit
27ea836f71
4 files changed
+44
-14
No files matched your search
@@ -968,7 +968,7 @@ public abstract class Ability implements IAbility, IAbilityAction {
|
||||
java.util.function.BooleanSupplier visible) {
|
||||
String sectionLabel = StatCollector.translateToLocal("ability.icon.layer") + " " + (layerIndex + 1);
|
||||
defs.add(FieldDef.section(sectionLabel).tab("Effects").visibleWhen(visible));
|
||||
defs.add(FieldDef.stringField("gui.texture",
|
||||
defs.add(FieldDef.textureSubGui("gui.texture",
|
||||
() -> icon.getLayer(layerIndex).texture,
|
||||
t -> icon.setLayerTexture(layerIndex, t))
|
||||
.tab("Effects").visibleWhen(visible));
|
||||
|
||||
Reference in new issue
Block a user