Selector name for controlling save confirmation text colour?

OurJud
11 Dec 2016, 15:47I'm using a black background but because the save confirmation text is also black it's not seen.
How do I target this is my CSS? I found a thread in which TP says it's divOutput, but it doesn't work.

OurJud
12 Dec 2016, 16:07Anyone? Quite an important one this.
The Pixie
13 Dec 2016, 08:12For me, it does it in the default colour, set on the Display tab.
Looks to me like this will override divOutput, but has no ID of its own. I have a feeling this has changed recently; I am using version 5.6.3; what are you using?

OurJud
13 Dec 2016, 16:23I'm using 5.6.3 too, but I don't see a 'default' colour option on the Display tab. All I have on Display in terms of colour settings are for background (page colour) and foreground (font colour).
There's also a setting for background opacity which is ticked and set at 1, but I have no idea what this does.
I just don't see what it is that's setting the Save confirmation colour as black.
Even if I go to the code, press Ctrl+F and search for #000000; or #000; or game saved, it fails to find any reference.
The Pixie
13 Dec 2016, 17:27I meant the foreground colour. What is that set to?

OurJud
13 Dec 2016, 19:19#ddd; which is virtually white but with the glare taken off.
The Save confirmation text is black, but I don't see any reference to it anywhere in the game's main code.
The Pixie
14 Dec 2016, 08:12I just did a quick test game, setting the foreground colour to #ddd, and that makes the save confirmation pale grey too:
<!--Saved by Quest 5.6.6108.15891-->
<asl version="550">
<include ref="English.aslx" />
<include ref="Core.aslx" />
<game name="colour">
<gameid>9080940e-5e00-4b98-ade9-41bff7e99726</gameid>
<version>1.0</version>
<firstpublished>2016</firstpublished>
<defaultforeground>#ddd</defaultforeground>
</game>
<object name="room">
<inherit name="editor_room" />
<object name="player">
<inherit name="editor_object" />
<inherit name="editor_player" />
</object>
</object>
</asl>
Do you have SetForegroundColour
any where in your game? That would change the default colour.

OurJud
14 Dec 2016, 17:11This is weird. I've found the SetForegroundColour
function in the library, but not sure what to do with it. I've also checked my game code and <defaultforeground>
is set to #ddd
Uploaded it again to check I wasn't missing something and the Save text is still black. I even changed the foreground to a default colour instead of the hex but it made no difference.
Probably another corrupt file. I seem to be getting a lot of them.
Having said that, I've had this issue for every game I make with a black or dark background. I'd argue the colour of the Save confirmation text can't be changed, if you hadn't just proved otherwise.

OurJud
14 Dec 2016, 17:55Hold on a minute. Summat weird going on here.
I've just pasted that code of yours into a test game and uploaded it, and the Save confirmation text is black??
Are you sure we're talking about the same thing? I'm talking about online, when you type save and get the message Saving... Game saved successfully.
I'm talking about the text colour of that confirmation message, and in that test game you just posted it's black. At least it is for me.
The Pixie
14 Dec 2016, 20:48Apparently the on-line save is different...
Okay, try this:
JS.eval ("$('#divOutput').css('color', 'red');")
Put it in a script in the room the player starts in, in the script that fires once after entering the room. I think divOutput
does not exist when game.start
fires, so it does not work there.

OurJud
14 Dec 2016, 20:56Brilliant! Thank you.
One question, though, if this is in the start room, will it be triggered if the player resumes a save?
If not I can always stick it in the InitUserInterface
that I'm using to trigger the CSS on resume.
The Pixie
15 Dec 2016, 08:04Thinking about it, no it will not be triggered on a resume. Okay, new plan. Set the colour on the body element (note it has no #, as it is not an id). This can go in InitUserInterface
, and should work because the body element will exist right from the start.
JS.eval ("$('body').css('color', 'red');")

OurJud
15 Dec 2016, 16:00Rightio. Thanks.

OurJud
15 Dec 2016, 19:54The above doesn't work, TP, so I've put your other method back in and I've also put it in the InitUserInterface
too, which should hopefully take care of the resume issue.