Added some localization

This commit is contained in:
kordum committed 2017-06-11 10:55:57 +03:00
1 parent 1d3b4b7572
commit 493ef4fdf9
29 files changed
+103 -472

No files matched your search

@@ -69,7 +69,7 @@ public class ControlTab<T> extends Control implements ITooltip, IControlValue<T>
if (icon.hasOutline()) {
iTexture = CraftGUI.Render.getTexture(CraftGUITexture.TabOutline);
iTexture = iTexture.crop(position, 8.0f);
CraftGUI.Render.colour(icon.getOutlineColour());
CraftGUI.Render.color(icon.getOutlineColour());
CraftGUI.Render.texture(iTexture, area.inset(2));
}
}
@@ -28,7 +28,7 @@ class ControlBreedingProgress extends Control {
CraftGUI.Render.texture(CraftGUITexture.PanelBlack, getArea());
IArea area = getArea().inset(1);
area.setSize(new IPoint(area.size().x() * percentage, area.size().y()));
CraftGUI.Render.colour(colour);
CraftGUI.Render.color(colour);
CraftGUI.Render.texture(ControlBreedingProgress.Progress, area);
}
}
@@ -392,7 +392,7 @@ public class GuiCraftGUI extends GuiContainer {
GL11.glEnable(3042);
OpenGlHelper.glBlendFunc(770, 771, 1, 0);
RenderHelper.disableStandardItemLighting();
CraftGUI.Render.colour(-1);
CraftGUI.Render.color(-1);
GL11.glEnable(32826);
GL11.glPopMatrix();
}
@@ -211,14 +211,14 @@ public abstract class Window extends TopLevelWidget implements INetwork.RecieveG
@Override
public void onRenderBackground() {
CraftGUI.Render.colour(0xffffff);
CraftGUI.Render.color(0xffffff);
if (getBackground1() != null) {
CraftGUI.Render.texture(getBackground1(), IPoint.ZERO);
}
if (getBackground2() != null) {
CraftGUI.Render.texture(getBackground2(), new IPoint(256.0f, 0.0f));
}
CraftGUI.Render.colour(getColor());
CraftGUI.Render.color(getColor());
CraftGUI.Render.texture(CraftGUITexture.Window, getArea());
}
@@ -87,7 +87,7 @@ public class ControlEnergyBar extends Control implements ITooltip {
public void onRenderBackground() {
CraftGUI.Render.texture(CraftGUITexture.EnergyBarBack, getArea());
float percentage = getPercentage() / 100.0f;
CraftGUI.Render.colour(getColourFromPercentage(percentage));
CraftGUI.Render.color(getColourFromPercentage(percentage));
IArea area = getArea();
switch (direction) {
@@ -121,11 +121,11 @@ public class ControlEnergyBar extends Control implements ITooltip {
public void onRenderForeground() {
if (isMouseOver() && Window.get(this).getGui().isHelpMode()) {
IArea area = getArea();
CraftGUI.Render.colour(MinecraftTooltip.getOutline(Tooltip.Type.HELP));
CraftGUI.Render.color(MinecraftTooltip.getOutline(Tooltip.Type.HELP));
CraftGUI.Render.texture(CraftGUITexture.Outline, area.outset(1));
} else if (ControlEnergyBar.isError) {
IArea area = getArea();
CraftGUI.Render.colour(MinecraftTooltip.getOutline(MinecraftTooltip.Type.ERROR));
CraftGUI.Render.color(MinecraftTooltip.getOutline(MinecraftTooltip.Type.ERROR));
CraftGUI.Render.texture(CraftGUITexture.Outline, area.outset(1));
}
}
@@ -125,13 +125,13 @@ public class ControlLiquidTank extends Control implements ITooltip {
CraftGUI.Render.texture(horizontal ? CraftGUITexture.HorizontalLiquidTankOverlay : CraftGUITexture.LiquidTankOverlay, IPoint.ZERO);
if (isMouseOver() && Window.get(this).getGui().isHelpMode()) {
IArea area = getArea();
CraftGUI.Render.colour(MinecraftTooltip.getOutline(Tooltip.Type.HELP));
CraftGUI.Render.color(MinecraftTooltip.getOutline(Tooltip.Type.HELP));
CraftGUI.Render.texture(CraftGUITexture.Outline, area.outset(1));
}
if (ControlLiquidTank.tankError.contains(tankID)) {
IArea area = getArea();
CraftGUI.Render.colour(MinecraftTooltip.getOutline(MinecraftTooltip.Type.ERROR));
CraftGUI.Render.color(MinecraftTooltip.getOutline(MinecraftTooltip.Type.ERROR));
CraftGUI.Render.texture(CraftGUITexture.Outline, area.outset(1));
}
}
@@ -123,7 +123,7 @@ public class ControlSlot extends ControlSlotBase {
area = getParent().getArea();
area.setPosition(IPoint.ZERO.sub(getPosition()));
}
CraftGUI.Render.colour(c);
CraftGUI.Render.color(c);
CraftGUI.Render.texture(CraftGUITexture.Outline, area.outset(1));
}
}
@@ -30,7 +30,7 @@ public class Renderer {
public void preRender(IWidget widget) {
GL11.glPushMatrix();
GL11.glTranslatef(widget.getPosition().x(), widget.getPosition().y(), 0.0f);
colour(widget.getColor());
color(widget.getColor());
if (widget.isCroppedWidet()) {
IWidget cropRelative = (widget.getCropWidget() != null) ? widget.getCropWidget() : widget;
IPoint pos = cropRelative.getAbsolutePosition();
@@ -50,7 +50,7 @@ public class Renderer {
GL11.glPopMatrix();
}
public void colour(int hex) {
public void color(int hex) {
currentColour = hex;
int a = (hex & 0xFF000000) >> 24;
int r = (hex & 0xFF0000) >> 16;
@@ -78,7 +78,7 @@ public class Renderer {
if (texture != currentTexture && texture != null) {
BinnieCore.proxy.bindTexture(texture.getFilename());
}
colour(currentColour);
color(currentColour);
}
public void texture(Object texture, IPoint position) {
@@ -159,7 +159,7 @@ public class WindowCompartment extends WindowMachine implements IWindowAffectsSh
@Override
public void onRenderForeground() {
Texture iTexture = CraftGUI.Render.getTexture(CraftGUITexture.TabOutline);
CraftGUI.Render.colour(getTab(panels.get(this)).getColor().getColour());
CraftGUI.Render.color(getTab(panels.get(this)).getColor().getColour());
CraftGUI.Render.texture(iTexture, getArea().inset(3));
}
};
@@ -321,7 +321,7 @@ public class WindowCompartment extends WindowMachine implements IWindowAffectsSh
ControlScrollableContent<IWidget> scroll = new ControlScrollableContent<IWidget>(this, 124.0f, 16.0f, 116.0f, 92.0f, 6.0f) {
@Override
public void onRenderBackground() {
CraftGUI.Render.colour(11184810);
CraftGUI.Render.color(11184810);
CraftGUI.Render.texture(CraftGUITexture.Outline, getArea().inset(new IBorder(0.0f, 6.0f, 0.0f, 0.0f)));
}
};