mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-29 07:27:59 +01:00
Add the vex textures and add the illagers to the options.
This commit is contained in:
parent
aead97e244
commit
9e951f5aa7
5 changed files with 10 additions and 6 deletions
|
@ -27,13 +27,12 @@ public class PonySettingPanel extends GuiScreen {
|
|||
|
||||
private static final String MOB_PREFIX = "minelp.mobs.";
|
||||
|
||||
private static final String RESTART = "minelp.restart";
|
||||
|
||||
private static final String MOB_TITLE = MOB_PREFIX + "title";
|
||||
private static final String VILLAGERS = MOB_PREFIX + "villagers";
|
||||
private static final String ZOMBIES = MOB_PREFIX + "zombies";
|
||||
private static final String ZOMBIE_PIGMEN = MOB_PREFIX + "zombiepigmen";
|
||||
private static final String SKELETONS = MOB_PREFIX + "skeletons";
|
||||
private static final String ILLAGERS = MOB_PREFIX + "illagers";
|
||||
|
||||
private static final int PONY_ID = 0;
|
||||
private static final int HUMAN_ID = 1;
|
||||
|
@ -47,6 +46,7 @@ public class PonySettingPanel extends GuiScreen {
|
|||
private static final int ZOMBIES_ID = 8;
|
||||
private static final int ZOMBIE_PIGMEN_ID = 9;
|
||||
private static final int SKELETONS_ID = 10;
|
||||
private static final int ILLAGER_ID = 11;
|
||||
|
||||
private PonyConfig config;
|
||||
|
||||
|
@ -62,7 +62,7 @@ public class PonySettingPanel extends GuiScreen {
|
|||
@Override
|
||||
public void initGui() {
|
||||
final int LEFT = width / 10 + 16;
|
||||
GuiCheckbox pony, human, both, hd, sizes, snuzzles, showscale, villager, zombie, pigmen, skeleton;
|
||||
GuiCheckbox pony, human, both, hd, sizes, snuzzles, showscale, villager, zombie, pigmen, skeleton, illager;
|
||||
int row = 32;
|
||||
this.buttonList.add(pony = ponies = new GuiCheckbox(PONY_ID, LEFT, row += 15, I18n.format(PONY)));
|
||||
this.buttonList.add(human = humans = new GuiCheckbox(HUMAN_ID, LEFT, row += 15, I18n.format(HUMAN)));
|
||||
|
@ -79,6 +79,7 @@ public class PonySettingPanel extends GuiScreen {
|
|||
this.buttonList.add(zombie = new GuiCheckbox(ZOMBIES_ID, RIGHT, row += 15, I18n.format(ZOMBIES)));
|
||||
this.buttonList.add(pigmen = new GuiCheckbox(ZOMBIE_PIGMEN_ID, RIGHT, row += 15, I18n.format(ZOMBIE_PIGMEN)));
|
||||
this.buttonList.add(skeleton = new GuiCheckbox(SKELETONS_ID, RIGHT, row += 15, I18n.format(SKELETONS)));
|
||||
this.buttonList.add(illager = new GuiCheckbox(ILLAGER_ID, RIGHT, row += 15, I18n.format(ILLAGERS)));
|
||||
|
||||
switch (config.getPonyLevel()) {
|
||||
default:
|
||||
|
@ -100,6 +101,7 @@ public class PonySettingPanel extends GuiScreen {
|
|||
zombie.checked = config.zombies;
|
||||
pigmen.checked = config.pigzombies;
|
||||
skeleton.checked = config.skeletons;
|
||||
illager.checked = config.illagers;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -111,7 +113,6 @@ public class PonySettingPanel extends GuiScreen {
|
|||
this.drawString(mc.fontRendererObj, I18n.format(MOB_TITLE), width - width / 3 - 16, 32, -1);
|
||||
this.drawString(mc.fontRendererObj, I18n.format(PONY_LEVEL), width / 10, 32, -1);
|
||||
this.drawString(mc.fontRendererObj, I18n.format(OPTIONS), width / 10, 94, -1);
|
||||
this.mc.fontRendererObj.drawSplitString(I18n.format(RESTART), width - width / 3, 120, width / 3, 0xFF5555);
|
||||
|
||||
super.drawScreen(mouseX, mouseY, partialTicks);
|
||||
}
|
||||
|
@ -166,6 +167,9 @@ public class PonySettingPanel extends GuiScreen {
|
|||
case SKELETONS_ID:
|
||||
config.skeletons = checked;
|
||||
break;
|
||||
case ILLAGER_ID:
|
||||
config.illagers = checked;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -67,10 +67,9 @@ public class ModelBreezie extends ModelBiped {
|
|||
setRotation(leftWing, 0F, -0.6981317F, 0F);
|
||||
|
||||
rightWing = new ModelRenderer(this, 0, 40);
|
||||
rightWing.addBox(-24F, -12F, 0F, 24, 24, 0);
|
||||
rightWing.addBox(-24F, -12F, 0F, 24, 24, 0, true);
|
||||
rightWing.setRotationPoint(-2F, 3F, 1F);
|
||||
rightWing.setTextureSize(64, 32);
|
||||
rightWing.mirror = true;
|
||||
setRotation(rightWing, 0F, 0.6981317F, 0F);
|
||||
|
||||
}
|
||||
|
|
|
@ -16,3 +16,4 @@ minelp.mobs.villagers=Ponify villagers
|
|||
minelp.mobs.zombies=Ponify zombies
|
||||
minelp.mobs.zombiepigmen=Ponify zombie pigmen
|
||||
minelp.mobs.skeletons=Ponify skeletons
|
||||
minelp.mobs.illagers=Ponify illagers
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.5 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.5 KiB |
Loading…
Reference in a new issue