From dcd95e7ab56db22d9a815fdee8992f6bb8f57a4f Mon Sep 17 00:00:00 2001 From: cvomacka Date: Tue, 19 Oct 2021 17:56:53 -0400 Subject: [PATCH 01/17] Converted text strokes to text shadows. --- .../Airliners/Shared/WT/AirspeedIndicator.js | 9 +++------ .../Airliners/Shared/WT/AltimeterIndicator.js | 12 ++++-------- .../Airliners/Shared/WT/AttitudeIndicator.js | 3 +-- .../Instruments/Airliners/CJ4/PFD/CJ4_PFD.css | 2 +- 4 files changed, 9 insertions(+), 17 deletions(-) diff --git a/src/workingtitle-vcockpits-instruments-airliners/html_ui/Pages/VCockpit/Instruments/Airliners/Shared/WT/AirspeedIndicator.js b/src/workingtitle-vcockpits-instruments-airliners/html_ui/Pages/VCockpit/Instruments/Airliners/Shared/WT/AirspeedIndicator.js index e3e3356d5..d4ac14e65 100644 --- a/src/workingtitle-vcockpits-instruments-airliners/html_ui/Pages/VCockpit/Instruments/Airliners/Shared/WT/AirspeedIndicator.js +++ b/src/workingtitle-vcockpits-instruments-airliners/html_ui/Pages/VCockpit/Instruments/Airliners/Shared/WT/AirspeedIndicator.js @@ -141,8 +141,7 @@ class Jet_PFD_AirspeedIndicator extends HTMLElement { this.machPrefixSVG.setAttribute("font-size", (this.fontSize * 1.1).toString()); this.machPrefixSVG.setAttribute("font-family", "Roboto-Light"); this.machPrefixSVG.setAttribute("text-anchor", "end"); - this.machPrefixSVG.setAttribute("stroke", "black"); - this.machPrefixSVG.setAttribute("stroke-width", "0.6px"); + this.machPrefixSVG.style.textShadow = "1px 1px black, -1px -1px black, 1px -1px black, -1px 1px black"; this.machPrefixSVG.setAttribute("alignment-baseline", "top"); this.rootGroup.appendChild(this.machPrefixSVG); this.machPrefixdecimalSVG = document.createElementNS(Avionics.SVG.NS, "text"); @@ -153,8 +152,7 @@ class Jet_PFD_AirspeedIndicator extends HTMLElement { this.machPrefixdecimalSVG.setAttribute("font-size", (this.fontSize * 2.3).toString()); this.machPrefixdecimalSVG.setAttribute("font-family", "Roboto-Light"); this.machPrefixdecimalSVG.setAttribute("text-anchor", "end"); - this.machPrefixdecimalSVG.setAttribute("stroke", "black"); - this.machPrefixdecimalSVG.setAttribute("stroke-width", "0.85px"); + this.machPrefixdecimalSVG.style.textShadow = "1px 1px black, -1px -1px black, 1px -1px black, -1px 1px black"; this.machPrefixdecimalSVG.setAttribute("alignment-baseline", "top"); this.rootGroup.appendChild(this.machPrefixdecimalSVG); this.machValueSVG = document.createElementNS(Avionics.SVG.NS, "text"); @@ -162,8 +160,7 @@ class Jet_PFD_AirspeedIndicator extends HTMLElement { this.machValueSVG.setAttribute("x", (posX - 16).toString()); this.machValueSVG.setAttribute("y", (posY + 30).toString()); this.machValueSVG.setAttribute("fill", "var(--green)"); - this.machValueSVG.setAttribute("stroke", "black"); - this.machValueSVG.setAttribute("stroke-width", "0.85px"); + this.machValueSVG.style.textShadow = "1px 1px black, -1px -1px black, 1px -1px black, -1px 1px black"; this.machValueSVG.setAttribute("font-size", (this.fontSize * 1.2).toString()); this.machValueSVG.setAttribute("font-family", "Roboto-Light"); this.machValueSVG.setAttribute("text-anchor", "start"); diff --git a/src/workingtitle-vcockpits-instruments-airliners/html_ui/Pages/VCockpit/Instruments/Airliners/Shared/WT/AltimeterIndicator.js b/src/workingtitle-vcockpits-instruments-airliners/html_ui/Pages/VCockpit/Instruments/Airliners/Shared/WT/AltimeterIndicator.js index 4d60902c7..a0d35acd7 100644 --- a/src/workingtitle-vcockpits-instruments-airliners/html_ui/Pages/VCockpit/Instruments/Airliners/Shared/WT/AltimeterIndicator.js +++ b/src/workingtitle-vcockpits-instruments-airliners/html_ui/Pages/VCockpit/Instruments/Airliners/Shared/WT/AltimeterIndicator.js @@ -182,8 +182,7 @@ class Jet_PFD_AltimeterIndicator extends HTMLElement { this.pressureSVGLeftPart.setAttribute("x", (posX - 59).toString()); this.pressureSVGLeftPart.setAttribute("y", (posY + 30).toString()); this.pressureSVGLeftPart.setAttribute("fill", "var(--cyan)"); - this.pressureSVGLeftPart.setAttribute("stroke", "black"); - this.pressureSVGLeftPart.setAttribute("stroke-width", "0.85px"); + this.pressureSVGLeftPart.style.textShadow = "1px 1px black, -1px -1px black, 1px -1px black, -1px 1px black"; this.pressureSVGLeftPart.setAttribute("font-size", (this.fontSize * 1.2).toString()); this.pressureSVGLeftPart.setAttribute("font-family", "Roboto-Light"); this.pressureSVGLeftPart.setAttribute("text-anchor", "center"); @@ -196,8 +195,7 @@ class Jet_PFD_AltimeterIndicator extends HTMLElement { this.pressureSVGCenterPart.setAttribute("x", (posX - 39).toString()); this.pressureSVGCenterPart.setAttribute("y", (posY + 30).toString()); this.pressureSVGCenterPart.setAttribute("fill", "var(--cyan)"); - this.pressureSVGCenterPart.setAttribute("stroke", "black"); - this.pressureSVGCenterPart.setAttribute("stroke-width", "0.85px"); + this.pressureSVGCenterPart.style.textShadow = "1px 1px black, -1px -1px black, 1px -1px black, -1px 1px black"; this.pressureSVGCenterPart.setAttribute("font-size", (this.fontSize * 2.3).toString()); this.pressureSVGCenterPart.setAttribute("font-family", "Roboto-Light"); this.pressureSVGCenterPart.setAttribute("text-anchor", "center"); @@ -210,8 +208,7 @@ class Jet_PFD_AltimeterIndicator extends HTMLElement { this.pressureSVGRightPart.setAttribute("x", (posX - 20).toString()); this.pressureSVGRightPart.setAttribute("y", (posY + 30).toString()); this.pressureSVGRightPart.setAttribute("fill", "var(--cyan)"); - this.pressureSVGRightPart.setAttribute("stroke", "black"); - this.pressureSVGRightPart.setAttribute("stroke-width", "0.85px"); + this.pressureSVGRightPart.style.textShadow = "1px 1px black, -1px -1px black, 1px -1px black, -1px 1px black"; this.pressureSVGRightPart.setAttribute("font-size", (this.fontSize * 1.2).toString()); this.pressureSVGRightPart.setAttribute("font-family", "Roboto-Light"); this.pressureSVGRightPart.setAttribute("text-anchor", "center"); @@ -224,8 +221,7 @@ class Jet_PFD_AltimeterIndicator extends HTMLElement { this.pressureSVGUnits.setAttribute("x", (posX + 16).toString()); this.pressureSVGUnits.setAttribute("y", (posY + 30).toString()); this.pressureSVGUnits.setAttribute("fill", "var(--cyan)"); - this.pressureSVGUnits.setAttribute("stroke", "black"); - this.pressureSVGUnits.setAttribute("stroke-width", "0.8px"); + this.pressureSVGUnits.style.textShadow = "1px 1px black, -1px -1px black, 1px -1px black, -1px 1px black"; this.pressureSVGUnits.setAttribute("font-size", (this.fontSize * 1.0).toString()); this.pressureSVGUnits.setAttribute("font-family", "Roboto-Light"); this.pressureSVGUnits.setAttribute("text-anchor", "left"); diff --git a/src/workingtitle-vcockpits-instruments-airliners/html_ui/Pages/VCockpit/Instruments/Airliners/Shared/WT/AttitudeIndicator.js b/src/workingtitle-vcockpits-instruments-airliners/html_ui/Pages/VCockpit/Instruments/Airliners/Shared/WT/AttitudeIndicator.js index 94b70d267..7ed46ce43 100644 --- a/src/workingtitle-vcockpits-instruments-airliners/html_ui/Pages/VCockpit/Instruments/Airliners/Shared/WT/AttitudeIndicator.js +++ b/src/workingtitle-vcockpits-instruments-airliners/html_ui/Pages/VCockpit/Instruments/Airliners/Shared/WT/AttitudeIndicator.js @@ -450,8 +450,7 @@ class Jet_PFD_AttitudeIndicator extends HTMLElement { this.radioAltitude.setAttribute("font-size", "32"); this.radioAltitude.setAttribute("font-family", "Roboto-Bold"); this.radioAltitude.setAttribute("fill", "var(--green)"); - this.radioAltitude.setAttribute("stroke", "black"); - this.radioAltitude.setAttribute("stroke-width", "0.8px"); + this.radioAltitude.style.textShadow = "1px 1px black, -1px -1px black, 1px -1px black, -1px 1px black"; this.radioAltitudeGroup.appendChild(this.radioAltitude); } } diff --git a/src/workingtitle-vcockpits-instruments-cj4/html_ui/Pages/VCockpit/Instruments/Airliners/CJ4/PFD/CJ4_PFD.css b/src/workingtitle-vcockpits-instruments-cj4/html_ui/Pages/VCockpit/Instruments/Airliners/CJ4/PFD/CJ4_PFD.css index 4ab982c30..47bee3290 100644 --- a/src/workingtitle-vcockpits-instruments-cj4/html_ui/Pages/VCockpit/Instruments/Airliners/CJ4/PFD/CJ4_PFD.css +++ b/src/workingtitle-vcockpits-instruments-cj4/html_ui/Pages/VCockpit/Instruments/Airliners/CJ4/PFD/CJ4_PFD.css @@ -207,7 +207,7 @@ cj4-pfd-element #Mainframe #PFD #InstrumentsContainer #VnavAlt { font-size: 26px; color: var(--magenta); font: "Robot-Bold"; - -webkit-text-stroke: 0.85px black; + text-shadow: 1px 1px black, -1px -1px black, 1px -1px black, -1px 1px black; text-align: center; top: 4.6%; left: 85.2%; From da8521a546c4da2332ffae7574ab72338974625d Mon Sep 17 00:00:00 2001 From: dga711 Date: Wed, 20 Oct 2021 14:03:49 +0200 Subject: [PATCH 02/17] fix com audio buttons --- .../ModelBehaviorDefs/Asobo_CJ4/Control.xml | 8 ++++---- .../SimObjects/Airplanes/Asobo_CJ4/model/CJ4_Cockpit.xml | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/workingtitle-aircraft-cj4/ModelBehaviorDefs/Asobo_CJ4/Control.xml b/src/workingtitle-aircraft-cj4/ModelBehaviorDefs/Asobo_CJ4/Control.xml index 0841ce3dd..1a65e1951 100644 --- a/src/workingtitle-aircraft-cj4/ModelBehaviorDefs/Asobo_CJ4/Control.xml +++ b/src/workingtitle-aircraft-cj4/ModelBehaviorDefs/Asobo_CJ4/Control.xml @@ -272,7 +272,7 @@