Skip to content

Commit f8bb98d

Browse files
committed
sync 2024/8/4
1 parent cc3de7f commit f8bb98d

23 files changed

+1266
-592
lines changed

patches/client/0023-C-StatExt.patch

+5-14
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ way-zer <[email protected]> on 2024/5/4 at 22:17
1515
core/src/mindustry/type/StatusEffect.java | 2 +
1616
core/src/mindustry/type/UnitType.java | 40 ++-
1717
core/src/mindustry/type/Weapon.java | 22 +-
18-
core/src/mindustry/ui/ItemImage.java | 22 ++
18+
core/src/mindustry/ui/ItemImage.java | 13 +
1919
core/src/mindustry/world/Block.java | 4 +-
2020
.../world/blocks/defense/ForceProjector.java | 7 +-
2121
.../world/blocks/defense/MendProjector.java | 6 +-
@@ -38,7 +38,7 @@ way-zer <[email protected]> on 2024/5/4 at 22:17
3838
core/src/mindustry/world/meta/StatCat.java | 5 +-
3939
core/src/mindustry/world/meta/StatValues.java | 254 ++++++++++++++----
4040
core/src/mindustryX/features/StatExt.java | 96 +++++++
41-
29 files changed, 503 insertions(+), 91 deletions(-)
41+
29 files changed, 494 insertions(+), 91 deletions(-)
4242
create mode 100644 core/src/mindustryX/features/StatExt.java
4343

4444
diff --git a/core/assets/bundles/bundle-mdtx.properties b/core/assets/bundles/bundle-mdtx.properties
@@ -284,7 +284,7 @@ index d67a1ca03202019648a65863d0114c96fb21cd78..f9ec8feac6e944e76b5e2309da9b78e9
284284

285285
StatValues.ammo(ObjectMap.of(u, bullet)).display(t);
286286
diff --git a/core/src/mindustry/ui/ItemImage.java b/core/src/mindustry/ui/ItemImage.java
287-
index 874fa6ceff4c1ea412db02eb2adfb4e491771b19..6f20b9cd229a15a67d629e56762d86df3ec97012 100644
287+
index 874fa6ceff4c1ea412db02eb2adfb4e491771b19..728b0d8423dfc2e09f5a8d4ca74fca047dccf368 100644
288288
--- a/core/src/mindustry/ui/ItemImage.java
289289
+++ b/core/src/mindustry/ui/ItemImage.java
290290
@@ -1,11 +1,15 @@
@@ -303,21 +303,12 @@ index 874fa6ceff4c1ea412db02eb2adfb4e491771b19..6f20b9cd229a15a67d629e56762d86df
303303

304304
public class ItemImage extends Stack{
305305

306-
@@ -25,6 +29,24 @@ public class ItemImage extends Stack{
306+
@@ -25,6 +29,15 @@ public class ItemImage extends Stack{
307307
}
308308
}
309309

310310
+ public ItemImage(TextureRegion region, int reqAmount, Intp curAmount){
311-
+ add(new Table(o -> {
312-
+ o.left();
313-
+ o.add(new Image(region)).size(32f).scaling(Scaling.fit);
314-
+ }));
315-
+
316-
+ add(new Table(t -> {
317-
+ t.left().bottom();
318-
+ t.add(String.valueOf(reqAmount)).get().setFontScale(1f);
319-
+ t.pack();
320-
+ }));
311+
+ this(region, reqAmount);
321312
+ add(new Table(t -> {
322313
+ t.left().top();
323314
+ t.label(() -> String.valueOf(curAmount.get())).get().setFontScale(0.6f);

0 commit comments

Comments
 (0)