mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-22 04:27:59 +01:00
Update HDSkins/Kirin version
This commit is contained in:
parent
ebbcad4342
commit
ef9b51e9ec
3 changed files with 12 additions and 11 deletions
2
HDSkins
2
HDSkins
|
@ -1 +1 @@
|
|||
Subproject commit 75592ae6b4ee1311e47cc51645076a7f5548d224
|
||||
Subproject commit a4064e13e77d9cd0e840109d626f65e424e4c944
|
3
gradle/wrapper/gradle-wrapper.properties
vendored
3
gradle/wrapper/gradle-wrapper.properties
vendored
|
@ -1,5 +1,6 @@
|
|||
#Mon Apr 15 20:00:20 CAT 2019
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-all.zip
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
package com.minelittlepony.client.gui;
|
||||
|
||||
import net.minecraft.client.gui.GuiScreen;
|
||||
import net.minecraft.client.resources.I18n;
|
||||
|
||||
import com.minelittlepony.MineLittlePony;
|
||||
import com.minelittlepony.client.render.entities.MobRenderers;
|
||||
import com.minelittlepony.common.client.gui.GameGui;
|
||||
import com.minelittlepony.common.client.gui.GuiHost;
|
||||
import com.minelittlepony.common.client.gui.IGuiGuest;
|
||||
import com.minelittlepony.common.client.gui.element.Label;
|
||||
|
@ -50,7 +50,7 @@ public class GuiPonySettings implements IGuiGuest {
|
|||
config.setPonyLevel(level);
|
||||
return (float)level.ordinal();
|
||||
})
|
||||
.setFormatter(value -> GameGui.format(PONY_LEVEL + "." + PonyLevel.valueFor(value).name().toLowerCase())));
|
||||
.setFormatter(value -> I18n.format(PONY_LEVEL + "." + PonyLevel.valueFor(value).name().toLowerCase())));
|
||||
|
||||
if (GuiScreen.isCtrlKeyDown() && GuiScreen.isShiftKeyDown()) {
|
||||
host.addButton(new Label(LEFT, row += 30)).getStyle().setText("minelp.debug.scale");
|
||||
|
@ -59,7 +59,7 @@ public class GuiPonySettings implements IGuiGuest {
|
|||
config.setGlobalScaleFactor(v);
|
||||
return config.getGlobalScaleFactor();
|
||||
})
|
||||
.setFormatter(value -> GameGui.format("minelp.debug.scale.value", GameGui.format(describeCurrentScale(value)))));
|
||||
.setFormatter(value -> I18n.format("minelp.debug.scale.value", I18n.format(describeCurrentScale(value)))));
|
||||
}
|
||||
|
||||
row += 15;
|
||||
|
@ -86,25 +86,25 @@ public class GuiPonySettings implements IGuiGuest {
|
|||
|
||||
public String describeCurrentScale(float value) {
|
||||
if (value >= 3) {
|
||||
return GameGui.format("minelp.debug.scale.meg");
|
||||
return I18n.format("minelp.debug.scale.meg");
|
||||
}
|
||||
if (value == 2) {
|
||||
return GameGui.format("minelp.debug.scale.max");
|
||||
return I18n.format("minelp.debug.scale.max");
|
||||
}
|
||||
if (value == 1) {
|
||||
return GameGui.format("minelp.debug.scale.mid");
|
||||
return I18n.format("minelp.debug.scale.mid");
|
||||
}
|
||||
if (value == 0.9F) {
|
||||
return GameGui.format("minelp.debug.scale.sa");
|
||||
return I18n.format("minelp.debug.scale.sa");
|
||||
}
|
||||
if (value <= 0.1F) {
|
||||
return GameGui.format("minelp.debug.scale.min");
|
||||
return I18n.format("minelp.debug.scale.min");
|
||||
}
|
||||
return String.format("%f", value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean drawContents(GuiHost host, int mouseX, int mouseY, float partialTicks) {
|
||||
public boolean render(GuiHost host, int mouseX, int mouseY, float partialTicks) {
|
||||
host.drawDefaultBackground();
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue