metronome plugin: remove configurable sound ids until a better solution is found
This commit is contained in:
@@ -27,14 +27,14 @@ package net.runelite.client.plugins.metronome;
|
|||||||
|
|
||||||
import com.google.common.eventbus.Subscribe;
|
import com.google.common.eventbus.Subscribe;
|
||||||
import com.google.inject.Provides;
|
import com.google.inject.Provides;
|
||||||
|
import javax.inject.Inject;
|
||||||
import net.runelite.api.Client;
|
import net.runelite.api.Client;
|
||||||
|
import net.runelite.api.SoundEffectID;
|
||||||
import net.runelite.api.events.GameTick;
|
import net.runelite.api.events.GameTick;
|
||||||
import net.runelite.client.config.ConfigManager;
|
import net.runelite.client.config.ConfigManager;
|
||||||
import net.runelite.client.plugins.Plugin;
|
import net.runelite.client.plugins.Plugin;
|
||||||
import net.runelite.client.plugins.PluginDescriptor;
|
import net.runelite.client.plugins.PluginDescriptor;
|
||||||
|
|
||||||
import javax.inject.Inject;
|
|
||||||
|
|
||||||
@PluginDescriptor(
|
@PluginDescriptor(
|
||||||
name = "Metronome plugin"
|
name = "Metronome plugin"
|
||||||
)
|
)
|
||||||
@@ -67,11 +67,11 @@ public class MetronomePlugin extends Plugin
|
|||||||
{
|
{
|
||||||
if (config.enableTock() && shouldTock)
|
if (config.enableTock() && shouldTock)
|
||||||
{
|
{
|
||||||
client.playSoundEffect(config.tockSound());
|
client.playSoundEffect(SoundEffectID.GE_DECREMENT_PLOP);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
client.playSoundEffect(config.tickSound());
|
client.playSoundEffect(SoundEffectID.GE_INCREMENT_PLOP);
|
||||||
}
|
}
|
||||||
shouldTock = !shouldTock;
|
shouldTock = !shouldTock;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,6 @@
|
|||||||
*/
|
*/
|
||||||
package net.runelite.client.plugins.metronome;
|
package net.runelite.client.plugins.metronome;
|
||||||
|
|
||||||
import net.runelite.api.SoundEffectID;
|
|
||||||
import net.runelite.client.config.Config;
|
import net.runelite.client.config.Config;
|
||||||
import net.runelite.client.config.ConfigGroup;
|
import net.runelite.client.config.ConfigGroup;
|
||||||
import net.runelite.client.config.ConfigItem;
|
import net.runelite.client.config.ConfigItem;
|
||||||
@@ -59,36 +58,14 @@ public interface MetronomePluginConfiguration extends Config
|
|||||||
return 1;
|
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(
|
@ConfigItem(
|
||||||
keyName = "enableTock",
|
keyName = "enableTock",
|
||||||
name = "Enable tock (alternating) sound",
|
name = "Enable tock (alternating) sound",
|
||||||
description = "Toggles whether to play two alternating sounds",
|
description = "Toggles whether to play two alternating sounds",
|
||||||
position = 4
|
position = 3
|
||||||
)
|
)
|
||||||
default boolean enableTock()
|
default boolean enableTock()
|
||||||
{
|
{
|
||||||
return false;
|
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user