mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-17 21:35:30 +03:00
Updated to work with inav#8226
This commit is contained in:
parent
3b1a9b8453
commit
44dbc3722f
3 changed files with 3 additions and 3 deletions
|
@ -64,7 +64,7 @@ var Settings = (function () {
|
||||||
} else {
|
} else {
|
||||||
input.empty();
|
input.empty();
|
||||||
let option = null;
|
let option = null;
|
||||||
if (input.data('invert-select') === true) {
|
if (input.data('setting-invert-select') === true) {
|
||||||
for (var ii = s.setting.max; ii >= s.setting.min; ii--) {
|
for (var ii = s.setting.max; ii >= s.setting.min; ii--) {
|
||||||
option = null;
|
option = null;
|
||||||
option = self.fillSelectOption(s, ii);
|
option = self.fillSelectOption(s, ii);
|
||||||
|
|
|
@ -95,7 +95,7 @@
|
||||||
</label>
|
</label>
|
||||||
<div for="osd_horizon_offset" class="helpicon cf_tip" data-i18n_title="osd_horizon_offset_help"></div>
|
<div for="osd_horizon_offset" class="helpicon cf_tip" data-i18n_title="osd_horizon_offset_help"></div>
|
||||||
<label>
|
<label>
|
||||||
<select class="update_preview" id="osd_horizon_offset" data-setting="osd_horizon_offset" data-live="true"></select>
|
<select class="update_preview" id="osd_horizon_offset" data-setting="osd_horizon_offset" data-setting-invert-select="true" data-live="true"></select>
|
||||||
<span data-i18n="osd_horizon_offset"></span>
|
<span data-i18n="osd_horizon_offset"></span>
|
||||||
</label>
|
</label>
|
||||||
<label>
|
<label>
|
||||||
|
|
|
@ -2676,7 +2676,7 @@ OSD.GUI.updatePreviews = function() {
|
||||||
centerPosition += OSD.data.display_size.x / 2;
|
centerPosition += OSD.data.display_size.x / 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
let hudCenterPosition = centerPosition + (OSD.constants.VIDEO_COLS[video_type] * $('#osd_horizon_offset').val());
|
let hudCenterPosition = centerPosition - (OSD.constants.VIDEO_COLS[video_type] * $('#osd_horizon_offset').val());
|
||||||
|
|
||||||
// artificial horizon
|
// artificial horizon
|
||||||
if ($('input[name="ARTIFICIAL_HORIZON"]').prop('checked')) {
|
if ($('input[name="ARTIFICIAL_HORIZON"]').prop('checked')) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue