Line hr
m4u
06 Sept 2012, 05:56Hi, why quest recognize this code <br/> but doesnt recognize this one <hr/> ?

Pertex
06 Sept 2012, 06:32Quest is coded to recognize only a few html tags. This will be changed in Q5.3

guzmere
06 Sept 2012, 08:10Hi just reading your post and i`m puzzled I know br stands for break but what is hr? Thanks Terry






Pertex
06 Sept 2012, 09:34It prints a horizontal line
m4u
06 Sept 2012, 22:52Cool! Sorry to bother but is there an estimated release date for the new version? 

sgreig
07 Sept 2012, 03:35beta in October.
m4u
17 Sept 2013, 17:44Hi guys, here is a tricky question, When including the code <hr/> there is a lot of space between the line ___ and the text of the next line. Is there a way to change that?

jaynabonne
17 Sept 2013, 19:23If you could show an example, that would be helpful. For example, if you use msg, then there will be a line break after the hr, but if you use OutputTextNoBr, then there won't be. It might also depend on the current font size.
m4u
17 Sept 2013, 21:03Here it goes a sample...

jaynabonne
17 Sept 2013, 21:10Both of your <hr> outputs look like this:
If you take out the <br/> from it, it's much tighter. I'm fairly certain <hr> does its own line break.
msg("<hr/> <br/>test")
If you take out the <br/> from it, it's much tighter. I'm fairly certain <hr> does its own line break.
m4u
17 Sept 2013, 21:20sorry, not a good sample then, here is another one, no breaks...

jaynabonne
17 Sept 2013, 21:30Use
instead of
The <hr> adds its own line break. Doing a standard msg will add another.
BTW, the standard HTML tag is "<hr>" without the XML-like slash. (The same for "<br>".) I believe it will work fine in XHTML-compliant browsers, but it's not standard HTML that way. Just beware...
OutputTextNoBr ("<hr/>")
instead of
msg("<hr/> ")
The <hr> adds its own line break. Doing a standard msg will add another.
BTW, the standard HTML tag is "<hr>" without the XML-like slash. (The same for "<br>".) I believe it will work fine in XHTML-compliant browsers, but it's not standard HTML that way. Just beware...

m4u
17 Sept 2013, 22:34thanks, for some reason doesn't work in some places, I want to put it after the objects list, so i change the ShowRoomDescription but it appears after the verb, not the "you can see"...

jaynabonne
18 Sept 2013, 00:01Not sure, but this might be different:
OutputTextNoBr ("<div style='width:100%; display:block'><hr></div>")

jaynabonne
18 Sept 2013, 00:07Here's an alternative I have used. Instead of hr, use a border on a full-width div:
Set the color to whatever you wish.
You can also do this (for whatever you like):
Saves typing it everywhere...
OutputTextNoBr("<div style='border-top-style:dashed; border-width:1px; border-color:#808080; height:2px; width:100%;'></div>")
msg ("test3")
OutputTextNoBr("<div style='border-top-style:solid; border-width:1px; border-color:#808080; height:2px; width:100%;'></div>")
msg ("test4")
Set the color to whatever you wish.
You can also do this (for whatever you like):
game.separator = "<div style='border-top-style:dashed; border-width:1px; border-color:#808080; height:2px; width:100%;'></div>"
OutputTextNoBr("{game.separator}")
Saves typing it everywhere...

jaynabonne
18 Sept 2013, 00:17Sorry, I just realized your issue was more one of order. I would have to see what you did to know how to change it.
m4u
18 Sept 2013, 02:41Not working, the problem seems to be the script "print line no break" because it sends the line under the command we type instead of under the object list, for some reason.
That doesn't happen with the print message. So, I tried your code with that and works but there is still some space under the line, I reduce the height to 0 but it still there. Maybe, its the customized fixed panel that i have.
The only thing that works is writting the line by hand _____ but for some reason become dashed ----- and we can meassure to fit the screen if it changes we have to change the line
Thanks for the efort Jay, as usual!
That doesn't happen with the print message. So, I tried your code with that and works but there is still some space under the line, I reduce the height to 0 but it still there. Maybe, its the customized fixed panel that i have.
The only thing that works is writting the line by hand _____ but for some reason become dashed ----- and we can meassure to fit the screen if it changes we have to change the line

Thanks for the efort Jay, as usual!