1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-31 16:52:10 +01:00

OP-1435 Add_more_info_PFD Changes in panel functions + removed spaces

This commit is contained in:
Laurent Lalanne 2014-09-02 01:28:27 +02:00
parent 81999ced23
commit fd9700b578
2 changed files with 20 additions and 34 deletions

View File

@ -30,50 +30,38 @@ Item {
function close_panels(){ function close_panels(){
if (show_panels == true) if (show_panels == true)
show_panels = false; show_panels = false;
rc_input_bg.z = 10
battery_bg.z = 20
oplm_bg.z = 30
system_bg.z = 40
} }
function hide_display_rcinput(){ function hide_display_rcinput(){
if (show_panels == false) show_panels = true;
show_panels = true; rc_input_bg.z = 10
else battery_bg.z = -1
rc_input_bg.z = 10 oplm_bg.z = -1
battery_bg.z = -1 system_bg.z = -1
oplm_bg.z = -1
system_bg.z = -1
} }
function hide_display_battery(){ function hide_display_battery(){
if (show_panels == false) show_panels = true;
show_panels = true; rc_input_bg.z = 10
else battery_bg.z = 20
rc_input_bg.z = -1 oplm_bg.z = -1
battery_bg.z = 20 system_bg.z = -1
oplm_bg.z = -1
system_bg.z = -1
} }
function hide_display_oplink(){ function hide_display_oplink(){
if (show_panels == false) show_panels = true;
show_panels = true; rc_input_bg.z = 10
else battery_bg.z = 20
rc_input_bg.z = -1 oplm_bg.z = 30
battery_bg.z = -1 system_bg.z = -1
oplm_bg.z = 30
system_bg.z = -1
} }
function hide_display_system(){ function hide_display_system(){
if (show_panels == false) show_panels = true;
show_panels = true; rc_input_bg.z = 10
else battery_bg.z = 20
rc_input_bg.z = -1 oplm_bg.z = 30
battery_bg.z = -1 system_bg.z = 40
oplm_bg.z = -1
system_bg.z = 40
} }
// Uninitialised, Ok, Warning, Critical, Error // Uninitialised, Ok, Warning, Critical, Error
@ -200,7 +188,6 @@ Item {
} }
} }
// //
// Rc-Input panel // Rc-Input panel
// //

View File

@ -88,7 +88,6 @@ Rectangle {
sceneSize: sceneItem.viewportSize sceneSize: sceneItem.viewportSize
} }
Warnings { Warnings {
anchors.fill: parent anchors.fill: parent
sceneSize: sceneItem.viewportSize sceneSize: sceneItem.viewportSize