Fix GUI and update to correct translate function
This commit is contained in:
@@ -230,9 +230,10 @@ public class GuiConfig extends GuiScreen {
|
|||||||
drawTexturedModalRect(guiShowBasePosX + 105, guiShowBasePosY + 17, 200, 0, 50, 50);
|
drawTexturedModalRect(guiShowBasePosX + 105, guiShowBasePosY + 17, 200, 0, 50, 50);
|
||||||
|
|
||||||
drawInfoString(1, 86, 21);
|
drawInfoString(1, 86, 21);
|
||||||
drawInfoString(4, 86, 58);
|
drawInfoString(0, 24, 21);
|
||||||
drawInfoString(3, 63, 50);
|
drawInfoString(4, 86, 63);
|
||||||
drawInfoString(5, 109, 50);
|
drawInfoString(3, 64, 56);
|
||||||
|
drawInfoString(5, 109, 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void genEnchantmentInfo() {
|
private void genEnchantmentInfo() {
|
||||||
@@ -245,8 +246,8 @@ public class GuiConfig extends GuiScreen {
|
|||||||
mc.renderEngine.bindTexture(new ResourceLocation(CraftingKeys.MODID, "textures/gui/symbols.png"));
|
mc.renderEngine.bindTexture(new ResourceLocation(CraftingKeys.MODID, "textures/gui/symbols.png"));
|
||||||
drawTexturedModalRect(guiShowBasePosX + 105, guiShowBasePosY + 17, 150, 50, 50, 50);
|
drawTexturedModalRect(guiShowBasePosX + 105, guiShowBasePosY + 17, 150, 50, 50, 50);
|
||||||
|
|
||||||
drawInfoString(1, 32, 51);
|
drawInfoString(1, 22, 51);
|
||||||
// NEW_1_8 drawInfoString(2, 42, 51);
|
drawInfoString(2, 42, 51);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -292,11 +293,11 @@ public class GuiConfig extends GuiScreen {
|
|||||||
mc.renderEngine.bindTexture(new ResourceLocation(CraftingKeys.MODID, "textures/gui/symbols.png"));
|
mc.renderEngine.bindTexture(new ResourceLocation(CraftingKeys.MODID, "textures/gui/symbols.png"));
|
||||||
drawTexturedModalRect(guiShowBasePosX + 105, guiShowBasePosY + 17, 0, 0, 50, 50);
|
drawTexturedModalRect(guiShowBasePosX + 105, guiShowBasePosY + 17, 0, 0, 50, 50);
|
||||||
|
|
||||||
drawInfoString(1, 95, 30);
|
drawInfoString(1, 105, 22);
|
||||||
drawInfoString(2, 113, 30);
|
drawInfoString(2, 123, 22);
|
||||||
drawInfoString(4, 95, 48);
|
drawInfoString(4, 105, 40);
|
||||||
drawInfoString(5, 113, 48);
|
drawInfoString(5, 123, 40);
|
||||||
drawInfoString(9, 151, 40);
|
drawInfoString(9, 161, 32);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void genDispenserInfo() {
|
private void genDispenserInfo() {
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ public class BrewingManager extends ContainerManager {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected int specificKeyToSlotIndex() {
|
protected int specificKeyToSlotIndex() {
|
||||||
return mapKeyToSlot(-1, 3, -1, 0, 1, 2, -1, -1, -1);
|
return mapKeyToSlot(4, 3, -1, 0, 1, 2, -1, -1, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
package de.skate702.craftingkeys.util;
|
package de.skate702.craftingkeys.util;
|
||||||
|
|
||||||
//NEW_1_9: net.minecraft.util.text.translation.I18n;
|
//NEW_1_9: net.minecraft.util.text.translation.I18n;
|
||||||
|
//NEW:1.9.4: import static net.minecraft.client.resources.I18n.format;
|
||||||
import net.minecraft.util.StatCollector;
|
import static net.minecraft.client.resources.I18n.format;
|
||||||
|
|
||||||
public class LanguageLocalizer {
|
public class LanguageLocalizer {
|
||||||
/**
|
/**
|
||||||
@@ -13,6 +13,7 @@ public class LanguageLocalizer {
|
|||||||
*/
|
*/
|
||||||
public static String localize(String unloc) {
|
public static String localize(String unloc) {
|
||||||
//NEW_1_9 return I18n.translateToLocal(unloc);
|
//NEW_1_9 return I18n.translateToLocal(unloc);
|
||||||
return StatCollector.translateToLocal(unloc);
|
//NEW_1_9.4: return I18n.format(unloc);
|
||||||
|
return format(unloc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user