metronome plugin: remove configurable sound ids until a better solution is found

This commit is contained in:
Adam
2018-01-27 20:17:35 -05:00
parent 07d57f0c72
commit 017f9b2919
2 changed files with 5 additions and 28 deletions

View File

@@ -27,14 +27,14 @@ package net.runelite.client.plugins.metronome;
import com.google.common.eventbus.Subscribe;
import com.google.inject.Provides;
import javax.inject.Inject;
import net.runelite.api.Client;
import net.runelite.api.SoundEffectID;
import net.runelite.api.events.GameTick;
import net.runelite.client.config.ConfigManager;
import net.runelite.client.plugins.Plugin;
import net.runelite.client.plugins.PluginDescriptor;
import javax.inject.Inject;
@PluginDescriptor(
name = "Metronome plugin"
)
@@ -67,11 +67,11 @@ public class MetronomePlugin extends Plugin
{
if (config.enableTock() && shouldTock)
{
client.playSoundEffect(config.tockSound());
client.playSoundEffect(SoundEffectID.GE_DECREMENT_PLOP);
}
else
{
client.playSoundEffect(config.tickSound());
client.playSoundEffect(SoundEffectID.GE_INCREMENT_PLOP);
}
shouldTock = !shouldTock;
}

View File

@@ -25,7 +25,6 @@
*/
package net.runelite.client.plugins.metronome;
import net.runelite.api.SoundEffectID;
import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem;
@@ -59,36 +58,14 @@ public interface MetronomePluginConfiguration extends Config
return 1;
}
@ConfigItem(
keyName = "tickSound",
name = "Tick sound ID",
description = "Configures which sound to play on the specified tick",
position = 3
)
default int tickSound()
{
return SoundEffectID.GE_INCREMENT_PLOP;
}
@ConfigItem(
keyName = "enableTock",
name = "Enable tock (alternating) sound",
description = "Toggles whether to play two alternating sounds",
position = 4
position = 3
)
default boolean enableTock()
{
return false;
}
@ConfigItem(
keyName = "tockSound",
name = "Tock sound ID",
description = "Configures which sound to alternate between",
position = 5
)
default int tockSound()
{
return SoundEffectID.GE_DECREMENT_PLOP;
}
}