cmdlink > issue

OurJud
30 Nov 2016, 01:02

When I run my game I'm getting the description, then underneath a > symbol, and then underneath that the | cursor which is where any inputs appear. As in:

Possimus voluptatem tempore perspiciatis atque eum. Voluptas aliquam perferendis reiciendis dolorum explicabo harum deleniti quis. Est debitis et esse quos et incidunt. Eaque architecto deleniti provident excepturi vero fugiat est harum. Quod aut aspernatur ducimus quas et. Expedita est eius voluptatem esse.

>
|

I want to hide the > until the command is entered - which I've never had any issues with in my other games, but for whatever reason I can't get rid of it.

I'm pretty sure I know what the problem is, and that is that in my other games which use a dark background, I've coloured the > the same colour (I've proved this to myself by loading an old test game and highlighting in the area it should be, and sure enough it's revealed)

However, it won't let me change the colour with my new game. I assume it's the cmdlink that controls its colour?

I'm using this is the CSS

a.cmdlink {
           color: #ffffff !important;
           text-decoration: none !important;
         }           

And this in the script tab of game

JS.eval ("getCSSRule('a.cmdlink').style.color='#ffffff'")
JS.setCommandBarStyle (GetCurrentTextFormat("") + ";border:" + game.defaultbackground)

The Pixie
30 Nov 2016, 08:24

I am not sure, but I think that is the wrong thing you are changing. I think that is to change hyperlinks; a is the HTML for anchor, which is what hyperlinks are, and cmdlink sounds like a command link, i.e., a hyperlinked command.

It is likely to be txtCommand or txtCommandDiv.


OurJud
30 Nov 2016, 12:36

Ah, thanks. I'll have a look.

That was it. Thank you! That was driving me mental into the early hours of this morning.