aboutsummaryrefslogtreecommitdiff
path: root/settings.js
diff options
context:
space:
mode:
authorNinjune <enderknight537@gmail.com>2022-11-18 16:05:16 -0600
committerNinjune <enderknight537@gmail.com>2022-11-18 16:05:16 -0600
commit5e76b8b00ac668768f5295ac4b2cb7c79c71ee36 (patch)
tree08a2e7a4e7c46d35bfcafc8a27f29716a639889a /settings.js
parent03e93ce21ad426d0e3d47301fa004a41053ce23f (diff)
downloadcoleweight-5e76b8b00ac668768f5295ac4b2cb7c79c71ee36.tar.gz
coleweight-5e76b8b00ac668768f5295ac4b2cb7c79c71ee36.tar.bz2
coleweight-5e76b8b00ac668768f5295ac4b2cb7c79c71ee36.zip
v1.6.2 Bug fixes
Diffstat (limited to 'settings.js')
-rw-r--r--settings.js54
1 files changed, 33 insertions, 21 deletions
diff --git a/settings.js b/settings.js
index 20cb769..cc6382e 100644
--- a/settings.js
+++ b/settings.js
@@ -2,16 +2,6 @@ import { @Vigilant, @ButtonProperty, @SwitchProperty, @SelectorProperty } from '
@Vigilant("Coleweight")
class Settings {
- @ButtonProperty({
- name: "Change tracker position",
- description: "Move the location of the tracker.",
- category: "General",
- placeholder: "Open"
- })
- moveLocation() {
- ChatLib.command("cw move coleweight", true);
- }
-
@SwitchProperty({
name: "Coleweight tracker",
description: "Enables the Coleweight tracker.",
@@ -19,6 +9,16 @@ class Settings {
})
cwToggle = true;
+ @ButtonProperty({
+ name: "Change Coleweight tracker position",
+ description: "Move the location of the coleweight tracker.",
+ category: "General",
+ placeholder: "Open"
+ })
+ moveCwLocation() {
+ ChatLib.command("cw move coleweight", true);
+ }
+
@SwitchProperty({
name: "Rank chat",
description: "Enables the Coleweight rank message after a name in chat.",
@@ -54,6 +54,23 @@ class Settings {
})
timerVisible = false;
+ @ButtonProperty({
+ name: "Change timer position",
+ description: "Move the location of the timer.",
+ category: "General",
+ placeholder: "Open"
+ })
+ moveTimerLocation() {
+ ChatLib.command("cw move timer", true);
+ }
+
+ @SwitchProperty({
+ name: "Debug",
+ description: "Toggles debug mode.",
+ category: "General"
+ })
+ debug = false;
+
@SwitchProperty({
name: "Show powdertracker",
description: "If the tracker overlay should be visible.",
@@ -84,12 +101,12 @@ class Settings {
trackerAlignment = 0;
@ButtonProperty({
- name: "Change tracker position",
- description: "Move the location of the tracker.",
+ name: "Change Powdertracker position",
+ description: "Move the location of the powdertracker.",
category: "Powdertracker",
placeholder: "Open"
})
- moveLocation() {
+ movePowderLocation() {
ChatLib.command("cw move powdertracker", true);
}
@@ -110,27 +127,22 @@ class Settings {
this.registerListener("Timer", value => {
this.timerVisible = value;
})
+ this.registerListener("Debug", value => {
+ this.debug = value;
+ })
this.registerListener("Show powdertracker", value => {
this.trackerVisible = value;
- this.sync();
})
this.registerListener("Show totals", value => {
this.showTotals = value;
- this.sync();
})
this.registerListener("Show rates", value => {
this.showRates = value;
- this.sync();
})
this.registerListener("Alignment", value => {
this.trackerAlignment = value;
- this.sync();
})
}
-
- sync() {
- ChatLib.command("cw powdertrackersync", true);
- }
}
export default new Settings() \ No newline at end of file