Crash fixes

This commit is contained in:
Anuken
2018-11-28 18:43:35 -05:00
parent 75d2ea1519
commit f3d35e9537
5 changed files with 4 additions and 7 deletions

View File

@@ -4,11 +4,9 @@ import com.badlogic.gdx.utils.Scaling;
import io.anuke.mindustry.maps.Map;
import io.anuke.mindustry.ui.BorderImage;
import io.anuke.mindustry.ui.dialogs.FloatingDialog;
import io.anuke.ucore.core.Core;
import io.anuke.ucore.function.Consumer;
import io.anuke.ucore.scene.ui.ButtonGroup;
import io.anuke.ucore.scene.ui.ScrollPane;
import io.anuke.ucore.scene.ui.ScrollPane.ScrollPaneStyle;
import io.anuke.ucore.scene.ui.TextButton;
import io.anuke.ucore.scene.ui.layout.Table;
@@ -69,7 +67,6 @@ public class MapLoadDialog extends FloatingDialog{
}
if(world.maps.all().size == 0){
pane.setStyle(Core.skin.get("clear", ScrollPaneStyle.class));
table.add("$text.maps.none").center();
}else{
content().add("$text.editor.loadmap");

View File

@@ -108,7 +108,7 @@ public class AboutDialog extends FloatingDialog{
dialog.content().row();
dialog.content().add("$text.contributors");
dialog.content().row();
dialog.content().pane("clear", new Table(){{
dialog.content().pane(new Table(){{
int i = 0;
left();
for(Contributor c : contributors){

View File

@@ -116,7 +116,7 @@ public class MapsDialog extends FloatingDialog{
table.stack(new Image(map.texture).setScaling(Scaling.fit), new BorderImage(map.texture).setScaling(Scaling.fit)).size(mapsize);
table.table("clear", desc -> {
table.table("flat", desc -> {
desc.top();
Table t = new Table();
t.margin(6);

View File

@@ -150,7 +150,7 @@ public class HudFragment extends Fragment{
//paused table
parent.fill(t -> {
t.top().visible(() -> state.is(State.paused) && !Net.active());
t.table("clear", top -> top.add("$text.paused").pad(6).get().setFontScale(1.5f));
t.table("button", top -> top.add("$text.paused").pad(6f));
});
parent.fill(t -> {

View File

@@ -33,7 +33,7 @@ public abstract class Consume{
}
public void build(Table table){
Table t = new Table("clear");
Table t = new Table("flat");
t.margin(4);
buildTooltip(t);