mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-26 17:55:21 +03:00
Added previews for Avatar Goggle OSD elements
This commit is contained in:
parent
1557bc75f6
commit
ea230eaba1
3 changed files with 56 additions and 0 deletions
|
@ -531,6 +531,50 @@ button {
|
|||
height: 288px;
|
||||
}
|
||||
|
||||
.tab-osd .hd_avatar_bottom {
|
||||
border-bottom: 2px solid purple;
|
||||
position: absolute;
|
||||
bottom: 33px;
|
||||
left: 0px;
|
||||
right: 0px;
|
||||
}
|
||||
|
||||
.tab-osd .hd_avatar_storagebox_t {
|
||||
border-top: 2px solid purple;
|
||||
position: absolute;
|
||||
top: 56px;
|
||||
height: 1px;
|
||||
right: 34px;
|
||||
width: 48px;
|
||||
}
|
||||
|
||||
.tab-osd .hd_avatar_storagebox_b {
|
||||
border-bottom: 2px solid purple;
|
||||
position: absolute;
|
||||
top: 88px;
|
||||
height: 1px;
|
||||
right: 34px;
|
||||
width: 48px;
|
||||
}
|
||||
|
||||
.tab-osd .hd_avatar_storagebox_l {
|
||||
border-left: 2px solid purple;
|
||||
position: absolute;
|
||||
top: 56px;
|
||||
height: 35px;
|
||||
right: 80px;
|
||||
width: 1px;
|
||||
}
|
||||
|
||||
.tab-osd .hd_avatar_storagebox_r {
|
||||
border-right: 2px solid purple;
|
||||
position: absolute;
|
||||
top: 56px;
|
||||
height: 35px;
|
||||
right: 32px;
|
||||
width: 1px;
|
||||
}
|
||||
|
||||
.tab-osd .ntsc_bottom {
|
||||
border-bottom: 2px solid green;
|
||||
position: absolute;
|
||||
|
|
|
@ -38,6 +38,11 @@
|
|||
<div class="hd_3016_box_left"></div>
|
||||
<div class="hd_3016_box_right"></div>
|
||||
<div class="pal_ntsc_box_bottom"></div>
|
||||
<div class="hd_avatar_storage_box_top"></div>
|
||||
<div class="hd_avatar_storage_box_bottom"></div>
|
||||
<div class="hd_avatar_storage_box_left"></div>
|
||||
<div class="hd_avatar_storage_box_right"></div>
|
||||
<div class="hd_avatar_bottom_bar"></div>
|
||||
<div class="preview"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -2703,6 +2703,13 @@ OSD.GUI.updateGuidesView = function(on) {
|
|||
$('.hd_43_margin_left').toggleClass('dji_hd_43_left', (isDJIWTF && on))
|
||||
$('.hd_43_margin_right').toggleClass('dji_hd_43_right', (isDJIWTF && on))
|
||||
|
||||
isAvatar = OSD.constants.VIDEO_TYPES[OSD.data.preferences.video_system] == 'AVATAR';
|
||||
$('.hd_avatar_bottom_bar').toggleClass('hd_avatar_bottom', (isAvatar && on))
|
||||
$('.hd_avatar_storage_box_top').toggleClass('hd_avatar_storagebox_t', (isAvatar && on))
|
||||
$('.hd_avatar_storage_box_bottom').toggleClass('hd_avatar_storagebox_b', (isAvatar && on))
|
||||
$('.hd_avatar_storage_box_left').toggleClass('hd_avatar_storagebox_l', (isAvatar && on))
|
||||
$('.hd_avatar_storage_box_right').toggleClass('hd_avatar_storagebox_r', (isAvatar && on))
|
||||
|
||||
isPAL = OSD.constants.VIDEO_TYPES[OSD.data.preferences.video_system] == 'PAL' || OSD.constants.VIDEO_TYPES[OSD.data.preferences.video_system] == 'AUTO';
|
||||
$('.pal_ntsc_box_bottom').toggleClass('ntsc_bottom', (isPAL && on))
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue