Updating Texture Sizes

Attempting to implement a selective renderer to allow for 64x64 Skin Url type for mobs.
This commit is contained in:
KAMKEEL committed 2021-05-04 03:52:44 -04:00
1 parent 8a4be0bc1e
commit 66270715ac
41 files changed
+487 -18

No files matched your search

@@ -56,7 +56,7 @@ public class GuiNpcDisplay extends GuiNPCInterface2 implements ITextfieldListene
addLabel(new GuiNpcLabel(4,"display.texture", guiLeft + 5, y + 5));
addTextField(new GuiNpcTextField(3,this, fontRendererObj, guiLeft + 80, y, 200, 20, display.skinType == 0?display.texture:display.url));
this.addButton(new GuiNpcButton(3, guiLeft + 325, y, 38, 20, "mco.template.button.select"));
this.addButton(new GuiNpcButton(2, guiLeft + 283, y, 40, 20, new String[]{"display.texture","display.player", "display.url"},display.skinType));
this.addButton(new GuiNpcButton(2, guiLeft + 283, y, 40, 20, new String[]{"display.texture","display.player", "display.url", "display.url64"},display.skinType));
getButton(3).setEnabled(display.skinType == 0);
if(display.skinType == 1 && display.playerProfile != null)
getTextField(3).setText(display.playerProfile.getName());
@@ -102,7 +102,8 @@ public class GuiNpcDisplay extends GuiNPCInterface2 implements ITextfieldListene
display.modelSize = textfield.getInteger();
}
else if(textfield.id == 3){
if(display.skinType == 2)
// SKIN CHANGE
if(display.skinType == 2 || display.skinType == 3)
display.url = textfield.getText();
else if(display.skinType == 1){
if(!textfield.isEmpty()){
@@ -137,7 +138,10 @@ public class GuiNpcDisplay extends GuiNPCInterface2 implements ITextfieldListene
}
if(button.id == 2){
display.skinType = (byte) button.getValue();
display.url = "";
// SKIN CHANGE
if (display.skinType != 3){
display.url = "";
}
display.playerProfile = null;
initGui();
}
@@ -270,6 +270,9 @@ public class GuiCreationScreen extends GuiModelInterface implements ICustomScrol
// New Button for Changing Models
if(button.id == 250){
if(npc.display.modelType == 0){
if (npc.display.skinType == 2){
npc.display.skinType = 3;
}
npc.display.modelType = 1;
}
else if(npc.display.modelType == 1){
@@ -277,6 +280,9 @@ public class GuiCreationScreen extends GuiModelInterface implements ICustomScrol
}
else {
npc.display.modelType = 0;
if (npc.display.skinType == 3){
npc.display.skinType = 2;
}
}
}
@@ -15,7 +15,7 @@ public class GuiModelBody extends GuiModelInterface{
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"};
private final String[] arrParticles = new String[]{"gui.no","Player","Type1","Type2", "Rainbow"};
private final String[] arrParticles = new String[]{"gui.no","Player","Type1", "Type2", "Rainbow", "Type3", "Type4", "Type5", "Type6", "Type7"};
private final String[] arrfins = new String[]{"gui.no","Player","Type1","Type2","Type3","Type4","Type5","Type6"};
private final String[] arrskirt = new String[]{"gui.no","Player","Type1"};
@@ -109,6 +109,16 @@ public class GuiModelBody extends GuiModelInterface{
return 2;
if(particles.texture.contains("2"))
return 3;
if(particles.texture.contains("3"))
return 5;
if(particles.texture.contains("4"))
return 6;
if(particles.texture.contains("5"))
return 7;
if(particles.texture.contains("6"))
return 8;
if(particles.texture.contains("7"))
return 9;
}
if(particles.type == 1){
return 4;
@@ -149,6 +159,16 @@ public class GuiModelBody extends GuiModelInterface{
particles.setTexture("particle/type2", 0);
if(value == 4)
particles.setTexture("", 1);
if(value == 5)
particles.setTexture("particle/type3", 0);
if(value == 6)
particles.setTexture("particle/type4", 0);
if(value == 7)
particles.setTexture("particle/type5", 0);
if(value == 8)
particles.setTexture("particle/type6", 0);
if(value == 9)
particles.setTexture("particle/type7", 0);
}
initGui();
}