-
Vadi
- Posts: 5042
- Joined: Sat Mar 14, 2009 3:13 pm
Post
by Vadi »
To keep colour in your replace(), just add this inbetween your select and replace functions:
setBgColor(getBgColor())
setFgColor(getFgColor())
For example, what was
selectString("Bob", 1)
replace("Bob the guy")
Now becomes
selectString("Bob", 1)
setBgColor(getBgColor())
setFgColor(getFgColor())
replace("Bob the wizard")
-
Rakon
- Posts: 350
- Joined: Tue Feb 16, 2010 7:41 pm
-
Contact:
Post
by Rakon »
What about lines that have different colours in them??
-
Vadi
- Posts: 5042
- Joined: Sat Mar 14, 2009 3:13 pm
Post
by Vadi »
Then this isn't applicable. If you'll be adding new text, how will a script know what colours to apply to the new wording?