Blue continue hyperlink

Hi guys!

This may be a retarded question, but I'm trying to implement 'the blue continue hyperlink' in my game. Basically to show more text after the player clicks this link. Sounds pretty simple but I can't figure it out for the life of me. I looked up the documentation and I came across the script 'wait for key press'. All nice and well but it only continues to the new line of text AFTER the player hits any key on the keyboard. I don't see an actual hyperlink, and since my game doesn't rely on the command bar, this may be a bit of an issue. It just stays blank until I hit a key on my keyboard... then the new line of text shows up.

How can I make it so I can actually see the hyperlink below the text.

I'm using the program Quest 5.8


wait {
}

I think.
Alternatively, you can do this:

get input {
}

This waits for the player to type a command or press a button.


I think "Wait for key press" generates the wait {} operator. In that case it should display the "Continue…" link automatically.

Can you show a game which has this problem, so that we can take a closer look at it? It's possible that with some combinations of display settings, the 'continue' link might appear off the edge of the screen or something like that. I can't work out a specific case where this could happen; but if you can show the game, I could take a look and work out where that link has gone.


Thanks for all the replies! I really appreciate it.

I notice when the command bar is disabled (which it is in my game), this 'wait for key press' to show the blue continue hyperlink button doesn't show up. Is there a way to enable the blue continue button without enabling the command bar?

When I tick 'show command bar' the blue hyperlink button works perfectly, but that's not what I'm trying to do.

Thanks in advance,


How are you disabling the command bar?
The command bar and continue link are in the same div; so if you hide that it'll remove both.

JS.eval("$('#txtCommand').hide();") should only hide the input field.

I'll take a look again when I'm back on my computer.


Hi mrangel,

Under game -> Interface-> untick 'Show Command Bar' is how I disabled it.

I'm very new to Quest, so I apologize in advance :) where do I insert this code JS.eval("$('#txtCommand').hide();")


OK… it looks like that tickbox causes the command JS.uiHide("#txtCommandDiv") to be run when the game is initialised.

So in that case, to override it you'd want to put a few lines of code in the "UI Initialisation" script. This is on the "Advanced Scripts" tab of the game object, but you might have to tick a box on the "features" tab first to display it.

In that case, the script you want would be:

JS.uiShow("#txtCommandDiv")
JS.uiHide("#txtCommandPrompt,#txtCommand")

That shows the box named txtCommandDiv, which is used to contain the command bar, prompt, and the 'Continue' link. It then hides just the command bar itself and its prompt.

Hope I got that right off the top of my head.

I've only tried hiding the bar temporarily, so hadn't realised that the default setting handled it in a problematic way.


Ok... I did that.

That does seem to work at first. I can finally see the 'magic' Blue Continue button (which I've never seen before until now) But when object are being looked at etc.. the Command bar shows up again, even though it's disabled in the interface tab.

We're getting close :)


Hmm… there must be something showing it again.

Okay, an alternate initialisation script:

JS.eval("$('#endWaitLink').insertAfter('#txtCommandDiv');")

Instead of changing which parts are hidden, that should move the continue link out of the box that contains the command bar; so that it isn't hidden with the rest of it.

I don't know if that will mess with the layout, though.


Tried your code just now and it works like a charm!! :)
As far as I can tell the layout it still the same, so no issues there!

Thank you so much for all your help!!! Much appreciated!


wedding planner

thanks, mrangel I use your code which really works. can I ask queation on any topic if I need information?Wedding venues South Africa


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums