15
15
core/src/mindustry/type/StatusEffect.java | 2 +
16
16
core/src/mindustry/type/UnitType.java | 40 ++-
17
17
core/src/mindustry/type/Weapon.java | 22 +-
18
- core/src/mindustry/ui/ItemImage.java | 22 + +
18
+ core/src/mindustry/ui/ItemImage.java | 13 +
19
19
core/src/mindustry/world/Block.java | 4 +-
20
20
.../world/blocks/defense/ForceProjector.java | 7 +-
21
21
.../world/blocks/defense/MendProjector.java | 6 +-
38
38
core/src/mindustry/world/meta/StatCat.java | 5 +-
39
39
core/src/mindustry/world/meta/StatValues.java | 254 ++++++++++++++----
40
40
core/src/mindustryX/features/StatExt.java | 96 +++++++
41
- 29 files changed, 503 insertions(+), 91 deletions(-)
41
+ 29 files changed, 494 insertions(+), 91 deletions(-)
42
42
create mode 100644 core/src/mindustryX/features/StatExt.java
43
43
44
44
diff --git a/core/assets/bundles/bundle-mdtx.properties b/core/assets/bundles/bundle-mdtx.properties
@@ -284,7 +284,7 @@ index d67a1ca03202019648a65863d0114c96fb21cd78..f9ec8feac6e944e76b5e2309da9b78e9
284
284
285
285
StatValues.ammo(ObjectMap.of(u, bullet)).display(t);
286
286
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
288
288
--- a/core/src/mindustry/ui/ItemImage.java
289
289
+++ b/core/src/mindustry/ui/ItemImage.java
290
290
@@ -1,11 +1,15 @@
@@ -303,21 +303,12 @@ index 874fa6ceff4c1ea412db02eb2adfb4e491771b19..6f20b9cd229a15a67d629e56762d86df
303
303
304
304
public class ItemImage extends Stack{
305
305
306
- @@ -25,6 +29,24 @@ public class ItemImage extends Stack{
306
+ @@ -25,6 +29,15 @@ public class ItemImage extends Stack{
307
307
}
308
308
}
309
309
310
310
+ 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);
321
312
+ add(new Table(t -> {
322
313
+ t.left().top();
323
314
+ t.label(() -> String.valueOf(curAmount.get())).get().setFontScale(0.6f);
0 commit comments