Skip to content

Commit 65e0f95

Browse files
authored
Merge pull request #448 from mbm-OR/bugfix/Web-HUD_labels_not_displayed
Bug fix for https://bugs.launchpad.net/or/+bug/1939064. Web-HUD label is not displayed.
2 parents 8b9100d + a1135a2 commit 65e0f95

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

Source/RunActivity/Viewer3D/Popups/HUDWindow.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,6 +1238,7 @@ void TextPageActionsInfo(AITrain thisTrain, TableData table)
12381238

12391239
void TextPageWeather(TableData table)
12401240
{
1241+
TableSetLabelValueColumns(table, 0, 2);
12411242
TextPageHeading(table, Viewer.Catalog.GetString("WEATHER INFORMATION"));
12421243

12431244
TableAddLabelValue(table, Viewer.Catalog.GetString("Visibility"), Viewer.Catalog.GetStringFmt("{0:N0} m", Viewer.Simulator.Weather.FogDistance));
@@ -1250,6 +1251,7 @@ void TextPageWeather(TableData table)
12501251

12511252
void TextPageDebugInfo(TableData table)
12521253
{
1254+
TableSetLabelValueColumns(table, 0, 2);
12531255
TextPageHeading(table, Viewer.Catalog.GetString("DEBUG INFORMATION"));
12541256

12551257
var allocatedBytesPerSecond = AllocatedBytesPerSecCounter == null ? 0 : AllocatedBytesPerSecCounter.NextValue();

Source/RunActivity/Viewer3D/WebServices/Web/HUD/index.html

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
<li><a id="common">Common</a></li>
3434
<li><a id="consist">Consist</a></li>
3535
<li><a id="locomotive">Locomotive</a></li>
36+
<li><a id="power supply">Power Supply</a></li>
3637
<li><a id="brake">Brake</a></li>
3738
<li><a id="force">Force</a></li>
3839
<li><a id="dispatcher">Dispatcher</a></li>
@@ -56,24 +57,24 @@ <h2>Open Rails - Head Up Display</h2>
5657
document.getElementById("locomotive").onclick = function (){
5758
pageNo = 2;
5859
}
59-
document.getElementById("brake").onclick = function (){
60+
document.getElementById("power supply").onclick = function (){
6061
pageNo = 3;
6162
}
62-
document.getElementById("force").onclick = function (){
63+
document.getElementById("brake").onclick = function (){
6364
pageNo = 4;
6465
}
65-
document.getElementById("dispatcher").onclick = function (){
66+
document.getElementById("force").onclick = function (){
6667
pageNo = 5;
6768
}
68-
document.getElementById("weather").onclick = function (){
69+
document.getElementById("dispatcher").onclick = function (){
6970
pageNo = 6;
7071
}
71-
document.getElementById("debug").onclick = function (){
72+
document.getElementById("weather").onclick = function (){
7273
pageNo = 7;
7374
}
75+
document.getElementById("debug").onclick = function (){
76+
pageNo = 8;
77+
}
7478
</script>
7579
</body>
7680
</html>
77-
78-
79-

0 commit comments

Comments
 (0)