From 8099da03ea8c2a98457ceb6840b46a8ad12f8af7 Mon Sep 17 00:00:00 2001 From: riktenx Date: Wed, 5 Mar 2025 02:45:27 +0000 Subject: [PATCH] add cox module --- cox/module.json | 57 +++++++++++++++++++++++++++++++++++++++++++++++++ cox/module.rs2f | 41 +++++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 cox/module.json create mode 100644 cox/module.rs2f diff --git a/cox/module.json b/cox/module.json new file mode 100644 index 0000000..d6017aa --- /dev/null +++ b/cox/module.json @@ -0,0 +1,57 @@ +{ + "name": "CoX", + "inputs": [ + { + "type": "stringlist", + "group": "addl-highlight", + "label": "CoX-specific item highlights", + "macroName": "VAR_COX_HIGHLIGHT" + }, + { + "type": "style", + "group": "addl-highlight", + "label": "CoX-specific item highlight style", + "macroName": "VAR_COX_HIGHLIGHT_USERSTYLE" + }, + { + "type": "style", + "group": "potions", + "label": "Overload", + "macroName": "VAR_COX_OVL_USERSTYLE", + "default": { + "textColor": "#1e88e5", + "textAccent": 4 + } + }, + { + "type": "style", + "group": "potions", + "label": "Prayer enhance", + "macroName": "VAR_COX_PEH_USERSTYLE", + "default": { + "textColor": "#ff00ff", + "textAccent": 4 + } + }, + { + "type": "style", + "group": "potions", + "label": "Revitalisation", + "macroName": "VAR_COX_REV_USERSTYLE", + "default": { + "textColor": "#e91e63", + "textAccent": 4 + } + }, + { + "type": "style", + "group": "potions", + "label": "Xeric's aid", + "macroName": "VAR_COX_XER_USERSTYLE", + "default": { + "textColor": "#ffff00", + "textAccent": 4 + } + } + ] +} diff --git a/cox/module.rs2f b/cox/module.rs2f new file mode 100644 index 0000000..91debb3 --- /dev/null +++ b/cox/module.rs2f @@ -0,0 +1,41 @@ +// module:cox + +#define CONST_COX_AREA [] + +#define VAR_COX_OVL_USERSTYLE +#define VAR_COX_PEH_USERSTYLE +#define VAR_COX_REV_USERSTYLE +#define VAR_COX_XER_USERSTYLE + +#define VAR_COX_HIGHLIGHT [] +#define VAR_COX_HIGHLIGHT_USERSTYLE + +if (area:CONST_COX_AREA && name:CONST_COX_HIGHLIGHT) { + VAR_COX_HIGHLIGHT_USERSTYLE; +} + +if (area:CONST_COX_AREA && name:"overload*") { + textColor = "#1e88e5"; + textAccent = 4; + VAR_COX_OVL_USERSTYLE; +} + +if (area:CONST_COX_AREA && name:"prayer enhance*") { + textColor = "#ff00ff"; + textAccent = 4; + VAR_COX_PEH_USERSTYLE; +} + +if (area:CONST_COX_AREA && name:"revitalisation*") { + textColor = "#e91e63"; + textAccent = 4; + VAR_COX_REV_USERSTYLE; +} + +if (area:CONST_COX_AREA && name:"xeric's aid*") { + textColor = "#ffff00"; + textAccent = 4; + VAR_COX_XER_USERSTYLE; +} + +// endmodule:cox