Changing Map "Hallway" Colors [SOLVED]

Dcoder
27 May 2017, 02:53

I'm using the desktop editor and making a TA.

I have the map feature on. Connecting the various rooms, there are "hallways", i.e., black lines connecting one room with another. The problem is that my background color is also black, so you can't see the black "hallways" lines.

Is there a way to change the color and width of these connecting "hallway" lines? Changing the room border colors doesn't do it. Thanks.


The Pixie
27 May 2017, 07:00

You need to override the Grid_DrawRoom function. See here for how to do that.

https://github.com/ThePix/quest/wiki/Overriding-Functions

About two thirds of the way down the script is a "Draw line from X1" command, and at the end of that is a colour option and a thickness option, currently black and 1 respectively. Change those values.

I am now wondering if these should be options that can be set for the game object.


Dcoder
27 May 2017, 08:30

Worked like a charm! Thank you!

Only minor glitch is that when I copied the Grid_DrawRoom function (tried this twice), I got some kind of Quest internal error. I just ignored it and everything seemed to work out OK.


The Pixie
27 May 2017, 09:37

Same here!