Hello Coders,
this bit is a kind of a riddle how to fix it as there is no code that has
or process characters.
while I got this code working mostly, it also include "
and while it works nicely and color showing up, the color code isn't converted.
as seen in the image below.
so what can I do to make this fix?
I cannot use this.content.color which is the way used for textColor color.
but no convertCharacter is found, so unsure how to fix this issue, any idea?
REMINDER:
drawText doesn't draw escapeCharacter by default or has alignment, and drawTextEx does,
but same issue if I use that, but far more textOffset by than, this is in use of TSR_TextColorAddon
to make sure drawText can use icon, colors like drawTextEx does.
this bit is a kind of a riddle how to fix it as there is no code that has
\c[n] in the convert charactersor process characters.
while I got this code working mostly, it also include "
\c[n]" which causing shifts
JavaScript:
let labelTxt = this._labelText;
this.contents.clear();
this.createContents();
let wy = this.lineHeight();
let MultilineText = labelTxt.split("\\n");
for(let i = 0; i < MultilineText.length; i++) {
this.drawText(MultilineText[i].trim(), 0, wy * i, this.contents.width, "center");
}
and while it works nicely and color showing up, the color code isn't converted.
as seen in the image below.
so what can I do to make this fix?
I cannot use this.content.color which is the way used for textColor color.
but no convertCharacter is found, so unsure how to fix this issue, any idea?
REMINDER:
drawText doesn't draw escapeCharacter by default or has alignment, and drawTextEx does,
but same issue if I use that, but far more textOffset by than, this is in use of TSR_TextColorAddon
to make sure drawText can use icon, colors like drawTextEx does.