From 8056640102d9897a59ae7372f2622a3b6c93c3c8 Mon Sep 17 00:00:00 2001 From: Kam Date: Sat, 28 Feb 2026 16:58:38 -0500 Subject: [PATCH] Default Icon Layer Handling --- .../controllers/data/ability/Ability.java | 108 ++++++---- .../data/ability/data/AbilityIconData.java | 190 ++++++++++++------ .../data/ability/type/AbilityCharge.java | 3 + .../data/ability/type/AbilityCutter.java | 4 + .../data/ability/type/AbilityDash.java | 3 + .../data/ability/type/AbilityEffect.java | 5 + .../data/ability/type/AbilityGuard.java | 3 + .../data/ability/type/AbilityHazard.java | 6 + .../data/ability/type/AbilityHeavyHit.java | 5 + .../data/ability/type/AbilityShockwave.java | 5 + .../data/ability/type/AbilitySlam.java | 3 + .../data/ability/type/AbilityTeleport.java | 3 + .../data/ability/type/AbilityTrap.java | 5 + .../data/ability/type/AbilityVortex.java | 4 + .../data/ability/type/energy/AbilityBeam.java | 6 +- .../data/ability/type/energy/AbilityDisc.java | 7 +- .../data/ability/type/energy/AbilityDome.java | 5 + .../ability/type/energy/AbilityLaser.java | 7 +- .../data/ability/type/energy/AbilityOrb.java | 7 +- .../ability/type/energy/AbilityShield.java | 5 + .../ability/type/energy/AbilitySweeper.java | 6 + .../data/ability/type/energy/AbilityWall.java | 6 + .../advanced/SubGuiChainedAbilityConfig.java | 35 +++- .../client/gui/hud/ability/AbilityIcon.java | 126 +++++------- .../assets/customnpcs/lang/en_US.lang | 2 + .../customnpcs/textures/gui/ability/beam.png | Bin 0 -> 709 bytes .../textures/gui/ability/charge.png | Bin 0 -> 665 bytes .../textures/gui/ability/cutter.png | Bin 0 -> 576 bytes .../customnpcs/textures/gui/ability/dash.png | Bin 0 -> 824 bytes .../customnpcs/textures/gui/ability/disc.png | Bin 0 -> 549 bytes .../textures/gui/ability/disc_overlay.png | Bin 0 -> 258 bytes .../customnpcs/textures/gui/ability/dome.png | Bin 0 -> 609 bytes .../textures/gui/ability/effect.png | Bin 0 -> 600 bytes .../textures/gui/ability/effect_overlay.png | Bin 0 -> 513 bytes .../customnpcs/textures/gui/ability/guard.png | Bin 0 -> 626 bytes .../textures/gui/ability/hazard.png | Bin 0 -> 437 bytes .../textures/gui/ability/hazard_overlay.png | Bin 0 -> 241 bytes .../textures/gui/ability/heavy_hit.png | Bin 0 -> 882 bytes .../gui/ability/heavy_hit_overlay.png | Bin 0 -> 469 bytes .../textures/gui/ability/laser_shot.png | Bin 0 -> 753 bytes .../gui/ability/laser_shot_overlay.png | Bin 0 -> 351 bytes .../customnpcs/textures/gui/ability/orb.png | Bin 0 -> 449 bytes .../textures/gui/ability/orb_overlay.png | Bin 0 -> 614 bytes .../textures/gui/ability/shield.png | Bin 0 -> 703 bytes .../textures/gui/ability/shockwave.png | Bin 0 -> 362 bytes .../gui/ability/shockwave_overlay.png | Bin 0 -> 405 bytes .../customnpcs/textures/gui/ability/slam.png | Bin 0 -> 949 bytes .../textures/gui/ability/sweeper.png | Bin 0 -> 364 bytes .../textures/gui/ability/sweeper_overlay.png | Bin 0 -> 608 bytes .../textures/gui/ability/teleport.png | Bin 0 -> 909 bytes .../customnpcs/textures/gui/ability/trap.png | Bin 0 -> 718 bytes .../textures/gui/ability/vortex.png | Bin 0 -> 1105 bytes .../customnpcs/textures/gui/ability/wall.png | Bin 0 -> 382 bytes .../textures/gui/ability/wall_overlay.png | Bin 0 -> 558 bytes 54 files changed, 360 insertions(+), 199 deletions(-) create mode 100644 src/main/resources/assets/customnpcs/textures/gui/ability/beam.png create mode 100644 src/main/resources/assets/customnpcs/textures/gui/ability/charge.png create mode 100644 src/main/resources/assets/customnpcs/textures/gui/ability/cutter.png create mode 100644 src/main/resources/assets/customnpcs/textures/gui/ability/dash.png create mode 100644 src/main/resources/assets/customnpcs/textures/gui/ability/disc.png create mode 100644 src/main/resources/assets/customnpcs/textures/gui/ability/disc_overlay.png create mode 100644 src/main/resources/assets/customnpcs/textures/gui/ability/dome.png create mode 100644 src/main/resources/assets/customnpcs/textures/gui/ability/effect.png create mode 100644 src/main/resources/assets/customnpcs/textures/gui/ability/effect_overlay.png create mode 100644 src/main/resources/assets/customnpcs/textures/gui/ability/guard.png create mode 100644 src/main/resources/assets/customnpcs/textures/gui/ability/hazard.png create mode 100644 src/main/resources/assets/customnpcs/textures/gui/ability/hazard_overlay.png create mode 100644 src/main/resources/assets/customnpcs/textures/gui/ability/heavy_hit.png create mode 100644 src/main/resources/assets/customnpcs/textures/gui/ability/heavy_hit_overlay.png create mode 100644 src/main/resources/assets/customnpcs/textures/gui/ability/laser_shot.png create mode 100644 src/main/resources/assets/customnpcs/textures/gui/ability/laser_shot_overlay.png create mode 100644 src/main/resources/assets/customnpcs/textures/gui/ability/orb.png create mode 100644 src/main/resources/assets/customnpcs/textures/gui/ability/orb_overlay.png create mode 100644 src/main/resources/assets/customnpcs/textures/gui/ability/shield.png create mode 100644 src/main/resources/assets/customnpcs/textures/gui/ability/shockwave.png create mode 100644 src/main/resources/assets/customnpcs/textures/gui/ability/shockwave_overlay.png create mode 100644 src/main/resources/assets/customnpcs/textures/gui/ability/slam.png create mode 100644 src/main/resources/assets/customnpcs/textures/gui/ability/sweeper.png create mode 100644 src/main/resources/assets/customnpcs/textures/gui/ability/sweeper_overlay.png create mode 100644 src/main/resources/assets/customnpcs/textures/gui/ability/teleport.png create mode 100644 src/main/resources/assets/customnpcs/textures/gui/ability/trap.png create mode 100644 src/main/resources/assets/customnpcs/textures/gui/ability/vortex.png create mode 100644 src/main/resources/assets/customnpcs/textures/gui/ability/wall.png create mode 100644 src/main/resources/assets/customnpcs/textures/gui/ability/wall_overlay.png diff --git a/src/main/java/kamkeel/npcs/controllers/data/ability/Ability.java b/src/main/java/kamkeel/npcs/controllers/data/ability/Ability.java index e4262a70a..2f73c1b58 100644 --- a/src/main/java/kamkeel/npcs/controllers/data/ability/Ability.java +++ b/src/main/java/kamkeel/npcs/controllers/data/ability/Ability.java @@ -136,12 +136,33 @@ public abstract class Ability implements IAbility, IAbilityAction { protected transient boolean builtIn = false; protected transient String registryKey; - // Default icon (set in subclass constructors, NOT persisted) - protected transient String defaultIconTexture = ""; - protected transient java.util.function.IntSupplier defaultIconColorSource = null; + // Default icon layers (set in subclass constructors, NOT persisted) + protected transient DefaultIconLayer[] defaultIconLayers = null; protected transient int defaultIconWidth = 48; protected transient int defaultIconHeight = 48; - protected transient String[] defaultIconStateTextures = null; + + /** + * A single layer of a default ability icon. Each layer has a texture and + * an optional dynamic color source derived from the ability's properties. + */ + public static class DefaultIconLayer { + public final String texture; + public final java.util.function.IntSupplier colorSource; + + public DefaultIconLayer(String texture, java.util.function.IntSupplier colorSource) { + this.texture = texture; + this.colorSource = colorSource; + } + + /** Layer with no color tinting (renders as white). */ + public DefaultIconLayer(String texture) { + this(texture, null); + } + + public int getColor() { + return colorSource != null ? colorSource.getAsInt() : 0xFFFFFF; + } + } // ═══════════════════════════════════════════════════════════════════ // TOGGLE CONFIGURATION (saved to NBT for custom abilities) @@ -778,27 +799,23 @@ public abstract class Ability implements IAbility, IAbilityAction { // ── Icon section (Effects tab) ─────────────────────────── if (!isNpcInlineEdit()) { AbilityIconData icon = AbilityIconData.fromAbility(this); + java.util.function.BooleanSupplier isCustom = icon::isEnabled; + defs.add(FieldDef.section("ability.section.icon").tab("Effects")); defs.add(FieldDef.boolField("ability.hasIcon", icon::isEnabled, icon::setEnabled) .tab("Effects")); - defs.add(FieldDef.stringField("gui.texture", icon::getTexture, icon::setTexture) - .tab("Effects").visibleWhen(icon::isEnabled)); - defs.add(FieldDef.section("ability.icon.section.uv").tab("Effects") - .visibleWhen(icon::isEnabled)); - defs.add(FieldDef.intField("ability.icon.x", icon::getIconX, icon::setIconX) - .tab("Effects").range(0, 4096).visibleWhen(icon::isEnabled)); - defs.add(FieldDef.intField("ability.icon.y", icon::getIconY, icon::setIconY) - .tab("Effects").range(0, 4096).visibleWhen(icon::isEnabled)); - defs.add(FieldDef.section("gui.size").tab("Effects") - .visibleWhen(icon::isEnabled)); - defs.add(FieldDef.intField("gui.width", icon::getWidth, icon::setWidth) - .tab("Effects").range(1, 256).visibleWhen(icon::isEnabled)); - defs.add(FieldDef.intField("gui.height", icon::getHeight, icon::setHeight) - .tab("Effects").range(1, 256).visibleWhen(icon::isEnabled)); + defs.add(FieldDef.row( + FieldDef.intField("gui.width", icon::getWidth, icon::setWidth).range(1, 256), + FieldDef.intField("gui.height", icon::getHeight, icon::setHeight).range(1, 256) + ).tab("Effects").visibleWhen(isCustom)); defs.add(FieldDef.floatField("gui.scale", icon::getScale, icon::setScale) - .tab("Effects").range(0.1f, 10.0f).visibleWhen(icon::isEnabled)); - defs.add(FieldDef.colorSubGui("ability.icon.tint", icon::getTintColor, icon::setTintColor) - .tab("Effects").visibleWhen(icon::isEnabled)); + .tab("Effects").range(0.1f, 10.0f).visibleWhen(isCustom)); + defs.add(FieldDef.intField("ability.icon.layers", icon::getLayerCount, icon::setLayerCount) + .tab("Effects").range(1, AbilityIconData.MAX_LAYERS).visibleWhen(isCustom)); + + addIconLayerFields(defs, icon, 0, isCustom); + addIconLayerFields(defs, icon, 1, () -> isCustom.getAsBoolean() && icon.getLayerCount() >= 2); + addIconLayerFields(defs, icon, 2, () -> isCustom.getAsBoolean() && icon.getLayerCount() >= 3); } // External field providers (e.g., DBC Addon injecting a "DBC" tab) @@ -809,6 +826,28 @@ public abstract class Ability implements IAbility, IAbilityAction { return defs; } + private void addIconLayerFields(List defs, AbilityIconData icon, int layerIndex, + 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", + () -> icon.getLayer(layerIndex).texture, + t -> icon.setLayerTexture(layerIndex, t)) + .tab("Effects").visibleWhen(visible)); + defs.add(FieldDef.row( + FieldDef.intField("ability.icon.x", + () -> icon.getLayer(layerIndex).iconX, + x -> icon.setLayerIconX(layerIndex, x)).range(0, 4096), + FieldDef.intField("ability.icon.y", + () -> icon.getLayer(layerIndex).iconY, + y -> icon.setLayerIconY(layerIndex, y)).range(0, 4096) + ).tab("Effects").visibleWhen(visible)); + defs.add(FieldDef.colorSubGui("ability.icon.tint", + () -> icon.getLayer(layerIndex).tintColor, + c -> icon.setLayerTintColor(layerIndex, c)) + .tab("Effects").visibleWhen(visible)); + } + /** * Creates the GUI for configuring this ability. * Override this method to provide a custom GUI subclass for type-specific settings. @@ -1622,24 +1661,8 @@ public abstract class Ability implements IAbility, IAbilityAction { // DEFAULT ICON // ═══════════════════════════════════════════════════════════════════ - public String getDefaultIconTexture() { - return defaultIconTexture; - } - - /** - * Returns the default icon texture for a specific toggle state. - * Falls back to the base defaultIconTexture if no state-specific texture exists. - * @param state 1-indexed toggle state (0 = off/default) - */ - public String getDefaultIconTextureForState(int state) { - if (state > 0 && defaultIconStateTextures != null && state - 1 < defaultIconStateTextures.length) { - return defaultIconStateTextures[state - 1]; - } - return defaultIconTexture; - } - - public int getDefaultIconColor() { - return defaultIconColorSource != null ? defaultIconColorSource.getAsInt() : 0xFFFFFF; + public DefaultIconLayer[] getDefaultIconLayers() { + return defaultIconLayers; } public int getDefaultIconWidth() { @@ -1650,12 +1673,9 @@ public abstract class Ability implements IAbility, IAbilityAction { return defaultIconHeight; } - public String[] getDefaultIconStateTextures() { - return defaultIconStateTextures; - } - public boolean hasDefaultIcon() { - return defaultIconTexture != null && !defaultIconTexture.isEmpty(); + return defaultIconLayers != null && defaultIconLayers.length > 0 + && defaultIconLayers[0].texture != null && !defaultIconLayers[0].texture.isEmpty(); } public Ability deepCopy() { diff --git a/src/main/java/kamkeel/npcs/controllers/data/ability/data/AbilityIconData.java b/src/main/java/kamkeel/npcs/controllers/data/ability/data/AbilityIconData.java index 9380e2116..a6daa1044 100644 --- a/src/main/java/kamkeel/npcs/controllers/data/ability/data/AbilityIconData.java +++ b/src/main/java/kamkeel/npcs/controllers/data/ability/data/AbilityIconData.java @@ -6,17 +6,16 @@ import net.minecraft.nbt.NBTTagList; /** * Icon data for abilities, stored in the ability's customData NBT under "AbilityIcon". - * Used to render ability icons in the Ability Hotbar, Wheel, and Abilities Tab. + * Supports up to 3 layers, each with its own texture, UV coordinates, and tint color. + * Width, height, and scale are shared across all layers. */ public class AbilityIconData { public static final String NBT_KEY = "AbilityIcon"; + public static final int MAX_LAYERS = 3; private final NBTTagCompound customData; - // Icon properties - public String texture = ""; - public int iconX = 0; - public int iconY = 0; + // Shared across all layers public int width = 32; public int height = 32; public float scale = 1.0f; @@ -24,12 +23,50 @@ public class AbilityIconData { /** Whether a custom icon override is active. Default false = use type's default icon. */ private boolean enabled = false; - /** Manual tint color for the custom icon (0xRRGGBB). Default white = no tint. */ - private int tintColor = 0xFFFFFF; + /** Number of active layers (1-3). */ + private int layerCount = 1; - /** Per-state icon UV overrides (0-indexed, maps to toggle states 1, 2, ...). */ + /** Layer data (always 3 slots allocated). */ + private Layer[] layers = { new Layer(), new Layer(), new Layer() }; + + /** Per-state icon UV overrides for layer 0 (0-indexed, maps to toggle states 1, 2, ...). */ private int[][] stateIcons = null; + // ═══════════════════════════════════════════════════════════════════ + // LAYER INNER CLASS + // ═══════════════════════════════════════════════════════════════════ + + public static class Layer { + public String texture = ""; + public int iconX = 0; + public int iconY = 0; + public int tintColor = 0xFFFFFF; + + public Layer() {} + + public boolean hasTexture() { + return texture != null && !texture.isEmpty(); + } + + public void writeToNBT(NBTTagCompound nbt) { + nbt.setString("Texture", texture); + nbt.setInteger("IconX", iconX); + nbt.setInteger("IconY", iconY); + nbt.setInteger("TintColor", tintColor); + } + + public void readFromNBT(NBTTagCompound nbt) { + texture = nbt.getString("Texture"); + iconX = nbt.getInteger("IconX"); + iconY = nbt.getInteger("IconY"); + tintColor = nbt.hasKey("TintColor") ? nbt.getInteger("TintColor") : 0xFFFFFF; + } + } + + // ═══════════════════════════════════════════════════════════════════ + // CONSTRUCTION + // ═══════════════════════════════════════════════════════════════════ + private AbilityIconData(NBTTagCompound customData) { this.customData = customData; } @@ -60,6 +97,10 @@ public class AbilityIconData { return fromCustomData(chain.getCustomData()); } + // ═══════════════════════════════════════════════════════════════════ + // NBT SERIALIZATION + // ═══════════════════════════════════════════════════════════════════ + /** * Write current state back to the customData NBT. */ @@ -71,13 +112,19 @@ public class AbilityIconData { public void writeToNBT(NBTTagCompound nbt) { nbt.setBoolean("Enabled", enabled); - nbt.setString("Texture", texture); - nbt.setInteger("IconX", iconX); - nbt.setInteger("IconY", iconY); nbt.setInteger("Width", width); nbt.setInteger("Height", height); nbt.setFloat("Scale", scale); - nbt.setInteger("TintColor", tintColor); + nbt.setInteger("LayerCount", layerCount); + + NBTTagList layerList = new NBTTagList(); + for (int i = 0; i < MAX_LAYERS; i++) { + NBTTagCompound layerNBT = new NBTTagCompound(); + layers[i].writeToNBT(layerNBT); + layerList.appendTag(layerNBT); + } + nbt.setTag("Layers", layerList); + if (stateIcons != null && stateIcons.length > 0) { NBTTagList list = new NBTTagList(); for (int[] pair : stateIcons) { @@ -92,16 +139,27 @@ public class AbilityIconData { public void readFromNBT(NBTTagCompound nbt) { enabled = nbt.getBoolean("Enabled"); - texture = nbt.getString("Texture"); - tintColor = nbt.hasKey("TintColor") ? nbt.getInteger("TintColor") : 0xFFFFFF; - iconX = nbt.getInteger("IconX"); - iconY = nbt.getInteger("IconY"); width = nbt.getInteger("Width"); if (width <= 0) width = 32; height = nbt.getInteger("Height"); if (height <= 0) height = 32; scale = nbt.getFloat("Scale"); if (scale <= 0) scale = 1.0f; + + layerCount = nbt.getInteger("LayerCount"); + if (layerCount < 1) layerCount = 1; + if (layerCount > MAX_LAYERS) layerCount = MAX_LAYERS; + + if (nbt.hasKey("Layers")) { + NBTTagList layerList = nbt.getTagList("Layers", 10); + for (int i = 0; i < MAX_LAYERS; i++) { + layers[i] = new Layer(); + if (i < layerList.tagCount()) { + layers[i].readFromNBT(layerList.getCompoundTagAt(i)); + } + } + } + if (nbt.hasKey("StateIcons")) { NBTTagList list = nbt.getTagList("StateIcons", 10); stateIcons = new int[list.tagCount()][2]; @@ -113,15 +171,53 @@ public class AbilityIconData { } } - /** - * Check if this icon has a valid texture configured. - */ - public boolean hasTexture() { - return texture != null && !texture.isEmpty(); + // ═══════════════════════════════════════════════════════════════════ + // LAYER API + // ═══════════════════════════════════════════════════════════════════ + + public int getLayerCount() { + return layerCount; + } + + public void setLayerCount(int count) { + this.layerCount = Math.max(1, Math.min(MAX_LAYERS, count)); + save(); + } + + public Layer getLayer(int index) { + return (index >= 0 && index < MAX_LAYERS) ? layers[index] : layers[0]; + } + + public void setLayerTexture(int index, String tex) { + if (index >= 0 && index < MAX_LAYERS) { + layers[index].texture = tex != null ? tex : ""; + save(); + } + } + + public void setLayerIconX(int index, int x) { + if (index >= 0 && index < MAX_LAYERS) { + layers[index].iconX = Math.max(0, x); + save(); + } + } + + public void setLayerIconY(int index, int y) { + if (index >= 0 && index < MAX_LAYERS) { + layers[index].iconY = Math.max(0, y); + save(); + } + } + + public void setLayerTintColor(int index, int color) { + if (index >= 0 && index < MAX_LAYERS) { + layers[index].tintColor = color & 0xFFFFFF; + save(); + } } // ═══════════════════════════════════════════════════════════════════ - // GETTERS AND SETTERS (with auto-save) + // SHARED PROPERTY GETTERS/SETTERS (with auto-save) // ═══════════════════════════════════════════════════════════════════ public boolean isEnabled() { @@ -133,42 +229,6 @@ public class AbilityIconData { save(); } - public int getTintColor() { - return tintColor; - } - - public void setTintColor(int tintColor) { - this.tintColor = tintColor & 0xFFFFFF; - save(); - } - - public String getTexture() { - return texture; - } - - public void setTexture(String texture) { - this.texture = texture != null ? texture : ""; - save(); - } - - public int getIconX() { - return iconX; - } - - public void setIconX(int iconX) { - this.iconX = Math.max(0, iconX); - save(); - } - - public int getIconY() { - return iconY; - } - - public void setIconY(int iconY) { - this.iconY = Math.max(0, iconY); - save(); - } - public int getWidth() { return width; } @@ -197,7 +257,7 @@ public class AbilityIconData { } // ═══════════════════════════════════════════════════════════════════ - // PER-STATE ICON OVERRIDES + // PER-STATE ICON OVERRIDES (applies to layer 0) // ═══════════════════════════════════════════════════════════════════ public void setStateIcons(int[][] stateIcons) { @@ -206,26 +266,26 @@ public class AbilityIconData { } /** - * Get iconX for a specific toggle state. - * Falls back to default iconX if no state override exists. + * Get iconX for a specific toggle state (layer 0). + * Falls back to layer 0 iconX if no state override exists. * @param state 1-indexed toggle state (0 = off/default) */ public int getIconXForState(int state) { if (state > 0 && stateIcons != null && state - 1 < stateIcons.length) { return stateIcons[state - 1][0]; } - return iconX; + return layers[0].iconX; } /** - * Get iconY for a specific toggle state. - * Falls back to default iconY if no state override exists. + * Get iconY for a specific toggle state (layer 0). + * Falls back to layer 0 iconY if no state override exists. * @param state 1-indexed toggle state (0 = off/default) */ public int getIconYForState(int state) { if (state > 0 && stateIcons != null && state - 1 < stateIcons.length) { return stateIcons[state - 1][1]; } - return iconY; + return layers[0].iconY; } } diff --git a/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityCharge.java b/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityCharge.java index da7e60344..4ad6811d5 100644 --- a/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityCharge.java +++ b/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityCharge.java @@ -53,6 +53,9 @@ public class AbilityCharge extends AbilityMovement implements IAbilityCharge { this.activeSound = "mob.zombie.attack"; this.windUpAnimationName = "Ability_Charge_Windup"; this.activeAnimationName = "Ability_Charge_Active"; + this.defaultIconLayers = new DefaultIconLayer[]{ + new DefaultIconLayer("customnpcs:textures/gui/ability/charge.png") + }; } @Override diff --git a/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityCutter.java b/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityCutter.java index c7b88961e..d2e4a3200 100644 --- a/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityCutter.java +++ b/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityCutter.java @@ -79,6 +79,10 @@ public class AbilityCutter extends Ability implements IAbilityCutter { this.activeSound = "random.break"; this.windUpAnimationName = "Ability_Cutter_Windup"; this.activeAnimationName = "Ability_Cutter_Active"; + this.defaultIconLayers = new DefaultIconLayer[]{ + new DefaultIconLayer("customnpcs:textures/gui/ability/cutter.png", + this::getActiveColor) + }; } @Override diff --git a/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityDash.java b/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityDash.java index c3bbccd4c..88c520c21 100644 --- a/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityDash.java +++ b/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityDash.java @@ -144,6 +144,9 @@ public class AbilityDash extends AbilityMovement implements IAbilityDash { this.telegraphType = TelegraphType.NONE; this.showTelegraph = false; this.windUpSound = "mob.bat.takeoff"; + this.defaultIconLayers = new DefaultIconLayer[]{ + new DefaultIconLayer("customnpcs:textures/gui/ability/dash.png") + }; } @Override diff --git a/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityEffect.java b/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityEffect.java index b979f255c..ae27b98a9 100644 --- a/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityEffect.java +++ b/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityEffect.java @@ -78,6 +78,11 @@ public class AbilityEffect extends Ability implements IAbilityEffect { this.windUpTicks = 30; this.telegraphType = TelegraphType.NONE; this.showTelegraph = false; + this.defaultIconLayers = new DefaultIconLayer[]{ + new DefaultIconLayer("customnpcs:textures/gui/ability/effect.png"), + new DefaultIconLayer("customnpcs:textures/gui/ability/effect_overlay.png", + this::getActiveColor) + }; } // ==================== ABILITY TYPE OVERRIDES ==================== diff --git a/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityGuard.java b/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityGuard.java index 355b1674e..cdac1f9d6 100644 --- a/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityGuard.java +++ b/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityGuard.java @@ -64,6 +64,9 @@ public class AbilityGuard extends Ability implements IAbilityGuard { this.activeAnimationName = "Ability_Guard_Active"; this.counterAnimationName = "Ability_Guard_Counter"; + this.defaultIconLayers = new DefaultIconLayer[]{ + new DefaultIconLayer("customnpcs:textures/gui/ability/guard.png") + }; } @Override diff --git a/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityHazard.java b/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityHazard.java index 64638510a..23ff298db 100644 --- a/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityHazard.java +++ b/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityHazard.java @@ -30,6 +30,12 @@ public class AbilityHazard extends AbilityZone implements IAbilityHazard { this.windUpTicks = 30; this.windUpAnimationName = "Ability_Zone_Windup"; this.activeAnimationName = "Ability_Zone_Active"; + + this.defaultIconLayers = new DefaultIconLayer[]{ + new DefaultIconLayer("customnpcs:textures/gui/ability/hazard.png"), + new DefaultIconLayer("customnpcs:textures/gui/ability/hazard_overlay.png", + this::getActiveColor) + }; } @Override diff --git a/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityHeavyHit.java b/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityHeavyHit.java index 510193d54..2e5de3006 100644 --- a/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityHeavyHit.java +++ b/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityHeavyHit.java @@ -47,6 +47,11 @@ public class AbilityHeavyHit extends Ability implements IAbilityHeavyHit { this.activeSound = "random.anvil_land"; this.windUpAnimationName = "Ability_HeavyHit_Windup"; this.activeAnimationName = "Ability_HeavyHit_Active"; + this.defaultIconLayers = new DefaultIconLayer[]{ + new DefaultIconLayer("customnpcs:textures/gui/ability/heavy_hit.png"), + new DefaultIconLayer("customnpcs:textures/gui/ability/heavy_hit_overlay.png", + this::getActiveColor) + }; } @Override diff --git a/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityShockwave.java b/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityShockwave.java index c77994789..a41da923c 100644 --- a/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityShockwave.java +++ b/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityShockwave.java @@ -43,6 +43,11 @@ public class AbilityShockwave extends Ability implements IAbilityShockwave { this.activeSound = "random.explode"; this.windUpAnimationName = "Ability_Shockwave_Windup"; this.activeAnimationName = "Ability_Shockwave_Active"; + this.defaultIconLayers = new DefaultIconLayer[]{ + new DefaultIconLayer("customnpcs:textures/gui/ability/shockwave.png"), + new DefaultIconLayer("customnpcs:textures/gui/ability/shockwave_overlay.png", + this::getActiveColor) + }; } @Override diff --git a/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilitySlam.java b/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilitySlam.java index 8f4eeaf8c..d7a0f4cd6 100644 --- a/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilitySlam.java +++ b/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilitySlam.java @@ -83,6 +83,9 @@ public class AbilitySlam extends Ability implements IAbilitySlam { // Default built-in animations this.windUpAnimationName = "Ability_Slam_Windup"; this.activeAnimationName = "Ability_Slam_Active"; + this.defaultIconLayers = new DefaultIconLayer[]{ + new DefaultIconLayer("customnpcs:textures/gui/ability/slam.png") + }; } /** diff --git a/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityTeleport.java b/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityTeleport.java index 2e1490ffb..448a431af 100644 --- a/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityTeleport.java +++ b/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityTeleport.java @@ -86,6 +86,9 @@ public class AbilityTeleport extends Ability implements IAbilityTeleport { this.showTelegraph = false; this.windUpSound = "mob.endermen.portal"; this.activeSound = "mob.endermen.portal"; + this.defaultIconLayers = new DefaultIconLayer[]{ + new DefaultIconLayer("customnpcs:textures/gui/ability/teleport.png") + }; } @Override diff --git a/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityTrap.java b/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityTrap.java index acd0e1378..21b5ff0e7 100644 --- a/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityTrap.java +++ b/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityTrap.java @@ -36,6 +36,11 @@ public class AbilityTrap extends AbilityZone implements IAbilityTrap { this.windUpTicks = 30; this.windUpAnimationName = "Ability_Zone_Windup"; this.activeAnimationName = "Ability_Zone_Active"; + + this.defaultIconLayers = new DefaultIconLayer[]{ + new DefaultIconLayer("customnpcs:textures/gui/ability/trap.png", + this::getActiveColor) + }; } @Override diff --git a/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityVortex.java b/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityVortex.java index b03c7ae78..d397b32db 100644 --- a/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityVortex.java +++ b/src/main/java/kamkeel/npcs/controllers/data/ability/type/AbilityVortex.java @@ -72,6 +72,10 @@ public class AbilityVortex extends Ability implements IAbilityVortex { this.telegraphType = TelegraphType.CIRCLE; this.windUpSound = "mob.ghast.charge"; this.activeSound = "mob.ghast.fireball"; + this.defaultIconLayers = new DefaultIconLayer[]{ + new DefaultIconLayer("customnpcs:textures/gui/ability/vortex.png", + this::getActiveColor) + }; } @Override diff --git a/src/main/java/kamkeel/npcs/controllers/data/ability/type/energy/AbilityBeam.java b/src/main/java/kamkeel/npcs/controllers/data/ability/type/energy/AbilityBeam.java index e4015f7e3..ef75e242f 100644 --- a/src/main/java/kamkeel/npcs/controllers/data/ability/type/energy/AbilityBeam.java +++ b/src/main/java/kamkeel/npcs/controllers/data/ability/type/energy/AbilityBeam.java @@ -56,8 +56,10 @@ public class AbilityBeam extends AbilityEnergyProjectile impl this.windUpAnimationName = "Ability_Beam_Windup"; this.activeAnimationName = "Ability_Beam_Active"; - this.defaultIconTexture = "customnpcs:textures/gui/ability/beam.png"; - this.defaultIconColorSource = () -> isOuterColorEnabled() ? getOuterColor() : getInnerColor(); + this.defaultIconLayers = new DefaultIconLayer[]{ + new DefaultIconLayer("customnpcs:textures/gui/ability/beam.png", + () -> isOuterColorEnabled() ? getOuterColor() : getInnerColor()) + }; } // ==================== ABSTRACT IMPLEMENTATIONS ==================== diff --git a/src/main/java/kamkeel/npcs/controllers/data/ability/type/energy/AbilityDisc.java b/src/main/java/kamkeel/npcs/controllers/data/ability/type/energy/AbilityDisc.java index 20a861786..1d3dacc19 100644 --- a/src/main/java/kamkeel/npcs/controllers/data/ability/type/energy/AbilityDisc.java +++ b/src/main/java/kamkeel/npcs/controllers/data/ability/type/energy/AbilityDisc.java @@ -56,8 +56,11 @@ public class AbilityDisc extends AbilityEnergyProjectile impl this.windUpAnimationName = "Ability_Disc_Windup"; this.activeAnimationName = "Ability_Disc_Active"; - this.defaultIconTexture = "customnpcs:textures/gui/ability/disc.png"; - this.defaultIconColorSource = () -> isOuterColorEnabled() ? getOuterColor() : getInnerColor(); + this.defaultIconLayers = new DefaultIconLayer[]{ + new DefaultIconLayer("customnpcs:textures/gui/ability/disc.png"), + new DefaultIconLayer("customnpcs:textures/gui/ability/disc_overlay.png", + () -> isOuterColorEnabled() ? getOuterColor() : getInnerColor()) + }; } // ==================== ABSTRACT IMPLEMENTATIONS ==================== diff --git a/src/main/java/kamkeel/npcs/controllers/data/ability/type/energy/AbilityDome.java b/src/main/java/kamkeel/npcs/controllers/data/ability/type/energy/AbilityDome.java index ee978df13..743579e0f 100644 --- a/src/main/java/kamkeel/npcs/controllers/data/ability/type/energy/AbilityDome.java +++ b/src/main/java/kamkeel/npcs/controllers/data/ability/type/energy/AbilityDome.java @@ -42,6 +42,11 @@ public class AbilityDome extends AbilityBarrier { this.showTelegraph = true; this.windUpAnimationName = ""; this.activeAnimationName = ""; + + this.defaultIconLayers = new DefaultIconLayer[]{ + new DefaultIconLayer("customnpcs:textures/gui/ability/dome.png", + () -> isOuterColorEnabled() ? getOuterColor() : getInnerColor()) + }; } // ==================== ABSTRACT IMPLEMENTATIONS ==================== diff --git a/src/main/java/kamkeel/npcs/controllers/data/ability/type/energy/AbilityLaser.java b/src/main/java/kamkeel/npcs/controllers/data/ability/type/energy/AbilityLaser.java index 9dc4557c6..3ce1280de 100644 --- a/src/main/java/kamkeel/npcs/controllers/data/ability/type/energy/AbilityLaser.java +++ b/src/main/java/kamkeel/npcs/controllers/data/ability/type/energy/AbilityLaser.java @@ -54,8 +54,11 @@ public class AbilityLaser extends AbilityEnergyProjectile im this.windUpAnimationName = "Ability_Laser_Windup"; this.activeAnimationName = "Ability_Laser_Active"; - this.defaultIconTexture = "customnpcs:textures/gui/ability/laser.png"; - this.defaultIconColorSource = () -> isOuterColorEnabled() ? getOuterColor() : getInnerColor(); + this.defaultIconLayers = new DefaultIconLayer[]{ + new DefaultIconLayer("customnpcs:textures/gui/ability/laser_shot.png"), + new DefaultIconLayer("customnpcs:textures/gui/ability/laser_shot_overlay.png", + () -> isOuterColorEnabled() ? getOuterColor() : getInnerColor()) + }; } // ==================== OVERRIDES ==================== diff --git a/src/main/java/kamkeel/npcs/controllers/data/ability/type/energy/AbilityOrb.java b/src/main/java/kamkeel/npcs/controllers/data/ability/type/energy/AbilityOrb.java index fed7c0755..7ef631dda 100644 --- a/src/main/java/kamkeel/npcs/controllers/data/ability/type/energy/AbilityOrb.java +++ b/src/main/java/kamkeel/npcs/controllers/data/ability/type/energy/AbilityOrb.java @@ -50,8 +50,11 @@ public class AbilityOrb extends AbilityEnergyProjectile implem this.windUpAnimationName = "Ability_Orb_Windup"; this.activeAnimationName = "Ability_Orb_Active"; - this.defaultIconTexture = "customnpcs:textures/gui/ability/orb.png"; - this.defaultIconColorSource = () -> isOuterColorEnabled() ? getOuterColor() : getInnerColor(); + this.defaultIconLayers = new DefaultIconLayer[]{ + new DefaultIconLayer("customnpcs:textures/gui/ability/orb.png"), + new DefaultIconLayer("customnpcs:textures/gui/ability/orb_overlay.png", + () -> isOuterColorEnabled() ? getOuterColor() : getInnerColor()) + }; } // ==================== ABSTRACT IMPLEMENTATIONS ==================== diff --git a/src/main/java/kamkeel/npcs/controllers/data/ability/type/energy/AbilityShield.java b/src/main/java/kamkeel/npcs/controllers/data/ability/type/energy/AbilityShield.java index 04407bdd6..ce7b41b88 100644 --- a/src/main/java/kamkeel/npcs/controllers/data/ability/type/energy/AbilityShield.java +++ b/src/main/java/kamkeel/npcs/controllers/data/ability/type/energy/AbilityShield.java @@ -45,6 +45,11 @@ public class AbilityShield extends AbilityBarrier { this.windUpAnimationName = ""; this.activeAnimationName = ""; this.allowedBy = UserType.BOTH; + + this.defaultIconLayers = new DefaultIconLayer[]{ + new DefaultIconLayer("customnpcs:textures/gui/ability/shield.png", + () -> isOuterColorEnabled() ? getOuterColor() : getInnerColor()) + }; } // ==================== ABSTRACT IMPLEMENTATIONS ==================== diff --git a/src/main/java/kamkeel/npcs/controllers/data/ability/type/energy/AbilitySweeper.java b/src/main/java/kamkeel/npcs/controllers/data/ability/type/energy/AbilitySweeper.java index 655a2c194..1ef5f92e0 100644 --- a/src/main/java/kamkeel/npcs/controllers/data/ability/type/energy/AbilitySweeper.java +++ b/src/main/java/kamkeel/npcs/controllers/data/ability/type/energy/AbilitySweeper.java @@ -55,6 +55,12 @@ public class AbilitySweeper extends AbilityEnergy implements IAbilitySweeper { // Circle telegraph to show range this.telegraphType = TelegraphType.CIRCLE; this.showTelegraph = true; + + this.defaultIconLayers = new DefaultIconLayer[]{ + new DefaultIconLayer("customnpcs:textures/gui/ability/sweeper.png"), + new DefaultIconLayer("customnpcs:textures/gui/ability/sweeper_overlay.png", + () -> isOuterColorEnabled() ? getOuterColor() : getInnerColor()) + }; } @Override diff --git a/src/main/java/kamkeel/npcs/controllers/data/ability/type/energy/AbilityWall.java b/src/main/java/kamkeel/npcs/controllers/data/ability/type/energy/AbilityWall.java index 7044e71b9..97f8b0c31 100644 --- a/src/main/java/kamkeel/npcs/controllers/data/ability/type/energy/AbilityWall.java +++ b/src/main/java/kamkeel/npcs/controllers/data/ability/type/energy/AbilityWall.java @@ -45,6 +45,12 @@ public class AbilityWall extends AbilityBarrier { this.showTelegraph = true; this.windUpAnimationName = ""; this.activeAnimationName = ""; + + this.defaultIconLayers = new DefaultIconLayer[]{ + new DefaultIconLayer("customnpcs:textures/gui/ability/wall.png"), + new DefaultIconLayer("customnpcs:textures/gui/ability/wall_overlay.png", + () -> isOuterColorEnabled() ? getOuterColor() : getInnerColor()) + }; } @Override diff --git a/src/main/java/noppes/npcs/client/gui/advanced/SubGuiChainedAbilityConfig.java b/src/main/java/noppes/npcs/client/gui/advanced/SubGuiChainedAbilityConfig.java index 5c6deb37f..dff78a9a0 100644 --- a/src/main/java/noppes/npcs/client/gui/advanced/SubGuiChainedAbilityConfig.java +++ b/src/main/java/noppes/npcs/client/gui/advanced/SubGuiChainedAbilityConfig.java @@ -163,14 +163,35 @@ public class SubGuiChainedAbilityConfig extends SubGuiInterface implements IText // ── Icon tab ────────────────────────────────────────────── AbilityIconData chainIcon = AbilityIconData.fromChainedAbility(chain); - fieldDefs.add(FieldDef.stringField("gui.texture", chainIcon::getTexture, chainIcon::setTexture).tab("Icon")); - fieldDefs.add(FieldDef.section("ability.icon.section.uv").tab("Icon")); - fieldDefs.add(FieldDef.intField("ability.icon.x", chainIcon::getIconX, chainIcon::setIconX).tab("Icon").range(0, 4096)); - fieldDefs.add(FieldDef.intField("ability.icon.y", chainIcon::getIconY, chainIcon::setIconY).tab("Icon").range(0, 4096)); - fieldDefs.add(FieldDef.section("gui.size").tab("Icon")); - fieldDefs.add(FieldDef.intField("gui.width", chainIcon::getWidth, chainIcon::setWidth).tab("Icon").range(1, 256)); - fieldDefs.add(FieldDef.intField("gui.height", chainIcon::getHeight, chainIcon::setHeight).tab("Icon").range(1, 256)); + fieldDefs.add(FieldDef.row( + FieldDef.intField("gui.width", chainIcon::getWidth, chainIcon::setWidth).range(1, 256), + FieldDef.intField("gui.height", chainIcon::getHeight, chainIcon::setHeight).range(1, 256) + ).tab("Icon")); fieldDefs.add(FieldDef.floatField("gui.scale", chainIcon::getScale, chainIcon::setScale).tab("Icon").range(0.1f, 10.0f)); + fieldDefs.add(FieldDef.intField("ability.icon.layers", chainIcon::getLayerCount, chainIcon::setLayerCount) + .tab("Icon").range(1, AbilityIconData.MAX_LAYERS)); + for (int i = 0; i < AbilityIconData.MAX_LAYERS; i++) { + final int idx = i; + 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", + () -> chainIcon.getLayer(idx).texture, + t -> chainIcon.setLayerTexture(idx, t)) + .tab("Icon").visibleWhen(layerVisible)); + fieldDefs.add(FieldDef.row( + FieldDef.intField("ability.icon.x", + () -> chainIcon.getLayer(idx).iconX, + x -> chainIcon.setLayerIconX(idx, x)).range(0, 4096), + FieldDef.intField("ability.icon.y", + () -> chainIcon.getLayer(idx).iconY, + y -> chainIcon.setLayerIconY(idx, y)).range(0, 4096) + ).tab("Icon").visibleWhen(layerVisible)); + fieldDefs.add(FieldDef.colorSubGui("ability.icon.tint", + () -> chainIcon.getLayer(idx).tintColor, + c -> chainIcon.setLayerTintColor(idx, c)) + .tab("Icon").visibleWhen(layerVisible)); + } // External field providers (e.g., DBC Addon injecting a "DBC" tab) if (AbilityController.Instance != null) { diff --git a/src/main/java/noppes/npcs/client/gui/hud/ability/AbilityIcon.java b/src/main/java/noppes/npcs/client/gui/hud/ability/AbilityIcon.java index cb1a8d445..6da0d04b0 100644 --- a/src/main/java/noppes/npcs/client/gui/hud/ability/AbilityIcon.java +++ b/src/main/java/noppes/npcs/client/gui/hud/ability/AbilityIcon.java @@ -25,12 +25,10 @@ public class AbilityIcon extends Gui { public int width; public int height; - // Default icon info (extracted from ability) - private String defaultTexture = ""; - private String[] defaultStateTextures = null; + // Default icon layers (extracted from ability) + private Ability.DefaultIconLayer[] defaultLayers = null; private int defaultIconWidth = 48; private int defaultIconHeight = 48; - private Ability sourceAbility = null; private AbilityIcon(AbilityIconData data) { this.data = data; @@ -41,11 +39,9 @@ public class AbilityIcon extends Gui { public static AbilityIcon fromAbility(Ability ability) { if (ability != null) { AbilityIcon icon = new AbilityIcon(AbilityIconData.fromAbility(ability)); - icon.defaultTexture = ability.getDefaultIconTexture(); - icon.defaultStateTextures = ability.getDefaultIconStateTextures(); + icon.defaultLayers = ability.getDefaultIconLayers(); icon.defaultIconWidth = ability.getDefaultIconWidth(); icon.defaultIconHeight = ability.getDefaultIconHeight(); - icon.sourceAbility = ability; return icon; } return fromDefaults(); @@ -83,90 +79,70 @@ public class AbilityIcon extends Gui { GL11.glEnable(GL11.GL_BLEND); GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); - Tessellator t; - - if (data.isEnabled() && data.hasTexture()) { - // Path 1: Custom icon enabled with texture — draw with manual tintColor - ImageData imageData = ClientCacheHandler.getImageData(data.texture); - if (imageData != null && imageData.imageLoaded()) { - int tint = data.getTintColor(); - float r = ((tint >> 16) & 0xFF) / 255f; - float g = ((tint >> 8) & 0xFF) / 255f; - float b = (tint & 0xFF) / 255f; - GL11.glColor4f(r, g, b, alpha); - GL11.glScalef(data.scale, data.scale, 1); - renderEngine.bindTexture(imageData.getLocation()); - t = getTessellator(imageData, state); - t.draw(); - } else { + if (data.isEnabled()) { + // Path 1: Custom icon — draw each active layer bottom-to-top + GL11.glScalef(data.scale, data.scale, 1); + boolean drewAny = false; + for (int i = 0; i < data.getLayerCount(); i++) { + AbilityIconData.Layer layer = data.getLayer(i); + if (!layer.hasTexture()) continue; + ImageData imageData = ClientCacheHandler.getImageData(layer.texture); + if (imageData != null && imageData.imageLoaded()) { + int tint = layer.tintColor; + float r = ((tint >> 16) & 0xFF) / 255f; + float g = ((tint >> 8) & 0xFF) / 255f; + float b = (tint & 0xFF) / 255f; + GL11.glColor4f(r, g, b, alpha); + renderEngine.bindTexture(imageData.getLocation()); + Tessellator t = getLayerTessellator(imageData, layer, i == 0 ? state : 0); + t.draw(); + drewAny = true; + } + } + if (!drewAny) { GL11.glColor4f(1, 1, 1, alpha); renderEngine.bindTexture(FALLBACK_TEXTURE); - t = getFallbackTessellator(); - t.draw(); + getFallbackTessellator().draw(); } - } else if (hasDefaultTexture()) { - // Path 2: No custom icon, but type has a default icon — draw with auto-color tint - String texturePath = resolveDefaultTexture(state); - ImageData defaultImageData = ClientCacheHandler.getImageData(texturePath); - if (defaultImageData != null && defaultImageData.imageLoaded()) { - int autoColor = sourceAbility != null ? sourceAbility.getDefaultIconColor() : 0xFFFFFF; - float r = ((autoColor >> 16) & 0xFF) / 255f; - float g = ((autoColor >> 8) & 0xFF) / 255f; - float b = (autoColor & 0xFF) / 255f; - GL11.glColor4f(r, g, b, alpha); - renderEngine.bindTexture(defaultImageData.getLocation()); - t = getDefaultIconTessellator(); - t.draw(); - } else { - // Default texture not found — use fallback at default icon dimensions with auto-color tint - int autoColor = sourceAbility != null ? sourceAbility.getDefaultIconColor() : 0xFFFFFF; - float r = ((autoColor >> 16) & 0xFF) / 255f; - float g = ((autoColor >> 8) & 0xFF) / 255f; - float b = (autoColor & 0xFF) / 255f; - GL11.glColor4f(r, g, b, alpha); - renderEngine.bindTexture(FALLBACK_TEXTURE); - t = getDefaultIconTessellator(); - t.draw(); + } else if (hasDefaultLayers()) { + // Path 2: Default layers — draw each layer with its dynamic color + for (Ability.DefaultIconLayer defLayer : defaultLayers) { + if (defLayer.texture == null || defLayer.texture.isEmpty()) continue; + ImageData imageData = ClientCacheHandler.getImageData(defLayer.texture); + if (imageData != null && imageData.imageLoaded()) { + int color = defLayer.getColor(); + float r = ((color >> 16) & 0xFF) / 255f; + float g = ((color >> 8) & 0xFF) / 255f; + float b = (color & 0xFF) / 255f; + GL11.glColor4f(r, g, b, alpha); + renderEngine.bindTexture(imageData.getLocation()); + getDefaultIconTessellator().draw(); + } } } else { - // Path 3: No custom icon, no default icon — generic fallback with auto-color tint if available - int autoColor = sourceAbility != null ? sourceAbility.getDefaultIconColor() : 0xFFFFFF; - float r = ((autoColor >> 16) & 0xFF) / 255f; - float g = ((autoColor >> 8) & 0xFF) / 255f; - float b = (autoColor & 0xFF) / 255f; - GL11.glColor4f(r, g, b, alpha); + // Path 3: No custom icon, no default layers — generic fallback + GL11.glColor4f(1, 1, 1, alpha); renderEngine.bindTexture(FALLBACK_TEXTURE); - t = getFallbackTessellator(); - t.draw(); + getFallbackTessellator().draw(); } GL11.glPopMatrix(); } - /** - * Resolve the default texture path for a given toggle state. - * Falls back to the base defaultTexture if no state-specific texture exists. - */ - private String resolveDefaultTexture(int state) { - if (state > 0 && defaultStateTextures != null && state - 1 < defaultStateTextures.length) { - return defaultStateTextures[state - 1]; - } - return defaultTexture; + private boolean hasDefaultLayers() { + return defaultLayers != null && defaultLayers.length > 0; } - private boolean hasDefaultTexture() { - return defaultTexture != null && !defaultTexture.isEmpty(); - } - - private Tessellator getTessellator(ImageData imageData, int state) { + private Tessellator getLayerTessellator(ImageData imageData, AbilityIconData.Layer layer, int state) { float hw = data.width / 2f; float hh = data.height / 2f; float texW = imageData.getTotalWidth(); float texH = imageData.getTotalHeight(); - int ix = data.getIconXForState(state); - int iy = data.getIconYForState(state); + // State UV overrides only apply to layer 0 + int ix = (state > 0) ? data.getIconXForState(state) : layer.iconX; + int iy = (state > 0) ? data.getIconYForState(state) : layer.iconY; float u1 = ix / texW; float v1 = iy / texH; @@ -209,7 +185,7 @@ public class AbilityIcon extends Gui { } public boolean hasTexture() { - return (data.isEnabled() && data.hasTexture()) || hasDefaultTexture(); + return data.isEnabled() || hasDefaultLayers(); } /** @@ -217,10 +193,10 @@ public class AbilityIcon extends Gui { * Custom icon: max(width,height) * scale. Default icon: max(defaultW,defaultH). Fallback: 32. */ public float getDrawSize() { - if (data.isEnabled() && data.hasTexture()) { + if (data.isEnabled()) { return Math.max(width, height) * data.scale; } - if (hasDefaultTexture()) { + if (hasDefaultLayers()) { return Math.max(defaultIconWidth, defaultIconHeight); } return 32f; diff --git a/src/main/resources/assets/customnpcs/lang/en_US.lang b/src/main/resources/assets/customnpcs/lang/en_US.lang index 587629322..41126b303 100644 --- a/src/main/resources/assets/customnpcs/lang/en_US.lang +++ b/src/main/resources/assets/customnpcs/lang/en_US.lang @@ -2151,6 +2151,8 @@ ability.userType.NONE=NO ONE! ability.icon.section.uv=UV Coordinates ability.icon.x=Icon X ability.icon.y=Icon Y +ability.icon.layers=Layers +ability.icon.layer=Layer gui.both=Both gui.players=Players diff --git a/src/main/resources/assets/customnpcs/textures/gui/ability/beam.png b/src/main/resources/assets/customnpcs/textures/gui/ability/beam.png new file mode 100644 index 0000000000000000000000000000000000000000..066b1b0b9d5e595bbf16f5d9ea9e0cad0939e1e9 GIT binary patch literal 709 zcmV;$0y_PPP)Px%e@R3^RA_=@Y zv4N1-U-C4GaU9PuyRZvz;>3v)|0VjqANS?}0Dnp!R7%Z6>?P=L>4TTcrE$)U&biTh zkLUAQmsui;1aw_D0)P-=8oOSvO+{YGNPa1i1^}(~G%kd|{eA}k7-POJBI$))*Nsw2 zD5U@Z6f(w`#yK}qI9Y4IE@Cx_yRI8KdGGyUKtU6$fX^0@-3t}hsbYpYY;zDl82_(8f zB5S&pU5zd+sXU~>>Z2v1)Vb9vOS1X_>I2q9AVCQISB>&JtCS#Oac$JL?M#$X>Q{bH z_>h}I2xzUr$4dlcsb9+nj#wafB<|)y2(Z>dN?BBnXFm{&029)-EdXE`hD9Oq@8jQ; zgj9AlN=qx>rHKR)Z`*bXD^8ZK={^@Dgn*PXmrlL|ge@nAVVFKS_&qGR<-N}erQ&`d z#R;&m;@_9XN-N&C8X6K|t)0erOb^2_6BD~Z_qm{46raoyDCuY!)LJ8iFq_dhZ1{ML z+!MZPEu}H0F~&6HM(jjPHg=;F)q7$RVXZ|7;pI}w1-&EYqb2ZC`SHq$5JL6}gc>=( z@v7S7`LHzG?;P7ycYyW>uyZ9WkmTd>ab*rZ5<=ueywOpD-)^@_5RH{qr611$eoZ9% rz908)MT^n*{dk1KfDPx%Q%OWYRA_#J5VuLiDVKTV_zo#sBD2h$6fXnXY z1J5r{KOUNYeyE1H(x)w60?5N)9+Q;i4*BOt<9YgS?YKFQIs)>y=v*5HtpQj5b8%-$ zAs1S@WZ43%)e-=ZB-7?Nk4y-^76EHam1PT{PL(`gA9$X+jz&lnItjR)-&Lr)&h7lJ z;<;QD8)Vtypl0%Xt$IC4rm%L5$>gdL>nq|{BfyR0d7dQG#`rXyHNvRi|AYVt5gh4x zh?E*Eg?u>G_eq?!;~>uyM=#bUEag2xsljIehkM)STxcsDBm&&as6|s{}5orp)F&E%D+5#XMNWB=jxAon1GPgm;kWw|?O zqg@#!0&uiangLy+(7OO@OhtK(dQkCVCHVARt(L7tc-9LfNQ+<36Aguv+= zEWiieF2Qyo)WT&HxQH$V-HQOtc(A=+?)$FVXd~jHPveVXY}$4k_KwRj@?V}wDU=+Uj9;Q5An@q88I;9eK^aTISnnHe4OCC zK&}(??nf?k+KP>quS&SryY5JlNF)-8{0qJTFtyO$S~Trm00000NkvXXu0mjfj7c|H literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/customnpcs/textures/gui/ability/cutter.png b/src/main/resources/assets/customnpcs/textures/gui/ability/cutter.png new file mode 100644 index 0000000000000000000000000000000000000000..1d3cee95d665285eb86d04c777eccf7a4a1d31a8 GIT binary patch literal 576 zcmV-G0>AxPx$`bk7VRA_s_~a+#dL;u!8Z0d=HEG`WGd zS);)j{{Wlam3Ceg0(QQ~*y8|#AP9mW2>+LA&tR>!qu00FZJuu&M;AU{*Y)E1a5(Jx zeXJFrf!nqP0Gv)I0KoBhWasiCVfZa@!XLRoKC}-E0M^<$IGFI`I6D6wCpJyfOLew{ zN2&s0aBD39;Cj8jJj)6A&vjjAmr6<~H}>VG*4njg3#Akuk4G|iP9nB!zGLls787Z$ z-Q{vY(=-@{0oK}R@X`%gvRw8E%>#`wPAP?^X>h;a(f2(YKD8P5ER{9$P(Hwf4=L>+ z(=@r%kJEc8nKgT&(po$Erl~+!g*C0P^et}bNObC*8mDgdSmNK_(4SS1Qwf>^PqIGGAx=fFE8a>OJ43W(!-x3W6XAf*=UO-{KRJP%(p|n#!sG O0000Px%@<~KNRA_ zAW&KY_W-LCSP7@bYM4gLELVF+ilpoW-~a+7@=l!Ho1NPuFkrxd0Rsm7$B6p)li74$ z+}vJAv+2Ch?%&*AM*#5S`_IaK=hl^R)@GI8ZnLT7*Gm9hVdA&|fHWP!n54YESUdwY zfxLSFM1DNJ1OQxId;tI~moMd*#p2l;#D_QH8AO_n01x>(oM5M6-vH7tLF!loX?yYe zR|Ej#uiw-;Qu98f=?K655ZuR|TQ_zV!p>nT zzX^2xXd9W_gtVPgs|zjLTHr@*C48CJ9?IPx$-$_J4RA__hnR-U zDnM+LEehxX0URZwNs;`r3=|55LZMJ76bgl%RFcN5G1KMpfnm4<0J`pmF-FmQaNZ=1 zjWJf&>*wQo{E{^N6qVJn#!PhmuQHJ0T(ewTW2W>Yd7pPlV>zrbllSdvtm|%*RA$sN zVC@M2;C+j_KBKPBz}y?oHIT}LS^%73xT`d_S^%lDB&!;zXMh6Hl2vsX1ydvd2%#5~ zS5*}v_365s+C9_)aIRUD2XhI9(5FF(NU2H>j4@Ur^Z;vMl2l14RomvRF_Uu*tUaw7 znDz%6JK7JbDilJ$a-P0ZIbklfBbiWr(8{S1Ii4HalZjv1i7%IrrFpre9!33O4s+>H z?Gs#L_x6EG2KZxh+6zm$%)NkvX9n>jC6d)mn>8h^d+*yrSr7>zb-b?6i}rH`0zc@? zWkqxL1R@pyX+C#6b)MjjoX*?2FB}dat@WHtz6ziFY7im;c;Dvg{fF%_Mp$F`@M;09 zJ#Bg&qa~x&7-RMaK5mVv(jc}XBBQM4pE{qN`}ps&+FK7ky93B+{ZUdIufBrW-2+dI nZ(4n354lp(elb=k6#kfRL=_ed-Y$3<00000NkvXXu0mjfo$>ER literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/customnpcs/textures/gui/ability/disc_overlay.png b/src/main/resources/assets/customnpcs/textures/gui/ability/disc_overlay.png new file mode 100644 index 0000000000000000000000000000000000000000..34e2910899596e628f123a04fc0785136c45db95 GIT binary patch literal 258 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA1|-9oezpTC#^NA%Cx&(BWL^R}dpunnLoyoQ zUiIZ_HV|lgsDB}N$CrTO6Ea%f>l4FInVbm`*(!D~U0JQC#<^|^!=J51OIBR7nlJBa zwE1r3rKYtL9$T#1y3KC7q37%BkjKv#=cjCXcI}{DfykS@+Qs)S1x)1rulvG)=lZg@ zK9{GQ(>*&QQgiFIo9z3oU&QU(cx_hPt7%%V|8#0EsN>eW@q51&dnB9uy)#}_9eZCW zU+jH+{M@ROH8PJ*gqHseoPGU;od2(hj6g?&!JoP2Z?c-gJ0;J0fcT!SelF{r5}E*c CT5q!e literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/customnpcs/textures/gui/ability/dome.png b/src/main/resources/assets/customnpcs/textures/gui/ability/dome.png new file mode 100644 index 0000000000000000000000000000000000000000..e13fad24e31d55909176cbd4ae786ce2aa3d6a7f GIT binary patch literal 609 zcmV-n0-pVeP)Px%8%ab#RA_@(u&ua}8Z${y+ zU{|0^Xnm=X>`kul+=_-eR%#?`u@J(nP3VgWj*;5u#3s^O8zF>=9n{kJG)L;bs8d>@ zk5z}jIXA;F!1MV8SleN&NN!cuB7`tfN+YF=<_)^Td9O9=xp2-60KhN|FijJTHn zSK5VUI)Ltbi8rdc8(p-|@y~4Jf7TLwcYumrGXQ8qh+aPzc;hPC%-O!ne4Y%L6pZ88b?yen*lg|*I*SynO6bxZ z5*O<@7Szq_=Ia0ewASW)KHF~i9Q#aBLI!=rVqrX=K@^UfZPm2a1^@t!P-1t{P}g$B zg~U=^oxueZpD7pLyVR1%l#xr((k)efDNrnMiMX7Yxc_a0O2niJN)?xqBWXYWE}EOD v7Ag6Ys<0HKq>|r?-2~Mfe&Y-r9DIOZcJ08NNb_kZ00000NkvXXu0mjfX)qkt literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/customnpcs/textures/gui/ability/effect.png b/src/main/resources/assets/customnpcs/textures/gui/ability/effect.png new file mode 100644 index 0000000000000000000000000000000000000000..9e1a6022f527e70636a18710a271554f8995cff3 GIT binary patch literal 600 zcmV-e0;m0nP)Px%5=lfsRA_tohXqffP#X8f`WpAf`WpA|B6Gd#C26Y=x4huS$->dQY3CnyLvy413(5L zNt4x8^)RM|x;}2cv-S?~DeR$QY3Ma2Y}Txg)!~sjJ%2@ z0wnMX38gCJhi#((dV3*}EjzcubRIN07 z1#+%F8~tg!VGVN;4+Ldj9~Q`&}(>d)5d50000Px$yGcYrRA_a|_pX50B10SbGj^ERDIm-s+HpaA~i zi;q?S5oG{?loG@k)$+EYkgq-Oz>j8eN(le}5Ha)TW56w5lsFC^Zo}agbVmojbho42 zujX>IN~p5X8{npZw0H<%O3tqpp7>5p!`H zH|tAF7SeZ_hKREFrS}C+o)d48Z2gajdCR>}h?LFbZ_iqZJEJUv++fsdEhVF1ZHHqp8)I_2Gp{H#VK%^ zOR~??g=LvWm&JfA5iBp9ZGqde`pnT=xyw);PDEMO{Jg^&k;VH6iIM)G`^7uUuWCf3 zp-cpt3ERDA&F6P?SZeuJ0c*{HV`!|xee*4|&8fK%B7OxKB4#forfQ)hrpY7z|H@$Q zog&YYFIlW-y{Q6VkVZ$>J-t5_#F`l3napCiTUB6Hlfl1iazi|o4^LdScVx17(_V~j zEoJ#Wuq-97EEz_}lG9vP=J(#Qq^cHLIW6eTIxP-=j9df`_D-nK00000NkvXXu0mjf DXDH}b literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/customnpcs/textures/gui/ability/guard.png b/src/main/resources/assets/customnpcs/textures/gui/ability/guard.png new file mode 100644 index 0000000000000000000000000000000000000000..6b5630d4a951b0ab645cc99de1645503c5a187f9 GIT binary patch literal 626 zcmV-&0*(ENP)Px%EJ;K`RA_?&+Z9ZqG?0tWAwO4l2J?>A83Ty_Tru6rWpsUyu)z2sLU<IApjHOYyjN=(Uv zljos=1^_cBsJ#A5B}Ve@zn`_;M=Uivz;GgJvX6Xd*Igo84m!t)Xa{H>hju+gz*n(d z#1=YMKd_W8ON-Nf7#6y;7_d?(L~ajTtV-N8=h?1t)PsKG+KWN71ED|965u$o*#R1I z>3fZ9FQ&S03jI>kl6nQL6C6#B-H41X!2P2(}xOp}V#sB~S M07*qoM6N<$f*ynrr2qf` literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/customnpcs/textures/gui/ability/hazard.png b/src/main/resources/assets/customnpcs/textures/gui/ability/hazard.png new file mode 100644 index 0000000000000000000000000000000000000000..b14e3d0b38391f5ce719d75d159cc5c526766679 GIT binary patch literal 437 zcmV;m0ZRUfP)Px$Z%IT!RA_Ng}KJ8dfP%tw*em@xxwJ<-Axr-cLG!T zm3E=G%9z3Nm-HnEa2&^R90Eb41d(#|dmk8^{Kdf)iU0r@hBNZIcC7vG<&m{f&e!d^ z&4{J2UvC^lN{l_m_qR@eUoI~IfMuDH^A#ygW+G@M)UqtI)z)7y5uk^!%gPF#iJzXg zy3hG~$l+-Okx~oLnQ+8xpq7w|s10k~S}6kZx^^i|Ko$LAI3va$)|sG2M_X!){nkPO zK*hlzBeX%Lq%KjQKZI~XjQzF-BSV`_V!c9q zTmKZnGPRk2TZgxREd8V07GSJq4TT)D@0`x-$Riv%W zOcM}9%CgKD$Jd*eIlULL-ltGAuy=j1%z}3zrM))PSbBk)fup8x4W%E~=G^P?_x#6k f9LI4S$N3o_41>!H;Di=O00000NkvXXu0mjfOMk%J literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/customnpcs/textures/gui/ability/hazard_overlay.png b/src/main/resources/assets/customnpcs/textures/gui/ability/hazard_overlay.png new file mode 100644 index 0000000000000000000000000000000000000000..a0181aeac152d82b48da68df34771560e6d1bbbf GIT binary patch literal 241 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA1|-9oezpTC#^NA%Cx&(BWL^R}t36#DLoyoQ zUc1Q2tjN=lc=v$noqC1oC)nP42RE&KRM{K$W54=Chsi5GIssLKK*Q;z_sN=14UIg{ z?X>P+-rt&gL38OsPnRdQadUl&H(q?TI(GMl)QhW+uDqF~>+8TQZ#zr(+X+4I1?zt0 z2z{-+ea$wl|Khnm_CJf~|M7~r9rq~z;JGbUx1UW(4>H`-wEy>xFC87xLKm$oo=!dT l(|SSk;`a`xIb%6?yyUDA^`F1n%*71k3Qt!*mvv4FO#tK$X7vC7 literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/customnpcs/textures/gui/ability/heavy_hit.png b/src/main/resources/assets/customnpcs/textures/gui/ability/heavy_hit.png new file mode 100644 index 0000000000000000000000000000000000000000..250deaee6938c6fa50be9e3dd8a23ad36e0eeb2f GIT binary patch literal 882 zcmV-&1C9KNP)Px&EJ;K`RA_lP$F z45!WW>-GEj*%R?{0Z3jV4vaj)67f<2E#wiJh?fbl$XmoIBoRN3B&os5G*R-}d_Q;a zssaXWlyE7x(71nYfz)-&IG&&1HUCGHa#P9EdC&?kaUlefmqb{^EreW1^Wn%zDS^9D z3vq-hfRd)BL*zU|>bfN=qLiEH|9i-TB8XOTP*QFOcqPIfPO-~y~&&w1W_ zmVzpZ7V?w>LJZ<@JVQ$TUpGlTq|}EN&_wWskJx#{M!+;(RtwUML4|0dxJ&UEX(hke zgvY#U8kJJrFr1#m>1PSt8j|^=uztG|Q115+tT!-YXea0O`t9!K5hA4DP^*e5& z>T0FjOrkBWw5ubNT#DEBC;)e#j+0`gM#P~#F>g#H;@qvQV6SxHva3L$xIxS<)^RqW@xzM5<;31;!R0O~&C z^WfwbB0Dav%dOxBv3H-(7eH7UiIbnE%cez*tO1^YBX-&Y3bo!HSP*ZgVaLH!Bl?In zLgzqB-4Z<$_F7rJokrA>=XXLHwD)Gw^-#F_exLETI=l}o! literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/customnpcs/textures/gui/ability/heavy_hit_overlay.png b/src/main/resources/assets/customnpcs/textures/gui/ability/heavy_hit_overlay.png new file mode 100644 index 0000000000000000000000000000000000000000..15881f8432e37cab2b90fcfad917ea3437251ee4 GIT binary patch literal 469 zcmV;`0V@89P)Px$k4Z#9RA_fGqwjvf0nlr)}6V_v~h{*EnoIAa=Wk>}t6A?S-RBVt4cFw7Ho=%Nu8B!q& zZQG_}j|%{B5Dx&Sdt*$vTAznQ8Wm5cu`NPl@hQ$ZwQXDT!@P>e#dB98bDsC!hv(c` zXn|Hy{EOECKzZ+D&u2aBz311jiqB6=!UqwN_k9n-uSBPK?^$+2cA=#qYa-@$9E+i{ z8!D60zK-Pe8tKIqQ)It1(cgm^a>bzzNE`e}YPHnec(nM*WHOmdCX>lz@-O)Tb#fbjf^F2c00000 LNkvXXu0mjf8z0fl literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/customnpcs/textures/gui/ability/laser_shot.png b/src/main/resources/assets/customnpcs/textures/gui/ability/laser_shot.png new file mode 100644 index 0000000000000000000000000000000000000000..b9e4e930ff87e03bb54e7ab0873e5003f53c0f13 GIT binary patch literal 753 zcmVPx%t4TybRA_ zj^>S-f^*RdwO}D2g;=}p{^B+{@0ae)Y5}V8nD#mGn|r}`365a3z`sB?0V%|aA37e& zG_efCfh+< zui&ZHs4XY52>3RmF+oYhz*!3wr%}`}JyEqDk;LjgBXfSk$21)ReJ15~BdYbdwVKw>p!Eot!Ab}mS^!fcegFXa{;>&>dLW@C zlxkrZp3pS6J;_2#B)Jf32g?X!rcHZ@7?GyA?Ro{J+FeZ5AnzcvGkkx4!7w~`nTDoL zh>&p`ePbqX^Pht(0_eY8cYg_5pC(Z_Uym>h&)4|{Zj^lz(~T*KqgV(vI<@6?G6B0R z7c8fNWRM)V!j`PzB0F`ZnE5C$V?yVq)2bsqR3jZ})i)2_F_!>aQ%|*?ni^9H$H0Co z0iJXTkzlQj0rp#oP+oV(>F-$SeT37lRov5;qW18js3MRXa3R5K+~~i#*ebnpKb?T< zMm{T`@Fj&EI|0l#Id`P!LM5@mMxeH=C=Ki?0$hD<&AQbV@cHeL8@Ye>QP6)jQ&3ER jYROj;9FcIFpi=w+@8+jLR)imH00000NkvXXu0mjf5V2KD literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/customnpcs/textures/gui/ability/laser_shot_overlay.png b/src/main/resources/assets/customnpcs/textures/gui/ability/laser_shot_overlay.png new file mode 100644 index 0000000000000000000000000000000000000000..33a83327e8b31feb7d5c57272cd9872cf7622388 GIT binary patch literal 351 zcmV-l0igbgP)Px$8A(JzRA_X`_u|HhtN@>ZBvvUakj_BTzQUov-UNz>q9#+r5BPRTL;$Qd>3Jf85CV+jXwsYB ziE+-Yecx|F=726#fuluitu?&w zk@#jMgomRq5Q&vSL?9xV=ehdA4KFM9!dnPwV%LyyH9P}8s;QYBoM2^>-0F% xADk50sE}le1te~v@Q*+U;o2mMq9}@Tf;R!Ca}v)rFvS1>002ovPDHLkV1k{4mLdQE literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/customnpcs/textures/gui/ability/orb.png b/src/main/resources/assets/customnpcs/textures/gui/ability/orb.png new file mode 100644 index 0000000000000000000000000000000000000000..c6bf9991db26e37073b0fe178713784a998143d2 GIT binary patch literal 449 zcmV;y0Y3hTP)Px$dr3q=RA_Sj)<|;$#+Y?acu8sGsEPM8VoRuatu>TV0Dxf_uq;ddq$s7Jl)}2M=(-N$ zIDX9Y{8_u_TT24~viKw%073|PJq$x$(;V)c)X>a8sy-zNr-BnH9zxi}wbl=RwK$r0 zfSM?U_kI5(pXR*Mg(e2dgUgY`_kGVAp&aQ#vkuVNM^RZ$FpZt*Lh}(Sc~7SM}LgRG)k6!4SA7a`CDm<+@Lm`Bhs*nG0 rot6j99=Cl`mR$L$7X(2Ngj@3kN4xRB(0;Xs00000NkvXXu0mjf|H#JE literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/customnpcs/textures/gui/ability/orb_overlay.png b/src/main/resources/assets/customnpcs/textures/gui/ability/orb_overlay.png new file mode 100644 index 0000000000000000000000000000000000000000..d92a7361fd233db1dc74aa944a695e4492f168f8 GIT binary patch literal 614 zcmV-s0-61ZP)Px%AW1|)RA_I4PN&bya^z?=31B%Xu=0C?}`=dSDKXFf;DlM-Ybpxx(?a4wjjaqs=ZI3m8R zT5C{8fSZVgw{810pU>GN3RwvipM6POEIx!VKab-mu3I9ZKXNB(#M9U?3;>BfK}Tte zk!%C6ki<*ErE=T%{bnPp4Dj6#Av~BEhG9{7JkE`1O{kL?eyWcI7mtWf<-` ztx(wp_)mh^1W(wb`$U!j=Ul_ZOVI9fj_4DrBb15)7r;ew_UIGY2Bav^4vyov_~j(N zZClX@M-v5g67wkV2(0N7(p+s6R0b#tWMU~VVxcLdJjp>F0WxtupPzC<62mK03^(_x zG%vBLkx{d;)=rWEUN%#3b5cdhVO1j|oO2DC$?X%;nD>63Pe(MDO$LaZJ`qBgMW>Dx z{Fuo7Nm0ZAk<%w)@qCVU_o1YLRG*NH@Nu3m+CTn9BLIm$LC=yQ@BOOXhf+6loTIN@ zcDXS-^5SdPyUQc49(TWdgtyC(NO65=U4Y^!}R|ciMcmMzZ07*qoM6N<$g5Qf0 A7XSbN literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/customnpcs/textures/gui/ability/shield.png b/src/main/resources/assets/customnpcs/textures/gui/ability/shield.png new file mode 100644 index 0000000000000000000000000000000000000000..b2e229db5844365bc3a004c614d79953aea48b2f GIT binary patch literal 703 zcmV;w0zmzVP)Px%c}YY;RA_)j!RB5;h;6i86HcNx%P=6)%?Ct{s zWE>6s9{Ci>VgUZ*T1@W<>YNLY$K!Nu-*?bj55He`K#8nUN{s8h5A^R5qJGu>11Btz zHO2&fEjE^lY7tZj96 zk_31>DoDCNhxh?z9D~uDNQ5aUc}c*!u1P`LwjJ-SwG;fQN~|K^E;#1`4n*QP(h~8Q zfKnk;3<{y#L;*OUhIop6Ngm))_Ov&003V& zXy5my;Hm8A(3&L5^(#3tgC6pT-b!}~xC0IWd^?cCi0mV3t3bK_Jr($=_%{WN^glwH z2g|Y?uNa~NN>|CN(Y=sefnf{Tr;u{PAprLn*4ha-Pj|A>wryaooxJy_&D?D(P`bFC z1pI_~z&YNw0*IWAPXeTQAR+gh+kzC)nEyel058!M6FKI8$>O)RP)YK>9jnksHhjFi z64XA@!I)Tq5*v-22Q+?-ec;X(DxG_x0Il`poXf7tBdSpH?IWEBA*w1cS_F@W_Nn>i ziwcmc@J?{@CE15u1>R|;Uh5#5CUHzeiI8<&hgb)Z6%eyh>}IuRp{>?I6n8`D!7p9h za@*ciR(r`qjfGN`=-DszkcXBgAKhjEYbQz7C~at@whJj#H~ExOQ>+PsWJ{i=q~=8} zdFW}g^0rTGZb%hCyMWNn`j`L&ZNy2oqTrnt$TaXuFsySf*@`38>$(M;a{)8k@_7s1 l_FD-c=lHmnzh&01#&4S~6i%R0hFAaq002ovPDHLkV1lTiKQ#aV literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/customnpcs/textures/gui/ability/shockwave.png b/src/main/resources/assets/customnpcs/textures/gui/ability/shockwave.png new file mode 100644 index 0000000000000000000000000000000000000000..e7df66d5cb2c4bcede32de49b4ac6b0092f1698f GIT binary patch literal 362 zcmV-w0hRuVP)Px$BuPX;RA_{ z0{hOVv;br~rMb{Jo)N+uusKo_)0^(j5X=CeViN&Z35FA~MhP?#oPx$Pf0{URA_9Im~GN9P`_J%_WHGS4BRV$+U&eJ`Z|06@-p>HissSOEZHjBo8JrD^}F0gEoB+$PitB37Q1Hkr4^ z6GUrFCnLk;WG-6&l6ZzS2O_E~$pRw8T6V*Ylb4yrdr!~Mu=UJu=0zLtV3^PgBC02a zl}V3u>q+#qUA9rpT{4{DhYzxmj`rJ94t(NVSUJRC^(rAdUNj9~0%|FR$C>_XU8sw( zwpCiUxLvH{2N0`jS%HB!+CFOY-nHKyGv^!vB34TWL{vvfOhm8el#<%k6BT1Lc^DC& z2ib12j`rqG2&i7Lif+S6&4KR>atEtA%&{knj=Qm*F@c4hcK@Hjx`S+BPMeUXZ&*^w zM1;+{b%a)L%Q2Tq${lud*E<2a7vIG^AFW%L6sb9ubz00000NkvXXu0mjfmD#iw literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/customnpcs/textures/gui/ability/slam.png b/src/main/resources/assets/customnpcs/textures/gui/ability/slam.png new file mode 100644 index 0000000000000000000000000000000000000000..bfa581fb408ac367ca78c8becae5e541f56b737e GIT binary patch literal 949 zcmV;m14{gfP)Px&Z%IT!RA_M~$OSTWN|qccOEUeb7s!xoSv&{u z0pc4J_O1>!{b`w!C0T7c=2SdsOKEJznCvOP9G{F!Hdm$tM-RoVxQh8 zlw~sj0Lb$TRCS%`^ zm!2>bhfxV5lN3T#b)6K&wRLzYpCL`Bkmna~bLvE)P!VN$>xIrNo3+AlrPFlUK0`&I z5EKzCAVdU)Pb7dVukVUJhl&^j_8jmL!Nq;wRU9M2c#ye>&~2IG4WLCq#~$E;k~lFbxvIbcZ$2h zE1iacG#H~2C69-geqM0?5dv=k;2?rJHm*2Fb}V@aF(C?@If211z~IcGCN#S3F_e7i z^#Z2OTyYbECsUkv6~>tpeYRQIc6C>)_ite&!Q*OZX8~Y1tbFnzU4-pf>dYu28piAd zFy=(cP5>-`NHvCLM9nFN2&a2KBB%f=LMIO z2dC2*B7y07QX*JJR&|{;0u*TJv(a}P!s)1bfCG}DyF&ybG3&F)%{1><5H&4$;1A;q Xu)6JQ^cb@Z00000NkvXXu0mjfGjFD9 literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/customnpcs/textures/gui/ability/sweeper.png b/src/main/resources/assets/customnpcs/textures/gui/ability/sweeper.png new file mode 100644 index 0000000000000000000000000000000000000000..f91317535cbd966ec315239170a8ac3653738ef4 GIT binary patch literal 364 zcmV-y0h9iTP)Px$CP_p=RA_45fDNMAr8!mRoI!Od_RmMZ5&ErXO?caKL9|C9b)WgBF>DWnZAEA%L7aS zegDKTyjbNYK{yl>#lQYo+&RRlP*)4 zA7fXe{3@H5b>8c1UzyQHn^s`SsO2O>XyJXcaf<6~5-^P8DPQyF^LImN!SKMPcEOVD z2>`S`fwGb1qeM<6?;FI}O=(nftX+0u=dQqKKd23@g_dHJkwUc7=xmIHUyRXjV5JaM zz$aq=?~jy1OR$a=y9r>ii-6L+wS7=M754g(5kd$dgb+fA!}A8?B8o5yPFzU<0000< KMNUMnLSTYe#ho4i literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/customnpcs/textures/gui/ability/sweeper_overlay.png b/src/main/resources/assets/customnpcs/textures/gui/ability/sweeper_overlay.png new file mode 100644 index 0000000000000000000000000000000000000000..23048a1b823e3cab0842bdd09959a2423e5f3620 GIT binary patch literal 608 zcmV-m0-ybfP)Px%8c9S!RA_yq)_CAerp zo+O?mT7tE9rI`2o9RM(nV{&{>+`|J(Tq*T(q9yS8zytw+)*1lN_xb+laK}qFegSoQQV)BimK!?( z05H#UapD~A2p9iuA<0dgDjA5fk@u8RP)cnJp|!?5&v4FdE?+6+Ay8}|l!}Or<&HY% z0M>b4AtV_fB}BH?IU#&(Ovo#xMQ#=!WRw6etx`v%Xo$9Xnx}NVg%Dtjf!6w1 zD}lr&FBP&Z3x;9HiirsV0AmagX{}FLN7vGo((>YODH22*Jw@z`%@}jd_W(|cp-#3G za)EQ%>+FaaLLPoOq&tV(=_AC%a8msg#7Ull?}I8IA^dkt5K&rATx9i+cPWVAEeKzI u`PKnzPf){wBc#N|sL|;*8jVKd@ACsIsj&W8O=GJ70000Px&M@d9MRA_dX%Ns$k@x+-b%uvGVf6iH_w(6s{i zfZPuZvS*5D1)5rlTw1ySfd?=QOC+_kyWAbo0C(JR#~uGIl$5@9?#B{B4004M>{Y~C~ z69Sx6!c?)&iD5W{F(X*#L~8tQ1eBEcUFCfxrSJPAXx)L5(*OARog|TDRtq#(>rN=u zcuWCfMu5q)xi$KSM{mqHM^5Vwj2U5g`L&q4X#|v%UhD4f#+x=Uerw&KH?!-6X@kU# z8R5(4uZw7IMqn~tzu$f-n@*4#;2lCf>h}Yv1=m>H{o8`tPccL2yZBs*N(+F7S$h^lA zI~l*Y{!h?9JbIYCrlh>`UU)6|0Ck^QlY{rQ1e9tP224hxn47O-RHzieYqguYDutAk z-rCD7&?uCaP@G>P@+hzg#1BG4QH4^T@B8CCh9Z5-USJWxaHBzpSUyuEwC=8?Mv4Tt z60sw2Iz7!wGfb0MfySPW-wzPRjLCbu5P(VRP&rNsIITOd_L4jnLDU!z90K@`no^lL z^;xP;IZ_*HBM{4l@OMs1T#b!N=P;bvwy+4Kj5B5=<%3cUl*kJ-yrvql8(Hi@40pUI z!V?ARKDCBY4g39}suRaA+t?e{JV=$+5W{d@l;;v`BIZz_m2}_Wd}xbDmlHs_yk=xc z4(GBvd)RH8>fJKtLCkYRYpUt zLcJyq!+D`+V)>9G!!4uLQo=eX@Q;WX6j5p%u5rupBRhrSGaktF1|U)+9DnQaBP#-^ jdveW)+pJ3d$VlN2;KlCE2Zmeb00000NkvXXu0mjfYQLg} literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/customnpcs/textures/gui/ability/trap.png b/src/main/resources/assets/customnpcs/textures/gui/ability/trap.png new file mode 100644 index 0000000000000000000000000000000000000000..f6ef614c03823d23177273d482e66d52bc17537d GIT binary patch literal 718 zcmV;<0x|uGP)Px%h)G02RA_>zPXqu)V+r+ZL^FaY8(nt0| zdxRbqz=Z&SlyY7(#{9^~7WQmScqY~kO*kU}Q@B%8nFpNqML4*xQc4x6?7Tb`iBPON zNh#;;N87gJ_xJbw+>x!x)*0ed1vrEdg%F}B%W^>;K|bobPFgH%0N7Enx1U$HTHfVy znXkhN#5Rq4&Ltl^aEC%Td2TU6Xsx}w;E(=eKPx(3rR#lRA_FmL|Hn^6Mhd3MXP5D`&XmRZWXe*)H8_uD!oW1eR>&+|s{ze46; z%tLveABGDLuW6cyh^T3r%foD!fH7uON)r z%vTuBz)Jvt+a+Lmtu<+_Pks0@5AbTTcW)Sm_4;p?)J+b+GS*s$Tr2&0DY{wV?^<{?f3iO824R3%A*M3VyvYppvfqeqDx zl>;CkEn=;8ys8}K13YoN-PT-?9i9?TFrt(Ahy(>rD0ujQ1ScR#&{bs=VX_xaN~!fZ zRGm*OZqt6E7O2pu&_ zBD}2f(pnV7t_;3vav~`@9^!}uhdc{{RiRYh_pa}IC#@|PetD07<5Uu3q(1WxOvs|X zks?O^=_}a;p7FxVj`*y#4hr~sgH)U!Rfdilxy%rL zcu{+vQrBBtkjdltG1*vgLZ>&YP#l`DS9K5zxT^9SL7 Xm3N2ib<`Fk00000NkvXXu0mjfmuv!& literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/customnpcs/textures/gui/ability/wall.png b/src/main/resources/assets/customnpcs/textures/gui/ability/wall.png new file mode 100644 index 0000000000000000000000000000000000000000..83de77ef0cf9f7991166f5900abdeb0625edb539 GIT binary patch literal 382 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA1|-9oezpTC#^NA%Cx&(BWL^T<7M?DSAsLNt zryJ%SHsEo6xoC0A9R=G4hVyYny*{>a%VU(gpEKAw)G#;SxqDPcVzHjiR>8mr`#mo> z)O-q_;=%$n4+IXhAB%S2NxWv-o$`9+EFf!}QZh%em+sMu1&=@W>P_!|qY^i7(HHhD zkF@R;+3mNt*wlXA{@V8L_bz>p_iBWdvIk|YeC@|yeI~eY&nnIh9>zT8icsPDp8x=U_s>--o{(r{9n@wV3~i+e!5|C6~iudzPsyyp4# z;M!K5u$pz;>-g4a-P^!n=pU*3OyclJi7H%|il_{Ia_ Xm6?+tH6Kf22l?L9)z4*}Q$iB}Jq4lk literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/customnpcs/textures/gui/ability/wall_overlay.png b/src/main/resources/assets/customnpcs/textures/gui/ability/wall_overlay.png new file mode 100644 index 0000000000000000000000000000000000000000..1a661b7cfd7e442832db03038861b31b27b68e68 GIT binary patch literal 558 zcmV+}0@3}6P)Px$=t)FDRA_Y)F_qvbd)1kNG@^)w#n=|34dN= zpztdLR^DfZk+Fe;gD6^S>l^zjtFjKQwbfeNaU8uNzRPRHVOe9$?{CH!XsxYMN-XC# z6~HAPqlo}9@$>oYy|!wAn7EV@05Fat`o72Mbo!W6B|xfpN+}f$kW-u~5+GGPG{?uT z0b=4@)AKwdG%v(10ZNE7Sp$?5XR-vSA40vZgLlz=Q)RXsB~D|F2!Ti zI1e~O5D}(na@IcI`S={&Qu9NL>7SXl!_RJ!6G8g1OvEQ=oVa? zbIJ3Lf4n*gQDg;T;&{p{rI6ZUnO)z^5fN`rr~I-lKIK=l%L*iviogcxC0PR`*0{(a z&SVLYD4x_+*0L!;O>yR50a_4ek^=B^P)p)W@(OS}bWuZ`i3T7dNGXGTyoNXv44{+} wu1`BHh%>7;aZBQ>;E!#!Jq`{I4i2*O188G^6eqv2rvLx|07*qoM6N<$f_HT9KmY&$ literal 0 HcmV?d00001