Aligning text
Berstarke
01 Sept 2012, 02:04Hello there. I am designing a game and somehow managed to get stuck on the very first screen.
Since this is the first screen, with some disclaimer and credits, I am making everything centered. My question is: How do I make the link at the end of the disclaime be aligned as well? I know it has to do with expressions, but I'm afraid my knowledge is still a bit limited. Every trick I tried turned into an error message.
For making things clear, my last attempt was to print a centered message with the expression
Since this is the first screen, with some disclaimer and credits, I am making everything centered. My question is: How do I make the link at the end of the disclaime be aligned as well? I know it has to do with expressions, but I'm afraid my knowledge is still a bit limited. Every trick I tried turned into an error message.
For making things clear, my last attempt was to print a centered message with the expression
DisplayHttpLink ("http://www.sitehere.com/ - go there", "http://www.sitehere.com/", false)

Pertex
01 Sept 2012, 13:30It's not possible with DisplayHttpLink. You can print a centered message with "http://www.sitehere.com"

jaynabonne
01 Sept 2012, 14:22You should be able to do it with this:
or more generally:
where url is the click-through url, and text is the text you want the user to see in the link.
(This is by looking at what DisplayHttpLink does in CoreOutput.aslx)
PrintCentered ("<a href=\"http://www.sitehere.com\">http://www.sitehere.com/ - go there</a>")
or more generally:
PrintCentered ("<a href=\"" + url + "\">" + text + "</a>")
where url is the click-through url, and text is the text you want the user to see in the link.
(This is by looking at what DisplayHttpLink does in CoreOutput.aslx)
Berstarke
04 Sept 2012, 00:54Oh, I didn't notice you can use some html right away. Thanks.
While we are at it, I just got two questions regarding fonts. Can I include custom fonts on online-hosted games? I am trying to use Pixekmix, which gives a nice "green screen" nostalgy vibe, and would like to have the players having it that way as well.
Also, is it possible to change the padding of the lines? Said font, while nice, also gets a little too crammed if the paragraph gets too long.
While we are at it, I just got two questions regarding fonts. Can I include custom fonts on online-hosted games? I am trying to use Pixekmix, which gives a nice "green screen" nostalgy vibe, and would like to have the players having it that way as well.
Also, is it possible to change the padding of the lines? Said font, while nice, also gets a little too crammed if the paragraph gets too long.
sgreig
04 Sept 2012, 09:38To be accurate, you can't actually use HTML in Quest games, short of using the Insert HTML from File command, but rather XML which has some tags in common with HTML. Just wanted to give you a heads up on that for future reference.
As for the font question, the answer sadly at the moment is no. I've done some experimenting with trying to get Quest to recognize embedded fonts, but so far haven't had any luck. This is apparently something that Alex is going to address in 5.3 I believe, but in the meantime it's a no-go.
It's potentially possible to change the padding if you download the Quest source and tinker with the javascript and css files, but those changes won't translate to the game if you upload it as the web player is using the unmodified files. Currently, there's no way to change these setting from within Quest.
As for the font question, the answer sadly at the moment is no. I've done some experimenting with trying to get Quest to recognize embedded fonts, but so far haven't had any luck. This is apparently something that Alex is going to address in 5.3 I believe, but in the meantime it's a no-go.
It's potentially possible to change the padding if you download the Quest source and tinker with the javascript and css files, but those changes won't translate to the game if you upload it as the web player is using the unmodified files. Currently, there's no way to change these setting from within Quest.
Berstarke
06 Sept 2012, 01:05That heads-up will be very helpful, thanks.