Skip to content

Commit

Permalink
FIXED: MCP altitude window is not lit up without power anymore
Browse files Browse the repository at this point in the history
fixed #251
  • Loading branch information
kimlada committed Nov 3, 2022
1 parent a86ab77 commit bce4705
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 74 deletions.
13 changes: 13 additions & 0 deletions ModelBehaviorDefs/Heavy/Components/Electrical/Utility.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1809,4 +1809,17 @@
</UseTemplate>
</Template>

<Template Name="HEAVY_SCREEN_Emissive_Template">
<Parameters Type="Defaults">
<ALT_CODE>s0 l0 0 &gt; sp1 (A:LIGHT POTENTIOMETER:31, Percent over 100) 0 (L:XMLVAR_LightMasterActive) l1 and ?</ALT_CODE>
<EMISSIVE_CODE>0.5</EMISSIVE_CODE>
<NODE_ID>SCREEN_#NAME#</NODE_ID>
<DONT_APPEND_ID>TRUE</DONT_APPEND_ID>
</Parameters>

<UseTemplate Name="ASOBO_GT_Helper_Suffix_ID_Appender">
<TEMPLATE_TO_CALL>ASOBO_GT_Component_Emissive_Gauge</TEMPLATE_TO_CALL>
</UseTemplate>
</Template>

</ModelBehaviors>
20 changes: 17 additions & 3 deletions SimObjects/Airplanes/Asobo_B787_10/model/B787_10_interior.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2202,9 +2202,23 @@

<!-- NOTE: Holds screens of cockpit -->
<Component ID="Screens">
<Parameters Type="Defaults">
<ALT_CODE>(A:LIGHT POTENTIOMETER:31, Percent over 100) 0 (L:XMLVAR_LightMasterActive) ?</ALT_CODE>
</Parameters>
<Component ID="Mode_Control_Panel">
<UseTemplate Name="HEAVY_SCREEN_Emissive_Template">
<NAME>IAS</NAME>
</UseTemplate>

<UseTemplate Name="HEAVY_SCREEN_Emissive_Template">
<NAME>HDG</NAME>
</UseTemplate>

<UseTemplate Name="HEAVY_SCREEN_Emissive_Template">
<NAME>VSPEED</NAME>
</UseTemplate>

<UseTemplate Name="HEAVY_SCREEN_Emissive_Template">
<NAME>ALT</NAME>
</UseTemplate>
</Component>
</Component>
</Component>

Expand Down
140 changes: 70 additions & 70 deletions layout.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@
"size": 713,
"date": 133105426708317440
},
{
"path": "html_ui/B78XH/Managers/FMCMessagesManager.js",
"size": 1061,
"date": 133105426708327410
},
{
"path": "html_ui/B78XH/Directors/SpeedDirector.js",
"size": 18791,
Expand Down Expand Up @@ -120,11 +125,6 @@
"size": 487,
"date": 133105426708347360
},
{
"path": "html_ui/B78XH/Managers/FMCMessagesManager.js",
"size": 1061,
"date": 133105426708327410
},
{
"path": "html_ui/Heavy/Enums/B78XH_EICAS_Messages.js",
"size": 108237,
Expand All @@ -135,16 +135,16 @@
"size": 4155,
"date": 133105426708486980
},
{
"path": "html_ui/Heavy/fonts/Heavy787FMC.otf",
"size": 9672,
"date": 133105426708506930
},
{
"path": "html_ui/Heavy/libs/hdlogger.js",
"size": 108888,
"date": 133105426708516900
},
{
"path": "html_ui/Heavy/fonts/Heavy787FMC.otf",
"size": 9672,
"date": 133105426708506930
},
{
"path": "html_ui/Heavy/libs/hdsdk.js",
"size": 92962,
Expand Down Expand Up @@ -175,31 +175,6 @@
"size": 1484,
"date": 133105426708496940
},
{
"path": "html_ui/WTPages/WTLibs/DataStore.js",
"size": 4219,
"date": 133105426708903620
},
{
"path": "html_ui/WTPages/WTLibs/LzUtf8.js",
"size": 32045,
"date": 133105426708903620
},
{
"path": "html_ui/WTPages/WTLibs/wtsdk.js",
"size": 270867,
"date": 133105426708933570
},
{
"path": "html_ui/WTPages/WTLibs/WT_GCMath.js",
"size": 52924,
"date": 133105426708903620
},
{
"path": "html_ui/WTPages/WTLibs/WT_SimPlaneMod.js",
"size": 675,
"date": 133105426708913620
},
{
"path": "html_ui/WTPages/Autopilot/AutopilotMath.js",
"size": 9673,
Expand Down Expand Up @@ -246,9 +221,29 @@
"date": 133105426707719020
},
{
"path": "ModelBehaviorDefs/Heavy/Components/Index.xml",
"size": 87,
"date": 133106624743366960
"path": "html_ui/WTPages/WTLibs/DataStore.js",
"size": 4219,
"date": 133105426708903620
},
{
"path": "html_ui/WTPages/WTLibs/LzUtf8.js",
"size": 32045,
"date": 133105426708903620
},
{
"path": "html_ui/WTPages/WTLibs/wtsdk.js",
"size": 270867,
"date": 133105426708933570
},
{
"path": "html_ui/WTPages/WTLibs/WT_GCMath.js",
"size": 52924,
"date": 133105426708903620
},
{
"path": "html_ui/WTPages/WTLibs/WT_SimPlaneMod.js",
"size": 675,
"date": 133105426708913620
},
{
"path": "ModelBehaviorDefs/Heavy/Airliner/Common.xml",
Expand All @@ -260,6 +255,11 @@
"size": 77,
"date": 133105426707738980
},
{
"path": "ModelBehaviorDefs/Heavy/Components/Index.xml",
"size": 87,
"date": 133106624743366960
},
{
"path": "ModelBehaviorDefs/Heavy/Extensions/Animations.xml",
"size": 1052,
Expand Down Expand Up @@ -322,24 +322,24 @@
},
{
"path": "ModelBehaviorDefs/Heavy/Components/Electrical/Utility.xml",
"size": 83460,
"date": 133119181859219970
"size": 84050,
"date": 133119195393299470
},
{
"path": "SimObjects/Airplanes/Asobo_B787_10/model/B787_10_interior.xml",
"size": 109364,
"date": 133119164875971920
},
{
"path": "SimObjects/Airplanes/Asobo_B787_10/panel/B78XH-wasm.wasm",
"size": 1447642,
"date": 133105426708287520
"size": 109849,
"date": 133119191385481060
},
{
"path": "SimObjects/Airplanes/Asobo_B787_10/model/model.CFG",
"size": 674,
"date": 133105473082351100
},
{
"path": "SimObjects/Airplanes/Asobo_B787_10/panel/B78XH-wasm.wasm",
"size": 1447642,
"date": 133105426708287520
},
{
"path": "SimObjects/Airplanes/Asobo_B787_10/panel/PANEL.CFG",
"size": 2764,
Expand Down Expand Up @@ -421,13 +421,13 @@
"date": 133105426708367300
},
{
"path": "html_ui/HPages/VCockpit/Instruments/Airliners/Shared/MFD/NDInfo.js",
"size": 19552,
"path": "html_ui/HPages/VCockpit/Instruments/Airliners/Shared/PFD/AttitudeIndicator.js",
"size": 45542,
"date": 133105426708377280
},
{
"path": "html_ui/HPages/VCockpit/Instruments/Airliners/Shared/PFD/AttitudeIndicator.js",
"size": 45542,
"path": "html_ui/HPages/VCockpit/Instruments/Airliners/Shared/MFD/NDInfo.js",
"size": 19552,
"date": 133105426708377280
},
{
Expand All @@ -441,13 +441,13 @@
"date": 133105426708417170
},
{
"path": "html_ui/HPages/VCockpit/Instruments/Shared/Map/Svg/SvgCityManager.js",
"size": 11355,
"path": "html_ui/HPages/VCockpit/Instruments/Shared/Map/Svg/SvgCityElement.js",
"size": 9113,
"date": 133105426708417170
},
{
"path": "html_ui/HPages/VCockpit/Instruments/Shared/Map/Svg/SvgCityElement.js",
"size": 9113,
"path": "html_ui/HPages/VCockpit/Instruments/Shared/Map/Svg/SvgCityManager.js",
"size": 11355,
"date": 133105426708417170
},
{
Expand Down Expand Up @@ -596,13 +596,13 @@
"date": 133105426708856000
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B787_10/PFD/B787_10_PFD.js",
"size": 38244,
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B787_10/SAI/B787_10_SAI.css",
"size": 2216,
"date": 133105426708856000
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B787_10/SAI/B787_10_SAI.css",
"size": 2216,
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B787_10/PFD/B787_10_PFD.js",
"size": 38244,
"date": 133105426708856000
},
{
Expand Down Expand Up @@ -676,12 +676,12 @@
"date": 133105426708616640
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B787_10/MFD/Images/ICON_MAP_AIRPORT_NON_TOWERED_SERVICED_PINK.png",
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B787_10/MFD/Images/ICON_MAP_AIRPORT_PRIVATE_PINK.png",
"size": 3683,
"date": 133105426708626610
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B787_10/MFD/Images/ICON_MAP_AIRPORT_PRIVATE_PINK.png",
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B787_10/MFD/Images/ICON_MAP_AIRPORT_NON_TOWERED_SERVICED_PINK.png",
"size": 3683,
"date": 133105426708626610
},
Expand Down Expand Up @@ -820,16 +820,16 @@
"size": 2424,
"date": 133105426708696420
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B787_10/MFD/Images/ICON_MAP_TOC.png",
"size": 3025,
"date": 133105426708696420
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B787_10/MFD/Images/ICON_MAP_TOC.svg",
"size": 537,
"date": 133105426708706400
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B787_10/MFD/Images/ICON_MAP_TOC.png",
"size": 3025,
"date": 133105426708696420
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B787_10/MFD/Images/ICON_MAP_TOD.png",
"size": 3025,
Expand Down Expand Up @@ -881,13 +881,13 @@
"date": 133105426708726340
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B787_10/MFD/Images/ICON_MAP_VOR_DME_FLIGHTPLAN.svg",
"size": 2334,
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B787_10/MFD/Images/ICON_MAP_VOR_DME_FLIGHTPLAN.png",
"size": 2747,
"date": 133105426708736320
},
{
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B787_10/MFD/Images/ICON_MAP_VOR_DME_FLIGHTPLAN.png",
"size": 2747,
"path": "html_ui/Pages/VCockpit/Instruments/Airliners/B787_10/MFD/Images/ICON_MAP_VOR_DME_FLIGHTPLAN.svg",
"size": 2334,
"date": 133105426708736320
},
{
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
"OlderHistory": ""
}
},
"total_package_size": "00000000000022579680"
"total_package_size": "00000000000022580755"
}

0 comments on commit bce4705

Please sign in to comment.