117
117
.../ui/dialogs/SettingsMenuDialog.java | 28 +-
118
118
.../mindustry/ui/fragments/ChatFragment.java | 9 +-
119
119
.../ui/fragments/ConsoleFragment.java | 3 +
120
- .../mindustry/ui/fragments/HudFragment.java | 186 + +++++++++++-
120
+ .../mindustry/ui/fragments/HudFragment.java | 174 +++++++++++-
121
121
.../mindustry/ui/fragments/MenuFragment.java | 59 +++-
122
122
.../ui/fragments/PlacementFragment.java | 169 ++++++++++--
123
123
.../ui/fragments/PlayerListFragment.java | 72 ++---
124
124
core/src/mindustry/world/Block.java | 7 +-
125
- 29 files changed, 1560 insertions(+), 175 deletions(-)
125
+ 29 files changed, 1548 insertions(+), 175 deletions(-)
126
126
127
127
diff --git a/core/src/mindustry/ai/BlockIndexer.java b/core/src/mindustry/ai/BlockIndexer.java
128
128
index 7f944a3eb06180f9e2b760bbd5aa41709ddf6611..4972f424edd41b8a29d926a09bc55987066d33aa 100644
@@ -2459,7 +2459,7 @@ index e74e6a12e3da57eb58598eb4e679a7990c109def..013255ce5aa828d538814fa25dc64c6a
2459
2459
//special case for 'clear' command
2460
2460
if(message.equals("clear")){
2461
2461
diff --git a/core/src/mindustry/ui/fragments/HudFragment.java b/core/src/mindustry/ui/fragments/HudFragment.java
2462
- index ca1ef15de7fdf940eff0d1e1b1a9f36ebc78aafd..0fb8b07b1d30070ae7e3f924563ba066f01142d1 100644
2462
+ index ca1ef15de7fdf940eff0d1e1b1a9f36ebc78aafd..51c10a9342bd7a2610443c6b4b9885711aa4c15e 100644
2463
2463
--- a/core/src/mindustry/ui/fragments/HudFragment.java
2464
2464
+++ b/core/src/mindustry/ui/fragments/HudFragment.java
2465
2465
@@ -29,11 +29,13 @@ import mindustry.net.Packets.*;
@@ -2487,36 +2487,23 @@ index ca1ef15de7fdf940eff0d1e1b1a9f36ebc78aafd..0fb8b07b1d30070ae7e3f924563ba066
2487
2487
//wave info button with text
2488
2488
s.add(makeStatusTable()).grow().name("status");
2489
2489
2490
- @@ -323,6 +329,12 @@ public class HudFragment{
2491
- logic.skipWave();
2492
- }
2493
- }).growY().fillX().right().width(40f).disabled(b -> !canSkipWave()).name("skip").get().toBack();
2494
- + // Power bar display
2495
- + if (Core.settings.getBool("powerStatistic")){
2496
- + s.row();
2497
- + s.add(ArcPowerInfo.getBars()).growX().colspan(s.getColumns());
2498
- + }
2499
- +
2500
- }).width(dsize * 5 + 4f).name("statustable");
2501
-
2502
- wavesMain.row();
2503
- @@ -331,6 +343,7 @@ public class HudFragment{
2490
+ @@ -331,6 +337,7 @@ public class HudFragment{
2504
2491
2505
2492
editorMain.name = "editor";
2506
2493
editorMain.table(Tex.buttonEdge4, t -> {
2507
2494
+ t.visible(() -> UIExt.advanceToolTable != null && UIExt.advanceToolTable.parent.visible);
2508
2495
t.name = "teams";
2509
2496
t.top().table(teams -> {
2510
2497
teams.left();
2511
- @@ -346,6 +359 ,7 @@ public class HudFragment{
2498
+ @@ -346,6 +353 ,7 @@ public class HudFragment{
2512
2499
teams.row();
2513
2500
}
2514
2501
}
2515
2502
+ teams.button("更多", () -> UIExt.teamSelect.pickOne(team -> Call.setPlayerTeamEditor(player, team), player.team())).center().row();
2516
2503
}).top().left();
2517
2504
2518
2505
t.row();
2519
- @@ -417,6 +431 ,8 @@ public class HudFragment{
2506
+ @@ -417,6 +425 ,8 @@ public class HudFragment{
2520
2507
IntFormat mem = new IntFormat("memory");
2521
2508
IntFormat memnative = new IntFormat("memory2");
2522
2509
@@ -2525,7 +2512,7 @@ index ca1ef15de7fdf940eff0d1e1b1a9f36ebc78aafd..0fb8b07b1d30070ae7e3f924563ba066
2525
2512
info.label(() -> fps.get(Core.graphics.getFramesPerSecond())).left().style(Styles.outlineLabel).name("fps");
2526
2513
info.row();
2527
2514
info.label(() -> Strings.format("LG/DW/UI(ms) @/@/@", Time.nanosToMillis(DebugUtil.logicTime), Time.nanosToMillis(DebugUtil.rendererTime), Time.nanosToMillis(DebugUtil.uiTime)))
2528
- @@ -426,6 +442 ,11 @@ public class HudFragment{
2515
+ @@ -426,6 +436 ,11 @@ public class HudFragment{
2529
2516
DebugUtil.lastDrawRequests, DebugUtil.lastVertices, DebugUtil.lastSwitchTexture, DebugUtil.lastFlushCount)).left().style(Styles.outlineLabel).name("draw"), ()->DebugUtil.renderDebug);
2530
2517
info.row();
2531
2518
@@ -2537,7 +2524,7 @@ index ca1ef15de7fdf940eff0d1e1b1a9f36ebc78aafd..0fb8b07b1d30070ae7e3f924563ba066
2537
2524
if(android){
2538
2525
info.label(() -> memnative.get((int)(Core.app.getJavaHeap() / 1024 / 1024), (int)(Core.app.getNativeHeap() / 1024 / 1024))).left().style(Styles.outlineLabel).name("memory2");
2539
2526
}else{
2540
- @@ -1038,6 +1059,169 @@ public class HudFragment{
2527
+ @@ -1038,6 +1053,163 @@ public class HudFragment{
2541
2528
return table;
2542
2529
}
2543
2530
@@ -2585,12 +2572,6 @@ index ca1ef15de7fdf940eff0d1e1b1a9f36ebc78aafd..0fb8b07b1d30070ae7e3f924563ba066
2585
2572
+
2586
2573
+ table.table(this::buildArcStatus).growX().pad(4f);
2587
2574
+
2588
- + // Power bar display
2589
- + if (Core.settings.getBool("powerStatistic")){
2590
- + table.row();
2591
- + table.add(ArcPowerInfo.getBars()).growX().colspan(table.getColumns());
2592
- + }
2593
- +
2594
2575
+ return table;
2595
2576
+ }
2596
2577
+
@@ -2707,7 +2688,7 @@ index ca1ef15de7fdf940eff0d1e1b1a9f36ebc78aafd..0fb8b07b1d30070ae7e3f924563ba066
2707
2688
private void addInfoTable(Table table){
2708
2689
table.name = "infotable";
2709
2690
table.left();
2710
- @@ -1082,7 +1266 ,7 @@ public class HudFragment{
2691
+ @@ -1082,7 +1254 ,7 @@ public class HudFragment{
2711
2692
}
2712
2693
2713
2694
private boolean canSkipWave(){
0 commit comments