The International Simutrans Forum

 

Author Topic: function object.href  (Read 263 times)

0 Members and 1 Guest are viewing this topic.

Offline Andarix

  • *
  • Posts: 20
function object.href
« on: September 17, 2019, 08:24:51 PM »
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.

Code: [Select]
...
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
....





Offline Andarix

  • *
  • Posts: 20
Re: function object.href
« Reply #1 on: September 18, 2019, 11:13:00 AM »
Meanwhile, it works better, though nothing has changed.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4597
  • Languages: EN, DE, AT
Re: function object.href
« Reply #2 on: September 18, 2019, 05:25:15 PM »
This refers to the tutorial scenario?

Offline Andarix

  • *
  • Posts: 20
Re: function object.href
« Reply #3 on: September 18, 2019, 06:06:31 PM »
yes

r8803 + latest Scriptfiles from Simutrans-SVN

Offline Andarix

  • *
  • Posts: 20
Re: function object.href
« Reply #4 on: September 18, 2019, 11:23:28 PM »
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
Quote
Backspace [<--] Taste.<br/> text

Offline Yona-TYT ve

  • Devotee
  • *
  • Posts: 1214
    • Simutrans-BLOG
  • Languages: ES
Re: function object.href
« Reply #5 on: September 19, 2019, 03:23:50 AM »
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.