Play Sound Options for Ranged Attacks

This commit is contained in:
Kam committed 2025-03-19 18:07:21 -04:00
1 parent 353d90a00a
commit bcf329c0ae
5 files changed
+20 -1

No files matched your search

@@ -61,6 +61,9 @@ public class SubGuiNpcRangeProperties extends SubGuiInterface implements ITextfi
addLabel(new GuiNpcLabel(7, "stats.firesound:", guiLeft + 5, y + 5));
addButton(new GuiNpcButton(7, guiLeft + 187, y, 60, 20, "gui.select"));
addButton(new GuiNpcButton(10, guiLeft + 100, y += 22, 70, 20, new String[]{"stats.onShot", "stats.onStart"}, stats.onSoundBegin ? 1 : 0));
addLabel(new GuiNpcLabel(10, "stats.firesound:", guiLeft + 5, y + 5));
addButton(new GuiNpcButton(9, guiLeft + 100, y += 22, 70, 20, new String[]{"gui.no", "gui.yes", "stats.onShot"}, stats.aimType));
addLabel(new GuiNpcLabel(9, "stats.aimWhileShooting", guiLeft + 5, y + 5));
@@ -104,6 +107,9 @@ public class SubGuiNpcRangeProperties extends SubGuiInterface implements ITextfi
soundSelected = getTextField(7);
setSubGui(new GuiSoundSelection(soundSelected.getText()));
}
if(id == 10){
stats.onSoundBegin = ((GuiNpcButton) guibutton).getValue() == 1;
}
if (id == 66) {
close();
} else if (id == 9) {