mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-19 04:52:12 +01:00
OP-1435 Add_more_info_PFD Changes in panel functions + removed spaces
This commit is contained in:
parent
81999ced23
commit
fd9700b578
@ -30,50 +30,38 @@ Item {
|
||||
function close_panels(){
|
||||
if (show_panels == true)
|
||||
show_panels = false;
|
||||
rc_input_bg.z = 10
|
||||
battery_bg.z = 20
|
||||
oplm_bg.z = 30
|
||||
system_bg.z = 40
|
||||
}
|
||||
|
||||
function hide_display_rcinput(){
|
||||
if (show_panels == false)
|
||||
show_panels = true;
|
||||
else
|
||||
rc_input_bg.z = 10
|
||||
battery_bg.z = -1
|
||||
oplm_bg.z = -1
|
||||
system_bg.z = -1
|
||||
show_panels = true;
|
||||
rc_input_bg.z = 10
|
||||
battery_bg.z = -1
|
||||
oplm_bg.z = -1
|
||||
system_bg.z = -1
|
||||
}
|
||||
|
||||
function hide_display_battery(){
|
||||
if (show_panels == false)
|
||||
show_panels = true;
|
||||
else
|
||||
rc_input_bg.z = -1
|
||||
battery_bg.z = 20
|
||||
oplm_bg.z = -1
|
||||
system_bg.z = -1
|
||||
show_panels = true;
|
||||
rc_input_bg.z = 10
|
||||
battery_bg.z = 20
|
||||
oplm_bg.z = -1
|
||||
system_bg.z = -1
|
||||
}
|
||||
|
||||
function hide_display_oplink(){
|
||||
if (show_panels == false)
|
||||
show_panels = true;
|
||||
else
|
||||
rc_input_bg.z = -1
|
||||
battery_bg.z = -1
|
||||
oplm_bg.z = 30
|
||||
system_bg.z = -1
|
||||
show_panels = true;
|
||||
rc_input_bg.z = 10
|
||||
battery_bg.z = 20
|
||||
oplm_bg.z = 30
|
||||
system_bg.z = -1
|
||||
}
|
||||
|
||||
function hide_display_system(){
|
||||
if (show_panels == false)
|
||||
show_panels = true;
|
||||
else
|
||||
rc_input_bg.z = -1
|
||||
battery_bg.z = -1
|
||||
oplm_bg.z = -1
|
||||
system_bg.z = 40
|
||||
show_panels = true;
|
||||
rc_input_bg.z = 10
|
||||
battery_bg.z = 20
|
||||
oplm_bg.z = 30
|
||||
system_bg.z = 40
|
||||
}
|
||||
|
||||
// Uninitialised, Ok, Warning, Critical, Error
|
||||
@ -200,7 +188,6 @@ Item {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Rc-Input panel
|
||||
//
|
||||
|
@ -88,7 +88,6 @@ Rectangle {
|
||||
sceneSize: sceneItem.viewportSize
|
||||
}
|
||||
|
||||
|
||||
Warnings {
|
||||
anchors.fill: parent
|
||||
sceneSize: sceneItem.viewportSize
|
||||
|
Loading…
x
Reference in New Issue
Block a user