How to Use Message Popup Rule
m |
m |
||
Line 1: | Line 1: | ||
The information in this Wiki Page applies to '''TANE''', '''TRS19''', '''Trainz Plus''' and '''TRS22'''. This page describes how to configure the '''Message Popup Rule'''. | The information in this Wiki Page applies to '''TANE''', '''TRS19''', '''Trainz Plus''' and '''TRS22'''. This page describes how to configure the '''Message Popup Rule'''. | ||
− | <table cellpadding= | + | <table cellpadding=4 bgcolor="Aquamarine"> |
<tr valign="top"> | <tr valign="top"> | ||
<td>[[file:LinkWiki.PNG|link=]]</td> | <td>[[file:LinkWiki.PNG|link=]]</td> | ||
Line 15: | Line 15: | ||
<br> | <br> | ||
− | <table cellpadding= | + | <table cellpadding=4 bgcolor=#c1e7e7> |
<tr valign="top"> | <tr valign="top"> | ||
<td colspan=2><span style="font-size: 17px; font-weight: 700;">In Summary:</span></td> | <td colspan=2><span style="font-size: 17px; font-weight: 700;">In Summary:</span></td> | ||
Line 54: | Line 54: | ||
<tr> | <tr> | ||
<td valign="top">[[file:MessagePopup1.JPG|link=]]<br><br> | <td valign="top">[[file:MessagePopup1.JPG|link=]]<br><br> | ||
− | <table cellpadding= | + | <table cellpadding=4 bgcolor="Aquamarine"> |
<tr valign="top"> | <tr valign="top"> | ||
<td>[[file:LinkWiki.PNG|link=]]</td> | <td>[[file:LinkWiki.PNG|link=]]</td> | ||
Line 63: | Line 63: | ||
</table></td> | </table></td> | ||
<td valign="top"> | <td valign="top"> | ||
− | <table cellpadding= | + | <table cellpadding=4 bgcolor=#eeeeee> |
<tr> | <tr> | ||
<td colspan="2"> | <td colspan="2"> | ||
Line 87: | Line 87: | ||
</tr> | </tr> | ||
</table> | </table> | ||
− | <table bgcolor= | + | <table bgcolor=#000000 cellpadding=2> |
<tr valign="top"> | <tr valign="top"> | ||
<td> | <td> | ||
− | <table cellpadding= | + | <table cellpadding=4 bgcolor=#ffffb0> |
<tr valign="top"> | <tr valign="top"> | ||
<td>[[file:NotePad.PNG|link=]]</td> | <td>[[file:NotePad.PNG|link=]]</td> | ||
Line 126: | Line 126: | ||
<td>[[file:MessagePopup3.JPG|link=]]</td> | <td>[[file:MessagePopup3.JPG|link=]]</td> | ||
<td> | <td> | ||
− | <table cellpadding= | + | <table cellpadding=4 bgcolor=#eeeeee> |
<tr> | <tr> | ||
<td colspan="2"> | <td colspan="2"> | ||
Line 149: | Line 149: | ||
</table> | </table> | ||
− | <table bgcolor= | + | <table bgcolor=#000000 cellpadding=2> |
<tr valign="top"> | <tr valign="top"> | ||
<td> | <td> | ||
− | <table cellpadding= | + | <table cellpadding=4 bgcolor=#ffffb0> |
<tr valign="top"> | <tr valign="top"> | ||
<td>[[file:NotePad.PNG|link=]]</td> | <td>[[file:NotePad.PNG|link=]]</td> | ||
Line 166: | Line 166: | ||
</tr> | </tr> | ||
</table><br> | </table><br> | ||
− | <table cellpadding= | + | <table cellpadding=4 bgcolor="Aquamarine"> |
<tr valign="top"> | <tr valign="top"> | ||
<td>[[file:LinkWiki.PNG|link=]]</td> | <td>[[file:LinkWiki.PNG|link=]]</td> | ||
Line 186: | Line 186: | ||
<tr valign="top"> | <tr valign="top"> | ||
<td> | <td> | ||
− | <table bgcolor=# | + | <table bgcolor=#ffffe0> |
<tr valign="top"> | <tr valign="top"> | ||
<td>[[file:PencilTips.PNG|link=]]</td> | <td>[[file:PencilTips.PNG|link=]]</td> | ||
Line 201: | Line 201: | ||
</table> | </table> | ||
<br> | <br> | ||
− | <table cellpadding= | + | <table cellpadding=4 bgcolor="Aquamarine"> |
<tr valign="top"> | <tr valign="top"> | ||
<td>[[file:LinkWiki.PNG|link=]]</td> | <td>[[file:LinkWiki.PNG|link=]]</td> | ||
Line 228: | Line 228: | ||
<td>[[file:MessagePopup4.JPG|link=]]</td> | <td>[[file:MessagePopup4.JPG|link=]]</td> | ||
<td> | <td> | ||
− | <table cellpadding= | + | <table cellpadding=4 bgcolor=#eeeeee> |
<tr> | <tr> | ||
<td colspan="2"> | <td colspan="2"> | ||
Line 253: | Line 253: | ||
</table> | </table> | ||
− | <table bgcolor= | + | <table bgcolor=#000000 cellpadding=2> |
<tr valign="top"> | <tr valign="top"> | ||
<td> | <td> | ||
− | <table cellpadding= | + | <table cellpadding=4 bgcolor=#ffffb0> |
<tr valign="top"> | <tr valign="top"> | ||
<td>[[file:NotePad.PNG|link=]]</td> | <td>[[file:NotePad.PNG|link=]]</td> | ||
Line 266: | Line 266: | ||
</table> | </table> | ||
</td> | </td> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</tr> | </tr> | ||
</table> | </table> | ||
Line 285: | Line 279: | ||
...which will produce the message "'''You are running late!'''" from the '''Message Popup Rule''' settings shown above. | ...which will produce the message "'''You are running late!'''" from the '''Message Popup Rule''' settings shown above. | ||
<br> | <br> | ||
− | <table cellpadding= | + | <table cellpadding=4 bgcolor="Aquamarine"> |
<tr valign="top"> | <tr valign="top"> | ||
<td>[[file:LinkWiki.PNG|link=]]</td> | <td>[[file:LinkWiki.PNG|link=]]</td> | ||
Line 301: | Line 295: | ||
='''Alternatives to the Message Popup Rule'''= | ='''Alternatives to the Message Popup Rule'''= | ||
− | <table cellpadding= | + | <table cellpadding=4 bgcolor=#ffffff> |
<tr valign="top"> | <tr valign="top"> | ||
<td width="58">[[file:RulesWiki.PNG|link=]]</td> | <td width="58">[[file:RulesWiki.PNG|link=]]</td> | ||
Line 313: | Line 307: | ||
='''Related Links'''= | ='''Related Links'''= | ||
− | <table cellpadding= | + | <table cellpadding=4 bgcolor=#ffffff> |
<tr valign="top"> | <tr valign="top"> | ||
<td>[[file:LinkWiki.PNG|link=]]</td> | <td>[[file:LinkWiki.PNG|link=]]</td> | ||
Line 337: | Line 331: | ||
='''Trainz Wiki'''= | ='''Trainz Wiki'''= | ||
− | <table cellpadding= | + | <table cellpadding=4 bgcolor=#ffffff> |
<tr valign="top"> | <tr valign="top"> | ||
<td>[[file:TrainzWiki.png|link=]]</td> | <td>[[file:TrainzWiki.png|link=]]</td> |
Revision as of 09:50, 23 March 2022
The information in this Wiki Page applies to TANE, TRS19, Trainz Plus and TRS22. This page describes how to configure the Message Popup Rule.
For examples of how to use this rule in Sessions see the Trainz Wiki Page at:- |
Contents |
In Summary: | |
The Message Popup Rule is a Trainz Session Rule that creates onscreen messages for users in Driver Mode. | |
The rule provides you with three different ways of creating an onscreen message:-
|
The Message Popup Rule is added to a Session and configured using the Session Editor in Surveyor. The rule will open a browser window on the screen in Driver Mode that will remain on the screen until it is closed by the user or by another rule. There are three ways the message window can be created.
- with a HTML (Web) Page
- with a Custom Message
- with a String Table Message
Using a HTML Page
The settings shown in this example will direct Trainz to load the message from a HTML file in a HTML asset.
|
|
Using a Custom Message
The settings shown in this example will direct Trainz to load the message from text entered in the Custom Message box.
|
The custom message popup created by the example shown above |
|
For information on how to create your own Message Popup Icons, see the Trainz Wiki Page at:- |
Using a String-Table Message
The settings shown in this example will direct Trainz to load the message from text stored in the config.txt string table of a specified HTML asset.
|
For example, the config.txt file of the asset General Purpose Session HTML contains the following:-
string-table { html_warning_late "You are running late!" }
...which will produce the message "You are running late!" from the Message Popup Rule settings shown above.
For more information, see the Trainz Wiki Page at:- |
Alternatives to the Message Popup Rule
There are other HTML message window rules that are alternatives to the Message Popup rule. A few possibilities are:- |
Related Links
Trainz Wiki
More Tutorials and Guides to Using Trainz |
This page was created by Trainz user pware in April 2018 and was last updated as shown below.