changes
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user