mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-19 19:59:49 +00:00
Auto-format spaces to tabs (#2)
This commit is contained in:
1 parent
25be7fd254
commit
5bb4b5d9a5
756 files changed
+49198
-48489
No files matched your search
@@ -9,35 +9,35 @@ import binnie.craftgui.core.geometry.IPoint;
|
||||
import binnie.craftgui.core.geometry.TextJustification;
|
||||
|
||||
public class ControlText extends Control implements IControlValue<String> {
|
||||
private String text;
|
||||
private TextJustification align;
|
||||
private String text;
|
||||
private TextJustification align;
|
||||
|
||||
public ControlText(final IWidget parent, final IPoint pos, final String text) {
|
||||
this(parent, new IArea(pos, new IPoint(500.0f, 0.0f)), text, TextJustification.TopLeft);
|
||||
}
|
||||
public ControlText(final IWidget parent, final IPoint pos, final String text) {
|
||||
this(parent, new IArea(pos, new IPoint(500.0f, 0.0f)), text, TextJustification.TopLeft);
|
||||
}
|
||||
|
||||
public ControlText(final IWidget parent, final String text, final TextJustification align) {
|
||||
this(parent, parent.getArea(), text, align);
|
||||
}
|
||||
public ControlText(final IWidget parent, final String text, final TextJustification align) {
|
||||
this(parent, parent.getArea(), text, align);
|
||||
}
|
||||
|
||||
public ControlText(final IWidget parent, final IArea area, final String text, final TextJustification align) {
|
||||
super(parent, area.pos().x(), area.pos().y(), area.size().x(), area.size().y());
|
||||
this.setValue(text);
|
||||
this.align = align;
|
||||
}
|
||||
public ControlText(final IWidget parent, final IArea area, final String text, final TextJustification align) {
|
||||
super(parent, area.pos().x(), area.pos().y(), area.size().x(), area.size().y());
|
||||
this.setValue(text);
|
||||
this.align = align;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onRenderBackground() {
|
||||
CraftGUI.Render.text(this.getArea(), this.align, this.text, this.getColour());
|
||||
}
|
||||
@Override
|
||||
public void onRenderBackground() {
|
||||
CraftGUI.Render.text(this.getArea(), this.align, this.text, this.getColour());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setValue(final String text) {
|
||||
this.text = text;
|
||||
}
|
||||
@Override
|
||||
public void setValue(final String text) {
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getValue() {
|
||||
return this.text;
|
||||
}
|
||||
@Override
|
||||
public String getValue() {
|
||||
return this.text;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user