changes
This commit is contained in:
@@ -2044,7 +2044,7 @@ public class LExecutor{
|
|||||||
@Override
|
@Override
|
||||||
public void run(LExecutor exec){
|
public void run(LExecutor exec){
|
||||||
Sound sound = Sounds.getSound(exec.numi(id));
|
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){
|
if(positional){
|
||||||
sound.at(World.unconv(exec.numf(x)), World.unconv(exec.numf(y)), exec.numf(pitch), exec.numf(volume));
|
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);
|
row(table);
|
||||||
|
|
||||||
table.add("play ");
|
table.add(" play ");
|
||||||
|
|
||||||
tfield = field(table, id, str -> id = str).padRight(0f).get();
|
tfield = field(table, id, str -> id = str).padRight(0f).get();
|
||||||
|
|
||||||
table.button(b -> {
|
table.button(b -> {
|
||||||
b.image(Icon.pencilSmall);
|
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);
|
sid("@sfx-" + t);
|
||||||
rebuild(table);
|
rebuild(table);
|
||||||
}, 4, cell -> cell.size(160, 50)));
|
}, 2, cell -> cell.size(160, 50)));
|
||||||
}, Styles.logict, () -> {}).size(40).color(table.color).left().padLeft(-1);
|
}, Styles.logict, () -> {}).size(40).color(table.color).left().padLeft(-1);
|
||||||
|
|
||||||
row(table);
|
row(table);
|
||||||
|
|||||||
Reference in New Issue
Block a user