G'day everyone:
I've been playing around with the source code of VNDSx 1.4.8, partly as a crash course in c++, and I've been looking at ways to make colouring text more user-friendly for scripters.
I've modified the script_interpreter and script_engine files, so now I've got 6 extra 'commands' (those words at the start of the line), which change the colour of the line of text:
I chose to do it this way as, I figured, few people would require colours beyond these.
As I stated, this is more a personal project, but I'd like some feedback If people think a mode like this is better then the whole ANSI code method. Anyway:
compiled: http://www.mediafire.com/file/mwajorjtjjm/vndsxH.zip
source: http://www.mediafire.com/file/z2rymlmtttg/vndsxH-src.zip
That really makes it more simple xD. Just wondering though, do the original commands still work? Because sometimes it could be that people want to use the color on a specific word within the sentence like (just made up a syntax for demonstration) "This is the [textred]Red words[/textred] and this is the [textblue]Blue words[/textblue]."?
needs more .patch
>>4
I believe he means more colors to choose from.
Honestly that seems like enough to me though.
>>4
diff, whatever.
some way for me to merge it into the main branch without me having to just copy/paste over my stuff.
You don't really need language support:
gsetvar red = "\x1b[36;1m"
text $red This text is red