Selector name for controlling save confirmation text colour?

I'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.


Anyone? Quite an important one this.


For 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?


I'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.


I meant the foreground colour. What is that set to?


#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.


I 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.


This 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.


Hold 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.


Apparently 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.


Brilliant! 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.


Thinking 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');")

Rightio. Thanks.


The 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.