98
98
core/src/mindustry/input/DesktopInput.java | 98 +-
99
99
core/src/mindustry/input/InputHandler.java | 62 +-
100
100
core/src/mindustry/input/MobileInput.java | 17 +-
101
- core/src/mindustry/type/UnitType.java | 166 ++-
101
+ core/src/mindustry/type/UnitType.java | 162 ++-
102
102
core/src/mindustry/type/Weapon.java | 25 +-
103
103
core/src/mindustry/ui/Fonts.java | 2 +-
104
104
core/src/mindustry/ui/Minimap.java | 2 -
105
- .../ui/dialogs/ContentInfoDialog.java | 28 +-
105
+ .../ui/dialogs/ContentInfoDialog.java | 27 +-
106
106
.../ui/dialogs/CustomRulesDialog.java | 121 +-
107
107
.../mindustry/ui/dialogs/DatabaseDialog.java | 9 +-
108
108
.../mindustry/ui/dialogs/PausedDialog.java | 12 +-
114
114
.../mindustry/ui/fragments/HudFragment.java | 235 +++-
115
115
.../mindustry/ui/fragments/MenuFragment.java | 59 +-
116
116
.../ui/fragments/PlacementFragment.java | 212 +++-
117
- .../ui/fragments/PlayerListFragment.java | 203 ++-
117
+ .../ui/fragments/PlayerListFragment.java | 202 ++-
118
118
core/src/mindustry/world/Block.java | 18 +-
119
119
core/src/mindustry/world/Build.java | 50 +
120
120
.../world/blocks/ConstructBlock.java | 42 +-
142
142
.../mindustryX/features/ui/ArcPowerInfo.java | 70 ++
143
143
.../features/ui/ArcWaveInfoDialog.java | 1117 +++++++++++++++++
144
144
.../features/ui/BlockSelectDialog.java | 65 +
145
- 63 files changed, 5597 insertions(+), 264 deletions(-)
145
+ 63 files changed, 5594 insertions(+), 261 deletions(-)
146
146
create mode 100644 core/src/mindustryX/features/ArcBuilds.java
147
147
create mode 100644 core/src/mindustryX/features/ArcRadar.java
148
148
create mode 100644 core/src/mindustryX/features/ArcUnits.java
@@ -2027,11 +2027,7 @@ index 998caed117d2eeef7f74ad0527c2f01f76f60650..03d218ef76d25d776793493bf34400d0
2027
2027
}
2028
2028
2029
2029
/** @return whether this block supports a specific environment. */
2030
- @@ -1236,9 +1331,13 @@ public class UnitType extends UnlockableContent implements Senseable{
2031
-
2032
- boolean isPayload = !unit.isAdded();
2033
-
2034
- +
2030
+ @@ -1239,6 +1335,9 @@ public class UnitType extends UnlockableContent implements Senseable{
2035
2031
Mechc mech = unit instanceof Mechc ? (Mechc)unit : null;
2036
2032
float z = isPayload ? Draw.z() : unit.elevation > 0.5f ? (lowAltitude ? Layer.flyingUnitLow : Layer.flyingUnit) : groundLayer + Mathf.clamp(hitSize / 4000f, 0, 0.01f);
2037
2033
@@ -2100,22 +2096,7 @@ index 998caed117d2eeef7f74ad0527c2f01f76f60650..03d218ef76d25d776793493bf34400d0
2100
2096
}
2101
2097
2102
2098
Draw.reset();
2103
- @@ -1520,6 +1623,7 @@ public class UnitType extends UnlockableContent implements Senseable{
2104
- public void drawBody(Unit unit){
2105
- applyColor(unit);
2106
-
2107
- +
2108
- Draw.rect(region, unit.x, unit.y, unit.rotation - 90);
2109
-
2110
- Draw.reset();
2111
- @@ -1529,13 +1633,14 @@ public class UnitType extends UnlockableContent implements Senseable{
2112
- applyColor(unit);
2113
-
2114
- Draw.color(cellColor(unit));
2115
- +
2116
- Draw.rect(cellRegion, unit.x, unit.y, unit.rotation - 90);
2117
- Draw.reset();
2118
- }
2099
+ @@ -1535,7 +1640,7 @@ public class UnitType extends UnlockableContent implements Senseable{
2119
2100
2120
2101
public Color cellColor(Unit unit){
2121
2102
float f = Mathf.clamp(unit.healthf());
@@ -2142,7 +2123,7 @@ index 998caed117d2eeef7f74ad0527c2f01f76f60650..03d218ef76d25d776793493bf34400d0
2142
2123
Draw.rect(footRegion, leg.base.x + shadowTX * elev, leg.base.y + shadowTY * elev, position.angleTo(leg.base));
2143
2124
Draw.color();
2144
2125
}
2145
- @@ -1673,13 +1778,13 @@ public class UnitType extends UnlockableContent implements Senseable{
2126
+ @@ -1673,8 +1778,9 @@ public class UnitType extends UnlockableContent implements Senseable{
2146
2127
2147
2128
Floor floor = unit.isFlying() ? Blocks.air.asFloor() : unit.floorOn();
2148
2129
@@ -2153,11 +2134,6 @@ index 998caed117d2eeef7f74ad0527c2f01f76f60650..03d218ef76d25d776793493bf34400d0
2153
2134
}
2154
2135
2155
2136
for(int i : Mathf.signs){
2156
- Draw.mixcol(Tmp.c1.set(mechLegColor).lerp(Color.white, Mathf.clamp(unit.hitTime)), Math.max(Math.max(0, i * extension / mechStride), unit.hitTime));
2157
- -
2158
- Draw.rect(legRegion,
2159
- unit.x + Angles.trnsx(mech.baseRotation(), extension * i - boostTrns, -boostTrns*i),
2160
- unit.y + Angles.trnsy(mech.baseRotation(), extension * i - boostTrns, -boostTrns*i),
2161
2137
@@ -1696,6 +1801,8 @@ public class UnitType extends UnlockableContent implements Senseable{
2162
2138
Draw.color(Color.white);
2163
2139
}
@@ -2330,7 +2306,7 @@ index 8defe26a2482e54d24d9b12e4a9ae453e13348f3..ae63f36d28420a67d3a6c852374d4ddb
2330
2306
});
2331
2307
2332
2308
table.row();
2333
- @@ -89,16 +92,33 @@ public class ContentInfoDialog extends BaseDialog{
2309
+ @@ -89,12 +92,30 @@ public class ContentInfoDialog extends BaseDialog{
2334
2310
}
2335
2311
2336
2312
if(content.details != null){
@@ -2362,10 +2338,6 @@ index 8defe26a2482e54d24d9b12e4a9ae453e13348f3..ae63f36d28420a67d3a6c852374d4ddb
2362
2338
ScrollPane pane = new ScrollPane(table);
2363
2339
cont.add(pane);
2364
2340
2365
- show();
2366
- }
2367
- -
2368
- }
2369
2341
diff --git a/core/src/mindustry/ui/dialogs/CustomRulesDialog.java b/core/src/mindustry/ui/dialogs/CustomRulesDialog.java
2370
2342
index a277593dd3ca7ecab8e2b49410f1a7e3ef27c4b2..e88487d6754008cc415c47b054f83098b20c8adb 100644
2371
2343
--- a/core/src/mindustry/ui/dialogs/CustomRulesDialog.java
@@ -4651,12 +4623,6 @@ index 9286aab19502b5cf40556311572157b20c60fef4..0e9a2bdc81c3688fe5cd9928a9b0ad73
4651
4623
content.row();
4652
4624
}
4653
4625
4654
- @@ -275,5 +365,4 @@ public class PlayerListFragment{
4655
- search.clearText();
4656
- }
4657
- }
4658
- -
4659
- }
4660
4626
diff --git a/core/src/mindustry/world/Block.java b/core/src/mindustry/world/Block.java
4661
4627
index 01098e5f4564f3e1e7491d34cbbca1a525592c16..cb3874a23f5c4c612af25d78728032fc0a625695 100644
4662
4628
--- a/core/src/mindustry/world/Block.java
0 commit comments