LICENSE -> UNLICENSE
This commit is contained in:
parent
80cf16ada5
commit
2b937219ac
3 changed files with 15 additions and 3 deletions
|
@ -3,7 +3,7 @@ package game.gui;
|
|||
import game.gui.element.ActButton;
|
||||
import game.gui.element.ActButton.Mode;
|
||||
import game.gui.element.Label;
|
||||
import game.gui.element.Textbox;
|
||||
import game.gui.element.TransparentBox;
|
||||
|
||||
public class GuiConfirm extends Gui implements ActButton.Callback {
|
||||
public static interface Callback {
|
||||
|
@ -28,7 +28,7 @@ public class GuiConfirm extends Gui implements ActButton.Callback {
|
|||
|
||||
public void init(int width, int height) {
|
||||
this.add(new Label(0, 0, 500, 24, this.messageLine1, true));
|
||||
this.add(new Textbox(0, 80, 500, 300, this.messageLine2));
|
||||
this.add(new TransparentBox(0, 80, 500, 300, this.messageLine2));
|
||||
this.confirmBtn = this.add(new ActButton(48, 500, 200, 24, (ActButton.Callback)this, this.confirmButtonText));
|
||||
this.cancelBtn = this.add(new ActButton(252, 500, 200, 24, (ActButton.Callback)this, this.cancelButtonText));
|
||||
this.shift();
|
||||
|
|
|
@ -237,7 +237,9 @@ public class GuiCreate extends Gui implements ActButton.Callback, Textbox.Callba
|
|||
"Vorlage" : (dim.getType() == DimType.PLANET ? "Heimplanet" : "Dimension")) + ": ")) +
|
||||
(dim.getDimensionId() >= UniverseRegistry.MORE_DIM_ID ? dim.getCustomName() :
|
||||
dim.getFormattedName(false)));
|
||||
this.descLines.setText(Util.buildLines(dim.getFormattedName(true).split(" / ")));
|
||||
String name = dim.getFormattedName(true);
|
||||
int index = name.indexOf(" / ");
|
||||
this.descLines.setText(index >= 0 ? Util.buildLines(name.substring(index + " / ".length()).split(" / ")) : "");
|
||||
}
|
||||
|
||||
public void use(ActButton button, Mode mode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue