mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 07:59:08 +00:00
Big Changes to ModelMPM for 1.8 Layers
> Added all 2D Layers to Models > Moved Texture Location for PartData to remove texture syncing between MorePlayerModels and CustomNPC. > Attempted first start at Bodywear 3D model similar to Headwear 3D model.
This commit is contained in:
1 parent
be2f32a97f
commit
8a4be0bc1e
68 files changed
+476
-219
No files matched your search
@@ -10,6 +10,7 @@ import noppes.npcs.entity.EntityCustomNpc;
|
||||
|
||||
public class GuiModelArms extends GuiModelInterface{
|
||||
|
||||
private final String[] arrArmwear = new String[]{"gui.no","Both","Left","Right"};
|
||||
private final String[] arrParticles = new String[]{"gui.no","Both","Left","Right"};
|
||||
|
||||
private GuiScreen parent;
|
||||
@@ -24,6 +25,11 @@ public class GuiModelArms extends GuiModelInterface{
|
||||
super.initGui();
|
||||
int y = guiTop + 20;
|
||||
|
||||
if (npc.display.modelType == 1 || npc.display.modelType == 2) {
|
||||
addButton(new GuiNpcButton(8, guiLeft + 50, y += 22, 70, 20, arrArmwear, playerdata.armwear));
|
||||
addLabel(new GuiNpcLabel(8, "Armwear", guiLeft, y + 5, 0xFFFFFF));
|
||||
}
|
||||
|
||||
ModelPartData claws = playerdata.getPartData("claws");
|
||||
addButton(new GuiNpcButton(0, guiLeft + 50, y += 22, 70, 20, arrParticles, claws == null?0:claws.type + 1));
|
||||
addLabel(new GuiNpcLabel(0, "Claws", guiLeft, y + 5, 0xFFFFFF));
|
||||
@@ -37,6 +43,9 @@ public class GuiModelArms extends GuiModelInterface{
|
||||
super.actionPerformed(btn);
|
||||
GuiNpcButton button = (GuiNpcButton) btn;
|
||||
|
||||
if(button.id == 8){
|
||||
playerdata.armwear = (byte) button.getValue();
|
||||
}
|
||||
if(button.id == 0){
|
||||
if(button.getValue() == 0)
|
||||
playerdata.removePart("claws");
|
||||
|
||||
Reference in new issue
Block a user