From 425ac20ad1773dca6b07e4a9d2a75e18cb57eadf Mon Sep 17 00:00:00 2001 From: Sidi Liang <1467329765@qq.com> Date: Mon, 16 Aug 2021 20:13:47 +0800 Subject: [PATCH] Engine: Bug fix --- Nasal/SmartInstruments.nas | 3 ++- Nasal/engine.nas | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Nasal/SmartInstruments.nas b/Nasal/SmartInstruments.nas index c8bfb54..d86ec89 100644 --- a/Nasal/SmartInstruments.nas +++ b/Nasal/SmartInstruments.nas @@ -58,7 +58,8 @@ var SmartInstruments = { .setFont("ExoRegular-ymMe.ttf") # Fonts are loaded either from $AIRCRAFT_DIR/Fonts or $FG_ROOT/Fonts .setFontSize(50) # Set fontsize and optionally character aspect ratio .setColor(1,0,0) # Text color - .setText("WARNING MESSAGE"); + .setText("WARNING MESSAGE") + .hide(); #//speedometer m.speedometer = m.group.createChild("text", "optional-id-for element") .setTranslation(1205, 380) # The origin is in the top left corner diff --git a/Nasal/engine.nas b/Nasal/engine.nas index c3dbf1a..5c3dc11 100644 --- a/Nasal/engine.nas +++ b/Nasal/engine.nas @@ -229,7 +229,7 @@ var Engine = { outputForce(me.outputForce * N2LBS); if(me.errorMessage){ - smartInstruments.smartInstruments.showWarningMessage(err); + smartInstruments.smartInstruments.showWarningMessage(me.errorMessage); }else{ smartInstruments.smartInstruments.hideWarningMessage(); }