mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-19 19:59:49 +00:00
start 1.10.2
This commit is contained in:
1 parent
f969f63b66
commit
6a7c4bf67d
826 files changed
+60550
-63758
No files matched your search
@@ -1,48 +1,43 @@
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
|
||||
package binnie.craftgui.controls;
|
||||
|
||||
import binnie.craftgui.controls.core.Control;
|
||||
import binnie.craftgui.controls.core.IControlValue;
|
||||
import binnie.craftgui.core.CraftGUI;
|
||||
import binnie.craftgui.core.IWidget;
|
||||
import binnie.craftgui.core.geometry.IArea;
|
||||
import binnie.craftgui.core.geometry.IPoint;
|
||||
import binnie.craftgui.core.IWidget;
|
||||
import binnie.craftgui.core.geometry.TextJustification;
|
||||
import binnie.craftgui.controls.core.IControlValue;
|
||||
import binnie.craftgui.controls.core.Control;
|
||||
|
||||
public class ControlText extends Control implements IControlValue<String>
|
||||
{
|
||||
private String text;
|
||||
private TextJustification align;
|
||||
public class ControlText extends Control implements IControlValue<String> {
|
||||
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