Use proper project styling
This commit is contained in:
@@ -26,9 +26,14 @@
|
|||||||
package net.runelite.client.plugins.metronome;
|
package net.runelite.client.plugins.metronome;
|
||||||
|
|
||||||
import com.google.inject.Provides;
|
import com.google.inject.Provides;
|
||||||
|
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
|
import javax.sound.sampled.AudioInputStream;
|
||||||
|
import javax.sound.sampled.AudioSystem;
|
||||||
|
import javax.sound.sampled.Clip;
|
||||||
|
import javax.sound.sampled.DataLine;
|
||||||
|
import javax.sound.sampled.AudioFormat;
|
||||||
|
import javax.sound.sampled.FloatControl;
|
||||||
|
import java.io.File;
|
||||||
import net.runelite.api.Client;
|
import net.runelite.api.Client;
|
||||||
import net.runelite.api.SoundEffectID;
|
import net.runelite.api.SoundEffectID;
|
||||||
import net.runelite.api.events.ConfigChanged;
|
import net.runelite.api.events.ConfigChanged;
|
||||||
@@ -38,19 +43,11 @@ import net.runelite.client.eventbus.Subscribe;
|
|||||||
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.sound.sampled.AudioInputStream;
|
|
||||||
import javax.sound.sampled.AudioSystem;
|
|
||||||
import javax.sound.sampled.Clip;
|
|
||||||
import javax.sound.sampled.DataLine;
|
|
||||||
import javax.sound.sampled.AudioFormat;
|
|
||||||
import javax.sound.sampled.FloatControl;
|
|
||||||
import java.io.File;
|
|
||||||
|
|
||||||
@PluginDescriptor(
|
@PluginDescriptor(
|
||||||
name = "Metronome",
|
name = "Metronome",
|
||||||
description = "Play sounds in a customisable pattern",
|
description = "Play sounds in a customisable pattern",
|
||||||
tags = {"skilling", "tick", "timers"},
|
tags = {"skilling", "tick", "timers"},
|
||||||
enabledByDefault = false
|
enabledByDefault = false
|
||||||
)
|
)
|
||||||
public class MetronomePlugin extends Plugin
|
public class MetronomePlugin extends Plugin
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -34,9 +34,9 @@ import net.runelite.client.config.Range;
|
|||||||
public interface MetronomePluginConfiguration extends Config
|
public interface MetronomePluginConfiguration extends Config
|
||||||
{
|
{
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "tickCount",
|
keyName = "tickCount",
|
||||||
name = "Tick count",
|
name = "Tick count",
|
||||||
description = "Configures the number of game ticks between metronome sounds"
|
description = "Configures the number of game ticks between metronome sounds"
|
||||||
)
|
)
|
||||||
default int tickCount()
|
default int tickCount()
|
||||||
{
|
{
|
||||||
@@ -44,9 +44,9 @@ public interface MetronomePluginConfiguration extends Config
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "enableTock",
|
keyName = "enableTock",
|
||||||
name = "Enable tock (alternating) sound",
|
name = "Enable tock (alternating) sound",
|
||||||
description = "Toggles whether to play \"tock\" sounds"
|
description = "Toggles whether to play \"tock\" sounds"
|
||||||
)
|
)
|
||||||
default boolean enableTock()
|
default boolean enableTock()
|
||||||
{
|
{
|
||||||
@@ -54,9 +54,9 @@ public interface MetronomePluginConfiguration extends Config
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "tockNumber",
|
keyName = "tockNumber",
|
||||||
name = "Tock every nth \"tick\"",
|
name = "Tock every nth \"tick\"",
|
||||||
description = "Configures how many \"ticks\" between each \"tock\""
|
description = "Configures how many \"ticks\" between each \"tock\""
|
||||||
)
|
)
|
||||||
default int tockNumber()
|
default int tockNumber()
|
||||||
{
|
{
|
||||||
@@ -64,9 +64,9 @@ public interface MetronomePluginConfiguration extends Config
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "tickOffset",
|
keyName = "tickOffset",
|
||||||
name = "Offset",
|
name = "Offset",
|
||||||
description = "Amount of ticks to offset the metronome (only useful for \"tocks\")"
|
description = "Amount of ticks to offset the metronome (only useful for \"tocks\")"
|
||||||
)
|
)
|
||||||
default int tickOffset()
|
default int tickOffset()
|
||||||
{
|
{
|
||||||
@@ -74,9 +74,9 @@ public interface MetronomePluginConfiguration extends Config
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "tickSoundFilePath",
|
keyName = "tickSoundFilePath",
|
||||||
name = "Tick .wav file path",
|
name = "Tick .wav file path",
|
||||||
description = "The path to the file to be used for \"tick\" sounds (short .wav only)"
|
description = "The path to the file to be used for \"tick\" sounds (short .wav only)"
|
||||||
)
|
)
|
||||||
default String tickPath()
|
default String tickPath()
|
||||||
{
|
{
|
||||||
@@ -84,9 +84,9 @@ public interface MetronomePluginConfiguration extends Config
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "tockSoundFilePath",
|
keyName = "tockSoundFilePath",
|
||||||
name = "Tock .wav file path",
|
name = "Tock .wav file path",
|
||||||
description = "The path to the file to be used for \"tock\" sounds (short .wav only)"
|
description = "The path to the file to be used for \"tock\" sounds (short .wav only)"
|
||||||
)
|
)
|
||||||
default String tockPath()
|
default String tockPath()
|
||||||
{
|
{
|
||||||
@@ -94,13 +94,13 @@ public interface MetronomePluginConfiguration extends Config
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Range(
|
@Range(
|
||||||
min = 0,
|
min = 0,
|
||||||
max = 100
|
max = 100
|
||||||
)
|
)
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "volume",
|
keyName = "volume",
|
||||||
name = "Volume modification",
|
name = "Volume modification",
|
||||||
description = "Configures tick/tock volume; only effects custom sounds."
|
description = "Configures tick/tock volume; only effects custom sounds."
|
||||||
)
|
)
|
||||||
default int volume()
|
default int volume()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user