Crash fixes
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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){
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 -> {
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user