Dashboard: updates

This commit is contained in:
Sidi Liang 2020-08-05 15:07:03 +08:00
parent 63c6b3809e
commit 699699db8b
No known key found for this signature in database
GPG Key ID: 79F0A6B20B72F42F
3 changed files with 6 additions and 5 deletions
Models/Interior/Instruments/Smart
Nasal

File diff suppressed because one or more lines are too long

Before

(image error) Size: 248 KiB

After

(image error) Size: 7.0 KiB

Binary file not shown.

After

(image error) Size: 235 KiB

View File

@ -23,7 +23,8 @@ var SmartInstruments = {
#center info
m.infoImagePath = ["Aircraft/followme_e-tron/Models/Interior/Instruments/Smart/dashboard1.png",
"Aircraft/followme_e-tron/Models/Interior/Instruments/Smart/dashboard2.png",
"Aircraft/followme_e-tron/Models/Interior/Instruments/Smart/dashboard3.png"];
"Aircraft/followme_e-tron/Models/Interior/Instruments/Smart/dashboard3.png",
"Aircraft/followme_e-tron/Models/Interior/Instruments/Smart/dashboard4.png"];
m.infoImageIndex = 0;
m.infoImage = m.group.createChild("image")
.setFile(m.infoImagePath[m.infoImageIndex])
@ -93,14 +94,14 @@ var SmartInstruments = {
initialized: 0,
nextCenterScreen: func(){
if(me.infoImageIndex < 2) me.infoImageIndex += 1;
else if(me.infoImageIndex >= 2) me.infoImageIndex = 0;
if(me.infoImageIndex < 3) me.infoImageIndex += 1;
else if(me.infoImageIndex >= 3) me.infoImageIndex = 0;
me.infoImage.setFile(me.infoImagePath[me.infoImageIndex]);
return me.infoImageIndex;
},
previousCenterScreen: func(){
if(me.infoImageIndex > 0) me.infoImageIndex -= 1;
else if(me.infoImageIndex == 0) me.infoImageIndex = 2;
else if(me.infoImageIndex == 0) me.infoImageIndex = 3;
me.infoImage.setFile(me.infoImagePath[me.infoImageIndex]);
return me.infoImageIndex;
},