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:
parent
81999ced23
commit
fd9700b578
@ -30,16 +30,10 @@ 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;
|
||||||
else
|
|
||||||
rc_input_bg.z = 10
|
rc_input_bg.z = 10
|
||||||
battery_bg.z = -1
|
battery_bg.z = -1
|
||||||
oplm_bg.z = -1
|
oplm_bg.z = -1
|
||||||
@ -47,32 +41,26 @@ Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function hide_display_battery(){
|
function hide_display_battery(){
|
||||||
if (show_panels == false)
|
|
||||||
show_panels = true;
|
show_panels = true;
|
||||||
else
|
rc_input_bg.z = 10
|
||||||
rc_input_bg.z = -1
|
|
||||||
battery_bg.z = 20
|
battery_bg.z = 20
|
||||||
oplm_bg.z = -1
|
oplm_bg.z = -1
|
||||||
system_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;
|
||||||
else
|
rc_input_bg.z = 10
|
||||||
rc_input_bg.z = -1
|
battery_bg.z = 20
|
||||||
battery_bg.z = -1
|
|
||||||
oplm_bg.z = 30
|
oplm_bg.z = 30
|
||||||
system_bg.z = -1
|
system_bg.z = -1
|
||||||
}
|
}
|
||||||
|
|
||||||
function hide_display_system(){
|
function hide_display_system(){
|
||||||
if (show_panels == false)
|
|
||||||
show_panels = true;
|
show_panels = true;
|
||||||
else
|
rc_input_bg.z = 10
|
||||||
rc_input_bg.z = -1
|
battery_bg.z = 20
|
||||||
battery_bg.z = -1
|
oplm_bg.z = 30
|
||||||
oplm_bg.z = -1
|
|
||||||
system_bg.z = 40
|
system_bg.z = 40
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -200,7 +188,6 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Rc-Input panel
|
// Rc-Input panel
|
||||||
//
|
//
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user