mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 03:52:18 +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");
|
||||
|
||||
@@ -11,6 +11,7 @@ import noppes.npcs.entity.EntityCustomNpc;
|
||||
public class GuiModelBody extends GuiModelInterface{
|
||||
|
||||
private GuiScreen parent;
|
||||
private final String[] arrBodywear = new String[]{"gui.no","gui.yes"};
|
||||
private final String[] arrWing = new String[]{"gui.no","Player","Type1","Type2","Type3","Type4","Type5","Type6","Type7","Type8","Type9",
|
||||
"Type10","Type11","Type12","Type13"};
|
||||
private final String[] arrBreasts = new String[]{"gui.no","Type1","Type2","Type3"};
|
||||
@@ -27,7 +28,14 @@ public class GuiModelBody extends GuiModelInterface{
|
||||
@Override
|
||||
public void initGui() {
|
||||
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, arrBodywear, playerdata.bodywear));
|
||||
addLabel(new GuiNpcLabel(8, "Bodywear", guiLeft, y + 5, 0xFFFFFF));
|
||||
}
|
||||
|
||||
addButton(new GuiNpcButton(1, guiLeft + 50, y += 22, 70, 20, arrBreasts, playerdata.breasts));
|
||||
addLabel(new GuiNpcLabel(1, "Breasts", guiLeft, y + 5, 0xFFFFFF));
|
||||
|
||||
@@ -183,6 +191,10 @@ public class GuiModelBody extends GuiModelInterface{
|
||||
initGui();
|
||||
}
|
||||
|
||||
if(button.id == 8){
|
||||
playerdata.bodywear = (byte) button.getValue();
|
||||
}
|
||||
|
||||
if(button.id == 11){
|
||||
this.mc.displayGuiScreen(new GuiModelColor(this, playerdata.getPartData("wings"), npc));
|
||||
}
|
||||
|
||||
@@ -10,7 +10,8 @@ import noppes.npcs.entity.EntityCustomNpc;
|
||||
|
||||
public class GuiModelLegs extends GuiModelInterface{
|
||||
|
||||
private GuiScreen parent; // 0 1 2 3 4 5 6 7 8
|
||||
private GuiScreen parent;
|
||||
private final String[] arrLegwear = new String[]{"gui.no","Both","Left","Right"};
|
||||
private final String[] arrLegs = new String[]{"gui.no","Player","Player Naga","Spider","Horse","Naga", "Mermaid", "Mermaid 2","Digitigrade"};
|
||||
private final String[] arrTail = new String[]{"gui.no","Player", "Player Dragon","Cat","Wolf","Horse","Dragon", "Squirrel", "Fin", "Rodent", "Feather"};
|
||||
public GuiModelLegs(GuiScreen parent, EntityCustomNpc npc){
|
||||
@@ -24,6 +25,11 @@ public class GuiModelLegs 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, arrLegwear, playerdata.legwear));
|
||||
addLabel(new GuiNpcLabel(8, "Legwear", guiLeft, y + 5, 0xFFFFFF));
|
||||
}
|
||||
|
||||
addButton(new GuiNpcButton(1, guiLeft + 50, y += 22, 70, 20, arrLegs, getLegIndex(playerdata.legParts)));
|
||||
addLabel(new GuiNpcLabel(1, "Legs", guiLeft, y + 5, 0xFFFFFF));
|
||||
if(playerdata.legParts.type > 0)
|
||||
@@ -79,6 +85,9 @@ public class GuiModelLegs extends GuiModelInterface{
|
||||
super.actionPerformed(btn);
|
||||
GuiNpcButton button = (GuiNpcButton) btn;
|
||||
|
||||
if(button.id == 8){
|
||||
playerdata.legwear = (byte) button.getValue();
|
||||
}
|
||||
if(button.id == 1){
|
||||
ModelPartData data = playerdata.legParts;
|
||||
int value = button.getValue() - 1;
|
||||
|
||||
Reference in new issue
Block a user