This commit is contained in:
Mythril382
2024-05-28 00:31:00 +08:00
committed by GitHub
parent ff35e6a7d8
commit 0067af0e2c
2 changed files with 4 additions and 4 deletions

View File

@@ -2044,7 +2044,7 @@ public class LExecutor{
@Override
public void run(LExecutor exec){
Sound sound = Sounds.getSound(exec.numi(id));
if(sound == null || sound == Sounds.none || sound == Sounds.swish) sound = Sounds.pew; //no.
if(sound == null || sound == Sounds.swish) sound = Sounds.none; //no.
if(positional){
sound.at(World.unconv(exec.numf(x)), World.unconv(exec.numf(y)), exec.numf(pitch), exec.numf(volume));

View File

@@ -2109,17 +2109,17 @@ public class LStatements{
row(table);
table.add("play ");
table.add(" play ");
tfield = field(table, id, str -> id = str).padRight(0f).get();
table.button(b -> {
b.image(Icon.pencilSmall);
b.clicked(() -> showSelect(b, GlobalVars.soundNames.toArray(String.class), id, t -> {
b.clicked(() -> showSelect(b, GlobalVars.soundNames.toArray(String.class), id.substring(4), t -> {
sid("@sfx-" + t);
rebuild(table);
}, 4, cell -> cell.size(160, 50)));
}, 2, cell -> cell.size(160, 50)));
}, Styles.logict, () -> {}).size(40).color(table.color).left().padLeft(-1);
row(table);