Skip to content

Commit bfb64a6

Browse files
committed
Update for 2.15.5-beta.dev.20260508.1
1 parent eb88bb3 commit bfb64a6

3 files changed

Lines changed: 16 additions & 7 deletions

File tree

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"watch": "npx tsc --build --watch --pretty --preserveWatchOutput"
1111
},
1212
"devDependencies": {
13-
"@wayward/types": "^2.15.5-beta.dev.20260505.1",
13+
"@wayward/types": "^2.15.5-beta.dev.20260508.1",
1414
"typescript": "^6.0.0-beta"
1515
}
1616
}

src/ui/panel/GeneralPanel.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { TextContext } from "@wayward/game/language/ITranslation";
1111
import Translation from "@wayward/game/language/Translation";
1212
import TranslationImpl from "@wayward/game/language/impl/TranslationImpl";
1313
import Mod from "@wayward/game/mod/Mod";
14-
import { ParticleType } from "@wayward/game/renderer/particle/IParticle";
14+
import { ParticlePhysics, ParticleType } from "@wayward/game/renderer/particle/IParticle";
1515
import particles from "@wayward/game/renderer/particle/Particles";
1616
import { BlockRow } from "@wayward/game/ui/component/BlockRow";
1717
import Button from "@wayward/game/ui/component/Button";
@@ -57,6 +57,7 @@ export default class GeneralPanel extends DebugToolsPanel {
5757
private readonly checkButtonAudio: CheckButton;
5858
private readonly dropdownAudio: Dropdown<SfxType>;
5959
private readonly dropdownParticle: Dropdown<ParticleType>;
60+
private readonly dropdownParticlePhysics: Dropdown<ParticlePhysics>;
6061
private readonly dropdownLayer: Dropdown<WorldZ>;
6162
private readonly dropdownTravel: IslandDropdown<string>;
6263
private readonly checkButtonParticle: CheckButton;
@@ -211,7 +212,7 @@ export default class GeneralPanel extends DebugToolsPanel {
211212
this.inspectButton.setChecked(false, false);
212213
this.checkButtonAudio.setChecked(false, false);
213214

214-
return this.selectionLogic(checked, tile => tile?.createParticles(particles[this.dropdownParticle.selectedOption]), () => this.checkButtonParticle.checked);
215+
return this.selectionLogic(checked, tile => tile?.createParticles(particles[this.dropdownParticle.selectedOption], this.dropdownParticlePhysics.selectedOption), () => this.checkButtonParticle.checked);
215216
}))
216217
.append(this.dropdownParticle = new Dropdown<ParticleType>()
217218
.setRefreshMethod(() => ({
@@ -221,6 +222,14 @@ export default class GeneralPanel extends DebugToolsPanel {
221222
.sort(([, t1], [, t2]) => Text.toString(t1).localeCompare(Text.toString(t2)))
222223
.map(([id, t]) => Tuple(id, (option: Button) => option.setText(t))),
223224
})))
225+
.append(this.dropdownParticlePhysics = new Dropdown<ParticlePhysics>()
226+
.setRefreshMethod(() => ({
227+
defaultOption: ParticlePhysics.Fall,
228+
options: Enums.values(ParticlePhysics)
229+
.map(physics => Tuple(physics, TranslationImpl.generator(ParticlePhysics[physics])))
230+
.sort(([, t1], [, t2]) => Text.toString(t1).localeCompare(Text.toString(t2)))
231+
.map(([id, t]) => Tuple(id, (option: Button) => option.setText(t))),
232+
})))
224233
.appendTo(this);
225234
}
226235

0 commit comments

Comments
 (0)