Skip to content

Commit

Permalink
add cox module
Browse files Browse the repository at this point in the history
  • Loading branch information
riktenx committed Mar 5, 2025
1 parent 78041d4 commit 8099da0
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 0 deletions.
57 changes: 57 additions & 0 deletions cox/module.json
Original file line number Diff line number Diff line change
@@ -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
}
}
]
}
41 changes: 41 additions & 0 deletions cox/module.rs2f
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8099da0

Please sign in to comment.