Engine: Bug fix

This commit is contained in:
Sidi Liang 2021-08-16 20:13:47 +08:00
parent e6043a1460
commit 425ac20ad1
No known key found for this signature in database
GPG Key ID: 9785F5EECFFA5311
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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();
}