How to Use Message Popup Rule (Applications)

From TrainzOnline
(Difference between revisions)
Jump to: navigation, search
m
m (replaced all <font> and <u> tags with <span style=...> tags, removed all image hyperlinks)
Line 1: Line 1:
The information in this Wiki Page applies to both '''TANE''' and '''TRS19''' and gives examples of how to use the '''Message Popup Rule''' in Sessions. For information of how to configure this rule in '''TRS19/TANE''' see the Trainz Wiki Page [[file:WikiLink.PNG]] '''<span class="plainlinks">[http://online.ts2009.com/mediaWiki/index.php/How_to_Use_Message_Popup_Rule Message Popup Rule]</span>'''
+
The information in this Wiki Page applies to both '''TANE''' and '''TRS19''' and gives examples of how to use the '''Message Popup Rule''' in Sessions. For information of how to configure this rule in '''TRS19/TANE''' see the Trainz Wiki Page [[file:WikiLink.PNG|link=]] '''<span class="plainlinks">[http://online.ts2009.com/mediaWiki/index.php/How_to_Use_Message_Popup_Rule Message Popup Rule]</span>'''
 
<br>
 
<br>
 
__TOC__
 
__TOC__
Line 6: Line 6:
 
<table cellpadding="4" bgcolor=#c1e7e7>
 
<table cellpadding="4" bgcolor=#c1e7e7>
 
<tr valign="top">
 
<tr valign="top">
<td>[[file:DotPoint.JPG]]</td>
+
<td>[[file:DotPoint.JPG|link=]]</td>
<td>The [[file:WikiLink.PNG]] '''[[Session_Rule_List_with_Parameters#Message_Popup_Rule|Message Popup Rule]]''' is a '''TRS19''' and '''T:ANE Session Rule''' that creates onscreen messages for users in '''Driver Mode'''.</td>
+
<td>The [[file:WikiLink.PNG|link=]] '''[[Session_Rule_List_with_Parameters#Message_Popup_Rule|Message Popup Rule]]''' is a '''TRS19''' and '''T:ANE Session Rule''' that creates onscreen messages for users in '''Driver Mode'''.</td>
 
</tr>
 
</tr>
 
<tr valign="top">
 
<tr valign="top">
<td>[[file:DotPoint.JPG]]</td>
+
<td>[[file:DotPoint.JPG|link=]]</td>
<td>The [[file:WikiLink.PNG]] '''[[Session_Rule_List_with_Parameters#Close_Message_Popup_Rule|Close Message Popup Rule]]''' is a '''TRS19''' and '''T:ANE Session Rule''' that closes onscreen messages for users in '''Driver Mode'''.</td>
+
<td>The [[file:WikiLink.PNG|link=]] '''[[Session_Rule_List_with_Parameters#Close_Message_Popup_Rule|Close Message Popup Rule]]''' is a '''TRS19''' and '''T:ANE Session Rule''' that closes onscreen messages for users in '''Driver Mode'''.</td>
 
</tr>
 
</tr>
 
</table>
 
</table>
Line 21: Line 21:
 
<table cellpadding="4" bgcolor=#ffffff>
 
<table cellpadding="4" bgcolor=#ffffff>
 
<tr valign="top">
 
<tr valign="top">
<td width="58">[[file:binoculars.PNG]]</td>
+
<td width="58">[[file:binoculars.PNG|link=]]</td>
<td width="640"><font size="3">'''The Scenario:'''</font><br>
+
<td width="640"><span style="font-size: 17px;">'''The Scenario:'''</span><br>
 
----</td>
 
----</td>
 
</tr>
 
</tr>
Line 30: Line 30:
 
<table cellpadding="4" bgcolor=#ffffff>
 
<table cellpadding="4" bgcolor=#ffffff>
 
<tr valign="top">
 
<tr valign="top">
<td width="58">[[file:RulesWiki.PNG]]</td>
+
<td width="58">[[file:RulesWiki.PNG|link=]]</td>
<td width="640"><font size="3">'''Rules Used:'''</font><br>
+
<td width="640"><span style="font-size: 17px;">'''Rules Used:'''</span><br>
 
----</td>
 
----</td>
 
</tr>
 
</tr>
Line 43: Line 43:
 
<table cellpadding="4" bgcolor=#ffffff>
 
<table cellpadding="4" bgcolor=#ffffff>
 
<tr valign="top">
 
<tr valign="top">
<td width="58">[[file:screenshot.PNG]]</td>
+
<td width="58">[[file:screenshot.PNG|link=]]</td>
<td width="640"><font size="3">'''Session Editor Screenshot:'''</font><br>
+
<td width="640"><span style="font-size: 17px;">'''Session Editor Screenshot:'''</span><br>
 
----</td>
 
----</td>
 
</tr>
 
</tr>
Line 50: Line 50:
 
<table>
 
<table>
 
<tr>
 
<tr>
<td>[[file:Message_Popup.jpg]]</td>
+
<td>[[file:Message_Popup.jpg|link=]]</td>
 
</tr>
 
</tr>
 
</table>
 
</table>
Line 56: Line 56:
 
<table cellpadding="4" bgcolor=#ffffff>
 
<table cellpadding="4" bgcolor=#ffffff>
 
<tr valign="top">
 
<tr valign="top">
<td width="58">[[file:explanation.PNG]]</td>
+
<td width="58">[[file:explanation.PNG|link=]]</td>
<td width="640"><font size="3">'''Description:'''</font><br>
+
<td width="640"><span style="font-size: 17px;">'''Description:'''</span><br>
 
----</td>
 
----</td>
 
</tr>
 
</tr>
Line 72: Line 72:
 
<table cellpadding="4" bgcolor=#ffffff>
 
<table cellpadding="4" bgcolor=#ffffff>
 
<tr valign="top">
 
<tr valign="top">
<td width="58">[[file:binoculars.PNG]]</td>
+
<td width="58">[[file:binoculars.PNG|link=]]</td>
<td width="640"><font size="3">'''The Scenario:'''</font><br>
+
<td width="640"><span style="font-size: 17px;">'''The Scenario:'''</span><br>
 
----</td>
 
----</td>
 
</tr>
 
</tr>
Line 81: Line 81:
 
<table cellpadding="4" bgcolor=#ffffff>
 
<table cellpadding="4" bgcolor=#ffffff>
 
<tr valign="top">
 
<tr valign="top">
<td width="58">[[file:conditions.PNG]]</td>
+
<td width="58">[[file:conditions.PNG|link=]]</td>
<td width="640"><font size="3">'''Preconditions:'''</font><br>
+
<td width="640"><span style="font-size: 17px;">'''Preconditions:'''</span><br>
 
----</td>
 
----</td>
 
</tr>
 
</tr>
Line 90: Line 90:
 
<table cellpadding="4" bgcolor=#ffffff>
 
<table cellpadding="4" bgcolor=#ffffff>
 
<tr valign="top">
 
<tr valign="top">
<td width="58">[[file:RulesWiki.PNG]]</td>
+
<td width="58">[[file:RulesWiki.PNG|link=]]</td>
<td width="640"><font size="3">'''Rules Used:'''</font><br>
+
<td width="640"><span style="font-size: 17px;">'''Rules Used:'''</span><br>
 
----</td>
 
----</td>
 
</tr>
 
</tr>
Line 102: Line 102:
 
<table cellpadding="4" bgcolor=#ffffff>
 
<table cellpadding="4" bgcolor=#ffffff>
 
<tr valign="top">
 
<tr valign="top">
<td width="58">[[file:screenshot.PNG]]</td>
+
<td width="58">[[file:screenshot.PNG|link=]]</td>
<td width="640"><font size="3">'''Session Editor Screenshot:'''</font><br>
+
<td width="640"><span style="font-size: 17px;">'''Session Editor Screenshot:'''</span><br>
 
----</td>
 
----</td>
 
</tr>
 
</tr>
Line 109: Line 109:
 
<table>
 
<table>
 
<tr>
 
<tr>
<td>[[file:Message_Popup2.JPG]]</td>
+
<td>[[file:Message_Popup2.JPG|link=]]</td>
 
</tr>
 
</tr>
 
</table>
 
</table>
Line 115: Line 115:
 
<table cellpadding="4" bgcolor=#ffffff>
 
<table cellpadding="4" bgcolor=#ffffff>
 
<tr valign="top">
 
<tr valign="top">
<td width="58">[[file:explanation.PNG]]</td>
+
<td width="58">[[file:explanation.PNG|link=]]</td>
<td width="640"><font size="3">'''Description:'''</font><br>
+
<td width="640"><span style="font-size: 17px;">'''Description:'''</span><br>
 
----</td>
 
----</td>
 
</tr>
 
</tr>
Line 133: Line 133:
 
<table cellpadding="4" bgcolor=#ffffff>
 
<table cellpadding="4" bgcolor=#ffffff>
 
<tr valign="top">
 
<tr valign="top">
<td>[[file:TrainzWiki.png]]</td>
+
<td>[[file:TrainzWiki.png|link=]]</td>
 
<td>
 
<td>
<font size="3">'''More Tutorials and Guides to Using Trainz'''</font><br>
+
<span style="font-size: 17px;">'''More Tutorials and Guides to Using Trainz'''</span><br>
 
*'''<span class="plainlinks">[http://online.ts2009.com/mediaWiki/index.php/HowTo How to Guides]</span>'''
 
*'''<span class="plainlinks">[http://online.ts2009.com/mediaWiki/index.php/HowTo How to Guides]</span>'''
 
*'''[[Driver Commands List]]'''
 
*'''[[Driver Commands List]]'''

Revision as of 09:26, 6 September 2019

The information in this Wiki Page applies to both TANE and TRS19 and gives examples of how to use the Message Popup Rule in Sessions. For information of how to configure this rule in TRS19/TANE see the Trainz Wiki Page WikiLink.PNG Message Popup Rule

Contents


DotPoint.JPG The WikiLink.PNG Message Popup Rule is a TRS19 and T:ANE Session Rule that creates onscreen messages for users in Driver Mode.
DotPoint.JPG The WikiLink.PNG Close Message Popup Rule is a TRS19 and T:ANE Session Rule that closes onscreen messages for users in Driver Mode.

This page gives practical examples of how these rules can be used in a session to create messages that appear after an event and automatically close after another event.

Application 1: Timed Message

Binoculars.PNG The Scenario:

A Message Popup is activated by a track trigger event and is automatically closed by a timed event.

RulesWiki.PNG Rules Used:


Screenshot.PNG Session Editor Screenshot:

Message Popup.jpg


Explanation.PNG Description:

  • Line 1: Trigger Check The event is triggered when a consist passes over a track trigger but any event could be used, such as a Navigation Point, a TimeCheck, a Wait On ... or Wait For ..., etc. As long as the following rules are child rules of the trigger event.
    • Line 2: Simultaneous List This forces all the following child rules to be executed at the same time. Events such as the Trigger Check that execute their child rules in order would not work in this example because everything else would be forced to wait until the Message Popup has been closed. Using the Simultaneous List Rule avoids this problem. Events that execute their child rules simultaneously would not need the Simultaneous List Rule (see next example).
      • Line 3: Message Popup This places the message window on the screen and waits for it to be closed either manually (by the user) or by another rule.
      • Line 4: Wait This forces a wait for a set time period, in this case 20 seconds but any time interval can be set. At the end of that period the Wait Rule will execute its own set of child rules.
        • Line 5: Close Message Popup The message window is closed.


Application 2: Navigation Point and Train Stopped Event Message

Binoculars.PNG The Scenario:

A Message Popup is activated by a navigation event and is automatically closed by a train stopped event.

Conditions.PNG Preconditions:


RulesWiki.PNG Rules Used:


Screenshot.PNG Session Editor Screenshot:

Message Popup2.JPG


Explanation.PNG Description:

  • Line 1: Wait on Navigation Point The event is triggered when a consist reaches a preset navigation point. This rule executes all its child rules simultaneously so no Simultaneous List Rule is required in this example.
    • Line 2: Message Popup This places the message window on the screen and waits for it to be closed either manually (by the user) or by another rule.
    • Line 3: Wait on Train Stop/Start When the consist comes to a stop then it will execute its own set of child rules.
      • Line 4: Close Message Popup The message window is closed.

In this example, the Close Message Popups Rule could be replaced by lines 2, 3, 4 and 5 from the Timed Message example shown above to produce a new message when the train stops moving and that message would be closed after a set time interval.




Trainz Wiki

TrainzWiki.png

More Tutorials and Guides to Using Trainz

Personal tools