Code cleanup
This commit is contained in:
@@ -16,7 +16,6 @@ import arc.graphics.g2d.*;
|
||||
import arc.graphics.g2d.Font.*;
|
||||
import arc.graphics.g2d.PixmapPacker.*;
|
||||
import arc.graphics.g2d.TextureAtlas.*;
|
||||
import arc.math.*;
|
||||
import arc.math.geom.*;
|
||||
import arc.scene.style.*;
|
||||
import arc.scene.ui.layout.*;
|
||||
|
||||
@@ -299,7 +299,7 @@ public class JoinDialog extends BaseDialog{
|
||||
pad = 6;
|
||||
}
|
||||
|
||||
Cell cell = ((Table)pane.parent).getCell(button);
|
||||
var cell = ((Table)pane.parent).getCell(button);
|
||||
|
||||
if(!Mathf.equal(cell.minWidth(), pw)){
|
||||
cell.width(pw);
|
||||
|
||||
@@ -8,7 +8,6 @@ import arc.input.*;
|
||||
import arc.scene.*;
|
||||
import arc.scene.event.*;
|
||||
import arc.scene.ui.*;
|
||||
import arc.scene.ui.SettingsDialog.SettingsTable.*;
|
||||
import arc.scene.ui.TextButton.*;
|
||||
import arc.scene.ui.layout.*;
|
||||
import arc.struct.*;
|
||||
|
||||
@@ -252,11 +252,10 @@ public class HudFragment extends Fragment{
|
||||
|
||||
if(android){
|
||||
info.label(() -> memnative.get((int)(Core.app.getJavaHeap() / 1024 / 1024), (int)(Core.app.getNativeHeap() / 1024 / 1024))).left().style(Styles.outlineLabel).name("memory2");
|
||||
info.row();
|
||||
}else{
|
||||
info.label(() -> mem.get((int)(Core.app.getJavaHeap() / 1024 / 1024))).left().style(Styles.outlineLabel).name("memory");
|
||||
info.row();
|
||||
}
|
||||
info.row();
|
||||
|
||||
info.label(() -> ping.get(netClient.getPing())).visible(net::client).left().style(Styles.outlineLabel).name("ping");
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@ public class PlayerListFragment extends Fragment{
|
||||
private boolean visible = false;
|
||||
private Interval timer = new Interval();
|
||||
private TextField sField;
|
||||
private boolean found = false;
|
||||
private Seq<Player> players = new Seq<>();
|
||||
|
||||
@Override
|
||||
@@ -78,7 +77,7 @@ public class PlayerListFragment extends Fragment{
|
||||
content.clear();
|
||||
|
||||
float h = 74f;
|
||||
found = false;
|
||||
boolean found = false;
|
||||
|
||||
players.clear();
|
||||
Groups.player.copy(players);
|
||||
|
||||
Reference in New Issue
Block a user