Skip to content

Commit

Permalink
Merge pull request #2146 from sensei-hacker/separate_mixer_wizard
Browse files Browse the repository at this point in the history
clear separation between mixer preset and wizard
  • Loading branch information
mmosca authored Aug 22, 2024
2 parents c6890d3 + 98bdff2 commit 69c6c92
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion locale/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -2096,7 +2096,7 @@
"message": "Mixer <span style=\"color: #37a8db\">saved</span>"
},
"mixerWizard": {
"message": "Mixer wizard"
"message": "Motor Mixer Wizard"
},
"mixerWizardInfo": {
"message": "<ol><li>Remove propellers</li><li>Connect LiPo and use Outputs Tab to test all motors</li><li>Note the position of each motor (motor #1 - Left Top and so on)</li><li>Fill the table below</li></ol>"
Expand Down
17 changes: 13 additions & 4 deletions tabs/mixer.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@

<div class="mixer-load-button">
<div id="needToUpdateMixerMessage" class="is-hidden" data-i18n="mixerNotLoaded"></div>
<div class="btn default_btn narrow green is-hidden">
<a id="mixer-wizard" href="#" data-i18n="mixerWizard"></a>
</div>
<div class="btn default_btn narrow red">
<a id="load-and-apply-mixer-button" href="#" data-i18n="mixerLoadAndApplyPresetRules"></a>
</div>
Expand All @@ -87,6 +84,17 @@
</div>
</div>
</div>
<div class="platform-type gui_box grey" id="mixer-wizard-gui_box" is-hidden>
<div class="gui_box_titlebar">
<div class="spacer_box_title" data-i18n="mixerWizard"></div>
</div>

<div class="spacer_box">
<div class="btn default_btn narrow green">
<a id="mixer-wizard" href="#" data-i18n="mixerWizard"></a>
</div>
</div>
</div>
</div>
</div>
<div class="clear-both"></div>
Expand Down Expand Up @@ -264,7 +272,8 @@ <h1 class="modal__title modal__title--warning" data-i18n="mixerWizardModalTitle"
</table>
</div>
</div>
<div class="modal__buttons">

<div class="modal__buttons--upbottom">
<a id="wizard-execute-button" class="modal__button modal__button--main" data-i18n="mixerWizardModalApply"></a>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions tabs/mixer.js
Original file line number Diff line number Diff line change
Expand Up @@ -696,9 +696,9 @@ TABS.mixer.initialize = function (callback, scrollPosition) {
FC.MIXER_CONFIG.appliedMixerPreset = presetId;

if (currentMixerPreset.id == 3) {
$wizardButton.parent().removeClass("is-hidden");
$("#mixer-wizard-gui_box").removeClass("is-hidden");
} else {
$wizardButton.parent().addClass("is-hidden");
$("#mixer-wizard-gui_box").addClass("is-hidden");
}

if (FC.MIXER_CONFIG.platformType == PLATFORM.AIRPLANE && currentMixerPreset.id != loadedMixerPresetID) {
Expand Down

0 comments on commit 69c6c92

Please sign in to comment.