News:

Simutrans Chat Room
Where cool people of Simutrans can meet up.

function object.href

Started by Andarix, September 17, 2019, 08:24:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andarix

I think the function to create links has an error. Despite the same code, the link is displayed differently.

I assume that it is > before the link. Then a space is inserted before and after the link.


...
switch (this.step) {
case 1:
text.t1 = coordb.href("("+coordb.tostring()+")")
text.t2 = coorda.href("("+coorda.tostring()+")")
text.t3 = coordc.href("("+coordc.tostring()+")")
break
case 2:
text.pos = coordb.href("("+coordb.tostring()+")")
break
....






Andarix

Meanwhile, it works better, though nothing has changed.

Dwachs

This refers to the tutorial scenario?
Parsley, sage, rosemary, and maggikraut.

Andarix

yes

r8803 + latest Scriptfiles from Simutrans-SVN

Andarix

the string [<--] (for Backspace) is not displayed correctly

everything after < until next > is not displayed

red text is not show, the line break not works
QuoteBackspace [<--] Taste.<br/> text

Yona-TYT

Speaking of the "href" function, I found a small mistake long ago.

When used with "coord3d", the coordinates shown are incorect if the map is rotated.