forked from Anuken/Mindustry
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
16 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,10 +18,10 @@ way-zer <[email protected]> on 2024/7/14 | |
core/src/mindustry/logic/LCanvas.java | 52 +++- | ||
core/src/mindustry/logic/LExecutor.java | 19 +- | ||
core/src/mindustry/logic/LStatements.java | 12 + | ||
core/src/mindustry/logic/LogicDialog.java | 238 +++++++++++++++--- | ||
core/src/mindustry/logic/LogicDialog.java | 237 +++++++++++++++--- | ||
.../world/blocks/logic/LogicBlock.java | 49 +++- | ||
.../world/blocks/logic/MemoryBlock.java | 52 ++++ | ||
6 files changed, 369 insertions(+), 53 deletions(-) | ||
6 files changed, 369 insertions(+), 52 deletions(-) | ||
|
||
diff --git a/core/src/mindustry/logic/LCanvas.java b/core/src/mindustry/logic/LCanvas.java | ||
index 04871c02fbee810619980a87a36a5f60a9a5d43a..b4455067b25e4e626c01f28af8c8f50139830629 100644 | ||
|
@@ -520,14 +520,6 @@ index d36a66ee6b5f32938f8f8e6e4cec2e3bf3103a37..022087c76836fd725cba7f288c6d067a | |
canvas.statements.clearChildren(); | ||
canvas.rebuild(); | ||
canvas.privileged = privileged; | ||
@@ -266,7 +425,6 @@ public class LogicDialog extends BaseDialog{ | ||
modified.get(result); | ||
} | ||
}; | ||
- | ||
show(); | ||
} | ||
} | ||
diff --git a/core/src/mindustry/world/blocks/logic/LogicBlock.java b/core/src/mindustry/world/blocks/logic/LogicBlock.java | ||
index 261b6374360c2cbae88f44aa441f55706c181936..b34e84904c0dff843f0d962c3661f0ddc961762f 100644 | ||
--- a/core/src/mindustry/world/blocks/logic/LogicBlock.java | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,11 +98,11 @@ way-zer <[email protected]> on 2024/7/13 | |
core/src/mindustry/input/DesktopInput.java | 98 +- | ||
core/src/mindustry/input/InputHandler.java | 62 +- | ||
core/src/mindustry/input/MobileInput.java | 17 +- | ||
core/src/mindustry/type/UnitType.java | 166 ++- | ||
core/src/mindustry/type/UnitType.java | 162 ++- | ||
core/src/mindustry/type/Weapon.java | 25 +- | ||
core/src/mindustry/ui/Fonts.java | 2 +- | ||
core/src/mindustry/ui/Minimap.java | 2 - | ||
.../ui/dialogs/ContentInfoDialog.java | 28 +- | ||
.../ui/dialogs/ContentInfoDialog.java | 27 +- | ||
.../ui/dialogs/CustomRulesDialog.java | 121 +- | ||
.../mindustry/ui/dialogs/DatabaseDialog.java | 9 +- | ||
.../mindustry/ui/dialogs/PausedDialog.java | 12 +- | ||
|
@@ -114,7 +114,7 @@ way-zer <[email protected]> on 2024/7/13 | |
.../mindustry/ui/fragments/HudFragment.java | 235 +++- | ||
.../mindustry/ui/fragments/MenuFragment.java | 59 +- | ||
.../ui/fragments/PlacementFragment.java | 212 +++- | ||
.../ui/fragments/PlayerListFragment.java | 203 ++- | ||
.../ui/fragments/PlayerListFragment.java | 202 ++- | ||
core/src/mindustry/world/Block.java | 18 +- | ||
core/src/mindustry/world/Build.java | 50 + | ||
.../world/blocks/ConstructBlock.java | 42 +- | ||
|
@@ -142,7 +142,7 @@ way-zer <[email protected]> on 2024/7/13 | |
.../mindustryX/features/ui/ArcPowerInfo.java | 70 ++ | ||
.../features/ui/ArcWaveInfoDialog.java | 1117 +++++++++++++++++ | ||
.../features/ui/BlockSelectDialog.java | 65 + | ||
63 files changed, 5597 insertions(+), 264 deletions(-) | ||
63 files changed, 5594 insertions(+), 261 deletions(-) | ||
create mode 100644 core/src/mindustryX/features/ArcBuilds.java | ||
create mode 100644 core/src/mindustryX/features/ArcRadar.java | ||
create mode 100644 core/src/mindustryX/features/ArcUnits.java | ||
|
@@ -2027,11 +2027,7 @@ index 998caed117d2eeef7f74ad0527c2f01f76f60650..03d218ef76d25d776793493bf34400d0 | |
} | ||
|
||
/** @return whether this block supports a specific environment. */ | ||
@@ -1236,9 +1331,13 @@ public class UnitType extends UnlockableContent implements Senseable{ | ||
|
||
boolean isPayload = !unit.isAdded(); | ||
|
||
+ | ||
@@ -1239,6 +1335,9 @@ public class UnitType extends UnlockableContent implements Senseable{ | ||
Mechc mech = unit instanceof Mechc ? (Mechc)unit : null; | ||
float z = isPayload ? Draw.z() : unit.elevation > 0.5f ? (lowAltitude ? Layer.flyingUnitLow : Layer.flyingUnit) : groundLayer + Mathf.clamp(hitSize / 4000f, 0, 0.01f); | ||
|
||
|
@@ -2100,22 +2096,7 @@ index 998caed117d2eeef7f74ad0527c2f01f76f60650..03d218ef76d25d776793493bf34400d0 | |
} | ||
|
||
Draw.reset(); | ||
@@ -1520,6 +1623,7 @@ public class UnitType extends UnlockableContent implements Senseable{ | ||
public void drawBody(Unit unit){ | ||
applyColor(unit); | ||
|
||
+ | ||
Draw.rect(region, unit.x, unit.y, unit.rotation - 90); | ||
|
||
Draw.reset(); | ||
@@ -1529,13 +1633,14 @@ public class UnitType extends UnlockableContent implements Senseable{ | ||
applyColor(unit); | ||
|
||
Draw.color(cellColor(unit)); | ||
+ | ||
Draw.rect(cellRegion, unit.x, unit.y, unit.rotation - 90); | ||
Draw.reset(); | ||
} | ||
@@ -1535,7 +1640,7 @@ public class UnitType extends UnlockableContent implements Senseable{ | ||
|
||
public Color cellColor(Unit unit){ | ||
float f = Mathf.clamp(unit.healthf()); | ||
|
@@ -2142,7 +2123,7 @@ index 998caed117d2eeef7f74ad0527c2f01f76f60650..03d218ef76d25d776793493bf34400d0 | |
Draw.rect(footRegion, leg.base.x + shadowTX * elev, leg.base.y + shadowTY * elev, position.angleTo(leg.base)); | ||
Draw.color(); | ||
} | ||
@@ -1673,13 +1778,13 @@ public class UnitType extends UnlockableContent implements Senseable{ | ||
@@ -1673,8 +1778,9 @@ public class UnitType extends UnlockableContent implements Senseable{ | ||
|
||
Floor floor = unit.isFlying() ? Blocks.air.asFloor() : unit.floorOn(); | ||
|
||
|
@@ -2153,11 +2134,6 @@ index 998caed117d2eeef7f74ad0527c2f01f76f60650..03d218ef76d25d776793493bf34400d0 | |
} | ||
|
||
for(int i : Mathf.signs){ | ||
Draw.mixcol(Tmp.c1.set(mechLegColor).lerp(Color.white, Mathf.clamp(unit.hitTime)), Math.max(Math.max(0, i * extension / mechStride), unit.hitTime)); | ||
- | ||
Draw.rect(legRegion, | ||
unit.x + Angles.trnsx(mech.baseRotation(), extension * i - boostTrns, -boostTrns*i), | ||
unit.y + Angles.trnsy(mech.baseRotation(), extension * i - boostTrns, -boostTrns*i), | ||
@@ -1696,6 +1801,8 @@ public class UnitType extends UnlockableContent implements Senseable{ | ||
Draw.color(Color.white); | ||
} | ||
|
@@ -2330,7 +2306,7 @@ index 8defe26a2482e54d24d9b12e4a9ae453e13348f3..ae63f36d28420a67d3a6c852374d4ddb | |
}); | ||
|
||
table.row(); | ||
@@ -89,16 +92,33 @@ public class ContentInfoDialog extends BaseDialog{ | ||
@@ -89,12 +92,30 @@ public class ContentInfoDialog extends BaseDialog{ | ||
} | ||
|
||
if(content.details != null){ | ||
|
@@ -2362,10 +2338,6 @@ index 8defe26a2482e54d24d9b12e4a9ae453e13348f3..ae63f36d28420a67d3a6c852374d4ddb | |
ScrollPane pane = new ScrollPane(table); | ||
cont.add(pane); | ||
|
||
show(); | ||
} | ||
- | ||
} | ||
diff --git a/core/src/mindustry/ui/dialogs/CustomRulesDialog.java b/core/src/mindustry/ui/dialogs/CustomRulesDialog.java | ||
index a277593dd3ca7ecab8e2b49410f1a7e3ef27c4b2..e88487d6754008cc415c47b054f83098b20c8adb 100644 | ||
--- a/core/src/mindustry/ui/dialogs/CustomRulesDialog.java | ||
|
@@ -4651,12 +4623,6 @@ index 9286aab19502b5cf40556311572157b20c60fef4..0e9a2bdc81c3688fe5cd9928a9b0ad73 | |
content.row(); | ||
} | ||
|
||
@@ -275,5 +365,4 @@ public class PlayerListFragment{ | ||
search.clearText(); | ||
} | ||
} | ||
- | ||
} | ||
diff --git a/core/src/mindustry/world/Block.java b/core/src/mindustry/world/Block.java | ||
index 01098e5f4564f3e1e7491d34cbbca1a525592c16..cb3874a23f5c4c612af25d78728032fc0a625695 100644 | ||
--- a/core/src/mindustry/world/Block.java | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
git tag -f base | ||
git am --no-gpg-sign ../patches/picked/* | ||
git am --no-gpg-sign -3 ../patches/picked/* | ||
git tag -f picked | ||
git am --no-gpg-sign ../patches/client/* | ||
git am --no-gpg-sign -3 ../patches/client/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
(cd ..&&rm -rf patches/*) | ||
git format-patch --full-index --no-signature --zero-commit -N -D -o ../patches/picked base...picked | ||
git format-patch --full-index --no-signature --zero-commit -N -D -o ../patches/client picked | ||
rm -rf ../patches/picked/* | ||
git format-patch --full-index --no-signature --zero-commit -N -D --ignore-blank-lines -o ../patches/picked base...picked | ||
rm -rf ../patches/client/* | ||
git format-patch --full-index --no-signature --zero-commit -N -D --ignore-blank-lines -o ../patches/client picked | ||
(cd .. && git add patches) |