[thisAddonOptions.textCommands]: {
"type": "object",
"title": "Text Commands to Process",
"description": `Define RPG Maker text commands that should be processed during text wrapping.
These commands will be detected and replaced with their actual text representation to calculate accurate line lengths.
• Put each command pattern on a new line
• Use SHISAYE_INT as a placeholder for numbers/variables
• Commands will be matched in the order listed
Examples:
\\\C[SHISAYE_INT] - Color codes
\\\N[SHISAYE_INT] - Name displays
\\\V[SHISAYE_INT] - Variable values
\\\P[SHISAYE_INT] - Party member names`,
"HOOK": "thisAddon.config." + thisAddonOptions.textCommands,
"default": "\\C[SHISAYE_INT]\n\\N[SHISAYE_INT]\n\\V[SHISAYE_INT]",
"formType": "ace",
"formOptions": {
"aceTheme": "twilight",
"height": "200px",
"placeholder": "Enter one command pattern per line..."
}
},
[thisAddonOptions.replaceCommands]: {
"type": "object",
"title": "Text Command Replacements",
"description": `Define the actual text that should replace each command during width calculation.
• Each line corresponds to a command from the list above
• Use commas to separate replacement values for different indices
• Empty entries mean the command adds no width
Format:
Line 1: Replacements for first command (e.g., \\C[0], \\C[1], \\C[2])
Line 2: Replacements for second command (e.g., \\N[0], \\N[1], \\N[2])
Example where:
- \\C[0] has no text (empty)
- \\N[0] is empty, \\N[1] = "Hero", \\N[2] = "LongestPossibleName"
- \\V[0] = "100", \\V[1] = "VariableText"
Input:
, (for \\C[x])
,Hero,LongestPossibleName (for \\N[x])
100,VariableText (for \\V[x])`,
"HOOK": "thisAddon.config." + thisAddonOptions.replaceCommands,
"default": ",\n,Hero\n100",
"formType": "ace",
"formOptions": {
"aceTheme": "twilight",
"height": "200px",
"placeholder": "Enter replacement values, one command set per line..."
}
}