Initialization
This commit is contained in:
commit
3458f39973
28 changed files with 6780 additions and 0 deletions
27
workers/extraTogglers.js
Normal file
27
workers/extraTogglers.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
on("clicked:togedge", function() {
|
||||
getAttrs(["edgeroll","gmroll"], function(values) {
|
||||
let currentVal = values.edgeroll ?? "";
|
||||
let newVal = "";
|
||||
if (currentVal === "") {
|
||||
newVal = "!/";
|
||||
}
|
||||
console.log("Setting Edge Value to: " + newVal);
|
||||
setAttrs({
|
||||
"edgeroll": newVal
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
on("clicked:toggmroll", function() {
|
||||
getAttrs(["gmroll","edgeroll"], function(values) {
|
||||
let currentVal = values.gmroll ?? "";
|
||||
let newVal = "";
|
||||
if (currentVal === "") {
|
||||
newVal = "/w gm ";
|
||||
}
|
||||
console.log("Setting GM roll Value to: " + newVal);
|
||||
setAttrs({
|
||||
"gmroll": newVal
|
||||
});
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue