table

celje

New member
In Exel I made the table of my trains in the route. What to do that this table will show in Driver mode.
 
Thank's collins for your answer, but I hope that somebody know what to do that the table will show in driver mode.Is html the solution?
Yes paulsw2, my table contain just this informations.
Any answer, please.
 
Have a look at the Trainz API documentation (also called Trainz Railroad Simulator 2004 [or 2006] User Activity Creation Guide). There are GameScript functions to create a mini-browser window and display simple HTML within it. That mechanism is used by the Razorback HUD overlays. I don't know if you can obtain text from an external file though.

The guyz in the scripting section of this forum might have some better answers for you.

John
 
Thank's john, I have html with mini browser but there is a problem, because the text is not set in order (mess) and amount of text isn't big enough.
 
Once again, in html I don't know how to arrange rows ,columns and lines.After saving I have the mess.
 
I suspect that the limited range of HTML tags in Trainz won't let you do tables but I haven't tried.

FWIW the normal HTML coding for tables is:

<table>
<tr>
<th>column heading 1</th>
<th>column heading 2</th>
</tr>
<tr>
<td>row 1 col 1</td>
<td>row 1 col 2</td>
</tr>
<tr>
<td>row 2 col 1</td>
<td>row 2 col 2</td>
</tr>
</table>

The whole table inside <table> tags.
Each row inside <tr> tags.
Column headings in <th> tags.
Cell data in <td> tags.

Most of the table-related tags can take optional parameters to specify formatting. Any decent HTML tutorial (printed book or online) should have the gory details. I suggest you try playing in Notepad and IE first, then see if it works in Trainz.

HTH, John
 
Thank you very much John for your help. I will try to write the new html with your suggestion help and mini browser reference for tables from API.
 
Back
Top