Game border colour
Silver
27 Jan 2015, 11:49The game border colour is set default to white. It's possible to overlay an image with SetBackgroundImage but is there a function that just changes its colour? I've looked down the list of functions and nothing seems obvious so I guess there isn't. Changing it with html/css won't help either as I'm trying to avoid a clearscreen from deleting it.
Silver
27 Jan 2015, 11:52I suppose a solution would be to just create a small square of the colour and let it tile with SetBackgroundImage although when I tried that the tiling was obvious. Maybe I'd added too much compression so should export it with less or as a png or something.

Pertex
27 Jan 2015, 12:21You could add a Javascript function like this
and call it within the function InitUserInterface with
function SetBackgroundCol(col) {
$("body").css("background-color", col);
}
and call it within the function InitUserInterface with
JS.SetBackgroundCol ("black")
Silver
27 Jan 2015, 12:33Oooh, cheers.
Silver
27 Jan 2015, 12:37Would that clash with SetBackgroundImage at all though? Or would the image always be overlayed?

Pertex
27 Jan 2015, 13:09the image seems to be stronger 

Silver
27 Jan 2015, 13:33Ah cool. If it boiled down to that I'd just call the js as and when needed but that's great that I can basically default to it by calling it once from inituserinterface.
Silver
28 Jan 2015, 13:10This works and it persists beyond a ClearScreen and jquery shenanigans even when not called from inituserinterface. You get a bonus prize for guessing the right colour too.