Skip to content

Commit 7e8448a

Browse files
committed
Automatic merge of T1.5.1-957-g4fd63a327 and 17 pull requests
- Pull request #799 at dfc715e: Consolidated wind simulation - Pull request #839 at d00beb9: First phase of https://blueprints.launchpad.net/or/+spec/additional-cruise-control-parameters - Pull request #876 at f92de76: docs: add source for documents previously on website to source Documentation folder - Pull request #882 at 3ca0eb1: Blueprint/train car operations UI window - Pull request #891 at 9a1d6b2: Auto save - Pull request #892 at 1f5ba4c: Signal Function OPP_SIG_ID_TRAINPATH - Pull request #896 at 5866028: First implementation of https://blueprints.launchpad.net/or/+spec/specific-sounds-for-ai-trains - Pull request #900 at c27f32d: DMI updates - Pull request #903 at 7af1f91: Downloading route content (Github, zip) - Pull request #912 at 596a03a: New Triple Valve Features Vol. 2 - Pull request #919 at 26cc6a8: Added mouse wheel support for controls which can be moved by pressing t… - Pull request #922 at abe2e52: Autopilot for timetable mode - Pull request #923 at 4c27204: Add curve squeal to route - Pull request #929 at a406a69: Add support for common circuit breaker variants - Pull request #939 at 6c8095a: Add KM/HOUR/MIN to Cabview Units - Pull request #940 at f8b5b15: Browser HUD column alignment improvements - Pull request #941 at 50378f6: AI Penalty Lights Fix
19 parents 005a1e8 + 4fd63a3 + dfc715e + d00beb9 + f92de76 + 3ca0eb1 + 9a1d6b2 + 1f5ba4c + 5866028 + c27f32d + 7af1f91 + 596a03a + 26cc6a8 + abe2e52 + 4c27204 + a406a69 + 6c8095a + f8b5b15 + 50378f6 commit 7e8448a

File tree

1 file changed

+9
-2
lines changed
  • Source/RunActivity/Viewer3D/WebServices/Web/HUD

1 file changed

+9
-2
lines changed

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ function ApiHeadUpDisplay() {
8686
DebugWidthTofix = ['primitives','Camera'],
8787
// Force information
8888
ForceColSpanTo15 = ['Wind Speed'],
89-
ForceColSpanTo4 = ['(Simple adhesion model)','Dynamic brake'],
90-
ForceColSpanTo3 = ['Axle out force','Loco Adhesion','Wagon Adhesion'],
89+
ForceColSpanTo4 = ['(Advanced adhesion model)', '(Simple adhesion model)'],
90+
ForceColSpanTo3 = ['Wheel slip (Thres)', 'Conditions', 'Axle drive force', 'Axle brake force', 'Number of substeps', 'Wheel Adh. (Max)',
91+
'Axle out force', 'Comp Axle out force', 'Wheel speed (Slip)', 'Wheel ang. pos.', 'Loco Adhesion', 'Wagon Adhesion'],
9192
// Brake information
9293
BrakeColSpanTo2 = ['PlayerLoco','Brake Sys Vol'];
9394

@@ -96,6 +97,7 @@ function ApiHeadUpDisplay() {
9697
var colspanmax = false,
9798
colspan10 = false,
9899
colspan3 = false,
100+
colspan2 = false,
99101
fixwidth = false,
100102
locomotivetype = false;
101103

@@ -126,6 +128,10 @@ function ApiHeadUpDisplay() {
126128
locomotivetype = true;
127129
Str += "<td colspan='2' >" + obj.extraTable.values[next] + "</td>";
128130
}
131+
else if (colspan2)
132+
{
133+
Str += "<td class='td_nowrap' colspan='2' >" + obj.extraTable.values[next] + "</td>";
134+
}
129135
else if (colspan3 || BrakeColSpanTo2.indexOf(obj.extraTable.values[next]) !== -1){
130136
Str += "<td colspan='3' >" + obj.extraTable.values[next] + "</td>";
131137
}
@@ -144,6 +150,7 @@ function ApiHeadUpDisplay() {
144150
}
145151
else if (ForceColSpanTo3.indexOf(obj.extraTable.values[next]) !== -1 ){
146152
Str += "<td colspan='3' >" + obj.extraTable.values[next] + "</td>";
153+
colspan2 = true; // data cells in these row span two columns
147154
}
148155
else {
149156
// Apply colspan if required after first col

0 commit comments

Comments
 (0)