Method | Description | |
---|---|---|
ClearInfo ( ) : void |
Hides the labels
|
|
InfoPanel ( ) : System |
Primary constructor for the info panel
|
|
SetInfo ( string name, string>.Dictionary |
Sets the information to display
|
|
SetTrackBlockInfo ( TrackBlock block ) : void |
Sets the text information for a track block
|
|
SetTrainInfo ( ITrain train ) : void |
Sets the text information for a train
|
|
SetTrainYardInfo ( TrackBlock b ) : void |
Displays info about the train yard
|
|
UpdateDisplay ( List |
Updates the display
|
Method | Description | |
---|---|---|
AdjustLabelPositions ( ) : void |
Adjusts the location of the field labels to align nicely
|
|
GetBlockFailureStateString ( TrackBlock block ) : string>.KeyValuePair |
Gets the failure state string for the given track block There are 8 different possible strings, so this chunk of code gets ugly |
public SetInfo ( string name, string>.Dictionary |
||
name | string | |
information | string>.Dictionary | Dictionary of field:value information |
return | void |
public SetTrackBlockInfo ( TrackBlock block ) : void | ||
block | TrackBlock | Track block |
return | void |
public SetTrainInfo ( ITrain train ) : void | ||
train | ITrain | Train |
return | void |
public SetTrainYardInfo ( TrackBlock b ) : void | ||
b | TrackBlock | Track block |
return | void |
public UpdateDisplay ( List |
||
blocks | List |
List of track blocks |
trains | List |
List of trains |
return | void |