Some cosmetic fixes for the last commit
Damn tabs!
This commit is contained in:
parent
0d392a1b6e
commit
dd6fc63de8
3 changed files with 52 additions and 66 deletions
|
@ -1,11 +1,3 @@
|
||||||
/*
|
|
||||||
* Copyright (c) CovertJaguar, 2011 http://railcraft.info
|
|
||||||
*
|
|
||||||
* This code is the property of CovertJaguar
|
|
||||||
* and may only be used with explicit written
|
|
||||||
* permission unless otherwise specified on the
|
|
||||||
* license page at railcraft.wikispaces.com.
|
|
||||||
*/
|
|
||||||
package buildcraft.core.gui.buttons;
|
package buildcraft.core.gui.buttons;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,12 +6,11 @@ package buildcraft.core.gui.buttons;
|
||||||
*/
|
*/
|
||||||
public interface IButtonTextureSet {
|
public interface IButtonTextureSet {
|
||||||
|
|
||||||
public int getX();
|
public int getX();
|
||||||
|
|
||||||
public int getY();
|
public int getY();
|
||||||
|
|
||||||
public int getHeight();
|
public int getHeight();
|
||||||
|
|
||||||
public int getWidth();
|
|
||||||
|
|
||||||
|
public int getWidth();
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,37 +4,36 @@ package buildcraft.core.gui.buttons;
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.railcraft.info/>
|
* @author CovertJaguar <http://www.railcraft.info/>
|
||||||
*/
|
*/
|
||||||
public enum StandardButtonTextureSets implements IButtonTextureSet{
|
public enum StandardButtonTextureSets implements IButtonTextureSet {
|
||||||
|
|
||||||
LARGE_BUTTON(0, 0, 20, 200),
|
LARGE_BUTTON(0, 0, 20, 200),
|
||||||
SMALL_BUTTON(0, 80, 15, 200);
|
SMALL_BUTTON(0, 80, 15, 200);
|
||||||
private final int x, y, height, width;
|
private final int x, y, height, width;
|
||||||
|
|
||||||
private StandardButtonTextureSets(int x, int y, int height, int width) {
|
private StandardButtonTextureSets(int x, int y, int height, int width) {
|
||||||
this.x = x;
|
this.x = x;
|
||||||
this.y = y;
|
this.y = y;
|
||||||
this.height = height;
|
this.height = height;
|
||||||
this.width = width;
|
this.width = width;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getX() {
|
public int getX() {
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getY() {
|
public int getY() {
|
||||||
return y;
|
return y;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getHeight() {
|
public int getHeight() {
|
||||||
return height;
|
return height;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public int getWidth() {
|
|
||||||
return width;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getWidth() {
|
||||||
|
return width;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,34 +4,30 @@ package buildcraft.core.gui.tooltips;
|
||||||
*
|
*
|
||||||
* @author CovertJaguar <http://www.railcraft.info>
|
* @author CovertJaguar <http://www.railcraft.info>
|
||||||
*/
|
*/
|
||||||
public class ToolTipLine
|
public class ToolTipLine {
|
||||||
{
|
|
||||||
|
|
||||||
public String text;
|
public String text;
|
||||||
public final int color;
|
public final int color;
|
||||||
public int spacing;
|
public int spacing;
|
||||||
|
|
||||||
public ToolTipLine(String text, int color)
|
public ToolTipLine(String text, int color) {
|
||||||
{
|
this.text = text;
|
||||||
this.text = text;
|
this.color = color;
|
||||||
this.color = color;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public ToolTipLine(String text)
|
public ToolTipLine(String text) {
|
||||||
{
|
this(text, -1);
|
||||||
this(text, -1);
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public ToolTipLine()
|
public ToolTipLine() {
|
||||||
{
|
this("", -1);
|
||||||
this("", -1);
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public void setSpacing(int spacing){
|
public void setSpacing(int spacing) {
|
||||||
this.spacing = spacing;
|
this.spacing = spacing;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getSpacing(){
|
public int getSpacing() {
|
||||||
return spacing;
|
return spacing;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue