Renamed Table pad methods
This commit is contained in:
@@ -88,7 +88,7 @@ public class JoinDialog extends FloatingDialog {
|
||||
if(array.size == 0){
|
||||
hosts.add("$text.hosts.none").pad(10f);
|
||||
hosts.add().growX();
|
||||
hosts.addIButton("icon-loading", 16*2f, this::refresh).pad(-10f).padLeft(0).padTop(-6).size(70f, 74f);
|
||||
hosts.addImageButton("icon-loading", 16*2f, this::refresh).pad(-10f).padLeft(0).padTop(-6).size(70f, 74f);
|
||||
}else {
|
||||
for (Address a : array) {
|
||||
TextButton button = hosts.addButton("[accent]"+a.name, "clear", () -> {
|
||||
|
||||
@@ -6,12 +6,8 @@ import io.anuke.mindustry.core.GameState;
|
||||
import io.anuke.mindustry.core.GameState.State;
|
||||
import io.anuke.mindustry.io.SaveIO;
|
||||
import io.anuke.mindustry.io.Saves.SaveSlot;
|
||||
import io.anuke.ucore.UCore;
|
||||
import io.anuke.ucore.core.Core;
|
||||
import io.anuke.ucore.core.Timers;
|
||||
import io.anuke.ucore.scene.builders.button;
|
||||
import io.anuke.ucore.scene.builders.dialog;
|
||||
import io.anuke.ucore.scene.ui.Dialog;
|
||||
import io.anuke.ucore.scene.ui.ScrollPane;
|
||||
import io.anuke.ucore.scene.ui.TextButton;
|
||||
import io.anuke.ucore.scene.ui.layout.Table;
|
||||
@@ -66,18 +62,18 @@ public class LoadDialog extends FloatingDialog{
|
||||
button.table(t -> {
|
||||
t.right();
|
||||
|
||||
t.addIButton("icon-floppy", "emptytoggle", 14*3, () -> {
|
||||
t.addImageButton("icon-floppy", "emptytoggle", 14*3, () -> {
|
||||
slot.setAutosave(!slot.isAutosave());
|
||||
}).checked(slot.isAutosave()).right();
|
||||
|
||||
t.addIButton("icon-trash", "empty", 14*3, () -> {
|
||||
t.addImageButton("icon-trash", "empty", 14*3, () -> {
|
||||
Vars.ui.showConfirm("$text.confirm", "$text.save.delete.confirm", () -> {
|
||||
slot.delete();
|
||||
setup();
|
||||
});
|
||||
}).size(14*3).right();
|
||||
|
||||
t.addIButton("icon-dots", "empty", 14*3, () -> {
|
||||
t.addImageButton("icon-dots", "empty", 14*3, () -> {
|
||||
FloatingDialog dialog = new FloatingDialog("Save Options");
|
||||
dialog.addCloseButton();
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ public class PlayerListFragment implements Fragment{
|
||||
|
||||
if(Net.server() && !player.isLocal){
|
||||
button.add().growY();
|
||||
button.addIButton("icon-cancel", 14*3, () ->
|
||||
button.addImageButton("icon-cancel", 14*3, () ->
|
||||
Net.kickConnection(player.clientid)
|
||||
).pad(-5).padBottom(-10).size(h+10, h+14);
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ public class ToolFragment implements Fragment{
|
||||
|
||||
tools = new Table();
|
||||
|
||||
tools.addIButton("icon-cancel", isize, () -> {
|
||||
tools.addImageButton("icon-cancel", isize, () -> {
|
||||
if(input.placeMode == PlaceMode.areaDelete && confirming){
|
||||
confirming = false;
|
||||
}else{
|
||||
@@ -34,12 +34,12 @@ public class ToolFragment implements Fragment{
|
||||
}
|
||||
});
|
||||
|
||||
tools.addIButton("icon-rotate", isize, () -> {
|
||||
tools.addImageButton("icon-rotate", isize, () -> {
|
||||
input.rotation++;
|
||||
input.rotation %= 4;
|
||||
});
|
||||
|
||||
tools.addIButton("icon-check", isize, () -> {
|
||||
tools.addImageButton("icon-check", isize, () -> {
|
||||
if(input.placeMode == PlaceMode.areaDelete && confirming){
|
||||
input.placeMode.released(px, py, px2, py2);
|
||||
confirming = false;
|
||||
|
||||
@@ -67,7 +67,7 @@ public class WeaponFragment implements Fragment{
|
||||
|
||||
}
|
||||
|
||||
weapontable.addIButton("icon-menu", 8*4, ()->{
|
||||
weapontable.addImageButton("icon-menu", 8*4, ()->{
|
||||
ui.showUpgrades();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user