Add option to swap A/B buttons in Settings menu with minimal changes (#2034)

This commit is contained in:
Ivan Zorin
2025-03-10 05:01:07 +03:00
parent 03ec177058
commit ce3fea8176
41 changed files with 175 additions and 25 deletions

View File

@@ -275,6 +275,10 @@
"displayText": "Інвертаваць\nкнопкі", "displayText": "Інвертаваць\nкнопкі",
"description": "Інвертаваць кнопкі вымярэння тэмпературы" "description": "Інвертаваць кнопкі вымярэння тэмпературы"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "Хуткасць\nанімацыі", "displayText": "Хуткасць\nанімацыі",
"description": "Хуткасць анімацыі гузікаў у галоўным меню (Мілісекунды) (Н=Нізкая | С=Сярэдняя | В=Высокая)" "description": "Хуткасць анімацыі гузікаў у галоўным меню (Мілісекунды) (Н=Нізкая | С=Сярэдняя | В=Высокая)"

View File

@@ -275,6 +275,10 @@
"displayText": "Размяна\nбутони +/-", "displayText": "Размяна\nбутони +/-",
"description": "Обръщане на бутоните + и - за промяна на температурата на човка на поялника" "description": "Обръщане на бутоните + и - за промяна на температурата на човка на поялника"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "Скорост на\nанимацията", "displayText": "Скорост на\nанимацията",
"description": "Скорост на анимация на иконата в главното меню (Н=Ниска | C=Средна | B=Висока)" "description": "Скорост на анимация на иконата в главното меню (Н=Ниска | C=Средна | B=Висока)"

View File

@@ -275,6 +275,10 @@
"displayText": "Prohodit\ntl. +-?", "displayText": "Prohodit\ntl. +-?",
"description": "Prohodit tlačítka pro změnu teploty" "description": "Prohodit tlačítka pro změnu teploty"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "Anim.\nrychlost", "displayText": "Anim.\nrychlost",
"description": "Tempo animace ikon v menu (P=pomalu | S=středně | R=rychle)" "description": "Tempo animace ikon v menu (P=pomalu | S=středně | R=rychle)"

View File

@@ -275,6 +275,10 @@
"displayText": "Skift\n+ - tasterne", "displayText": "Skift\n+ - tasterne",
"description": "Skift tildeling af knapper til temperaturjustering" "description": "Skift tildeling af knapper til temperaturjustering"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "Anim.\nHastighed", "displayText": "Anim.\nHastighed",
"description": "Hastigheden for ikonanimationer i menuen (S=langsomt | M=medium | F=hurtigt)" "description": "Hastigheden for ikonanimationer i menuen (S=langsomt | M=medium | F=hurtigt)"

View File

@@ -275,6 +275,10 @@
"displayText": "+- Tasten\numkehren", "displayText": "+- Tasten\numkehren",
"description": "Tastenbelegung zur Temperaturänderung umkehren" "description": "Tastenbelegung zur Temperaturänderung umkehren"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "Anim.\nGeschw.", "displayText": "Anim.\nGeschw.",
"description": "Geschwindigkeit der Icon-Animationen im Menü (L=langsam | M=mittel | S=schnell)" "description": "Geschwindigkeit der Icon-Animationen im Menü (L=langsam | M=mittel | S=schnell)"

View File

@@ -275,6 +275,10 @@
"displayText": "Αντιστροφή\nπλήκτρων + -", "displayText": "Αντιστροφή\nπλήκτρων + -",
"description": "Αντιστροφή διάταξης πλήκτρων στη ρύθμιση θερμοκρασίας" "description": "Αντιστροφή διάταξης πλήκτρων στη ρύθμιση θερμοκρασίας"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "Ταχύτητα\nκιν. εικονιδ.", "displayText": "Ταχύτητα\nκιν. εικονιδ.",
"description": "Ρυθμός κίνησης εικονιδίων στο μενού (Α=αργός | Μ=μέτριος | Γ=γρήγορος)" "description": "Ρυθμός κίνησης εικονιδίων στο μενού (Α=αργός | Μ=μέτριος | Γ=γρήγορος)"

View File

@@ -275,6 +275,10 @@
"displayText": "Swap\n+ - keys", "displayText": "Swap\n+ - keys",
"description": "Reverse assignment of buttons for temperature adjustment" "description": "Reverse assignment of buttons for temperature adjustment"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "Anim.\nspeed", "displayText": "Anim.\nspeed",
"description": "Pace of icon animations in menu (S=slow | M=medium | F=fast)" "description": "Pace of icon animations in menu (S=slow | M=medium | F=fast)"

View File

@@ -275,6 +275,10 @@
"displayText": "Invertir\nbotones +/-", "displayText": "Invertir\nbotones +/-",
"description": "Invertir botones de ajuste de temperatura" "description": "Invertir botones de ajuste de temperatura"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "Anim.\nvelocidad", "displayText": "Anim.\nvelocidad",
"description": "Velocidad de animaciones de iconos en el menú (L=baja | M=media | R=alta)" "description": "Velocidad de animaciones de iconos en el menú (L=baja | M=media | R=alta)"

View File

@@ -275,6 +275,10 @@
"displayText": "Vaheta\n+ - nupud", "displayText": "Vaheta\n+ - nupud",
"description": "Temperatuurinuppude asukohtade vahetus" "description": "Temperatuurinuppude asukohtade vahetus"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "Anim.\nkiirus", "displayText": "Anim.\nkiirus",
"description": "Menüüikoonide animatsiooni kiirus (A=aeglane | K=keskmine | T=tempokas)" "description": "Menüüikoonide animatsiooni kiirus (A=aeglane | K=keskmine | T=tempokas)"

View File

@@ -275,6 +275,10 @@
"displayText": "Suunnanvaihto\n+ - näppäimille", "displayText": "Suunnanvaihto\n+ - näppäimille",
"description": "Lämpötilapainikkeiden suunnan vaihtaminen" "description": "Lämpötilapainikkeiden suunnan vaihtaminen"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "Animaation\nnopeus", "displayText": "Animaation\nnopeus",
"description": "Animaatioiden nopeus valikossa (A=alhainen | K=keskiverto | S=suuri)" "description": "Animaatioiden nopeus valikossa (A=alhainen | K=keskiverto | S=suuri)"

View File

@@ -275,6 +275,10 @@
"displayText": "Inverser les\ntouches + -", "displayText": "Inverser les\ntouches + -",
"description": "Inverser les boutons d'ajustement de température" "description": "Inverser les boutons d'ajustement de température"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "Vitesse\nanim. icônes", "displayText": "Vitesse\nanim. icônes",
"description": "Vitesse des animations des icônes dans le menu (L=lente | M=moyenne | R=rapide)" "description": "Vitesse des animations des icônes dans le menu (L=lente | M=moyenne | R=rapide)"

View File

@@ -275,6 +275,10 @@
"displayText": "Zamjena\n+ - tipki", "displayText": "Zamjena\n+ - tipki",
"description": "Zamjenjuje funkciju gornje i donje tipke za podešavanje temperature" "description": "Zamjenjuje funkciju gornje i donje tipke za podešavanje temperature"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "Brzina\nanimacije", "displayText": "Brzina\nanimacije",
"description": "Brzina animacije ikona u menijima (S=sporo | M=srednje | B=brzo)" "description": "Brzina animacije ikona u menijima (S=sporo | M=srednje | B=brzo)"

View File

@@ -275,6 +275,10 @@
"displayText": "+/- gomb\nmegfordítása", "displayText": "+/- gomb\nmegfordítása",
"description": "Forrasztó hegy hőmérsékletállító gombok felcserélése" "description": "Forrasztó hegy hőmérsékletállító gombok felcserélése"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "Animáció\nsebessége", "displayText": "Animáció\nsebessége",
"description": "Menüikonok animációjának sebessége (L=lassú | K=közepes | Gy=gyors)" "description": "Menüikonok animációjának sebessége (L=lassú | K=közepes | Gy=gyors)"

View File

@@ -275,6 +275,10 @@
"displayText": "Inversione\ntasti", "displayText": "Inversione\ntasti",
"description": "Inverti i tasti per aumentare o diminuire la temperatura della punta" "description": "Inverti i tasti per aumentare o diminuire la temperatura della punta"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "Velocità\nanimazioni", "displayText": "Velocità\nanimazioni",
"description": "Imposta la velocità di riproduzione delle animazioni del menù principale [L: lenta; M: media; V: veloce]" "description": "Imposta la velocità di riproduzione delle animazioni del menù principale [L: lenta; M: media; V: veloce]"

View File

@@ -275,6 +275,10 @@
"displayText": "キー入れ替え", "displayText": "キー入れ替え",
"description": "温度設定時に+ボタンと-ボタンを入れ替える" "description": "温度設定時に+ボタンと-ボタンを入れ替える"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "動画の速度", "displayText": "動画の速度",
"description": "メニューアイコンのアニメーションの速さ <遅=低速 | 中=中速 | 速=高速>" "description": "メニューアイコンのアニメーションの速さ <遅=低速 | 中=中速 | 速=高速>"

View File

@@ -275,6 +275,10 @@
"displayText": "Sukeisti + -\nmygtukus?", "displayText": "Sukeisti + -\nmygtukus?",
"description": "Sukeisti + - temperatūros keitimo mygtukus vietomis" "description": "Sukeisti + - temperatūros keitimo mygtukus vietomis"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "Animacijų\ngreitis", "displayText": "Animacijų\ngreitis",
"description": "Paveiksliukų animacijų greitis meniu punktuose (L=Lėtas | V=Vidutinis | G=Greitas)" "description": "Paveiksliukų animacijų greitis meniu punktuose (L=Lėtas | V=Vidutinis | G=Greitas)"

View File

@@ -275,6 +275,10 @@
"displayText": "Bytt\n+ - kn.", "displayText": "Bytt\n+ - kn.",
"description": "Bytt om på knappene for å stille temperatur" "description": "Bytt om på knappene for å stille temperatur"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "Anim.\nhastighet", "displayText": "Anim.\nhastighet",
"description": "Hastigheten til animasjonene i menyen (S=slow | M=medium | F=fast)" "description": "Hastigheten til animasjonene i menyen (S=slow | M=medium | F=fast)"

View File

@@ -275,6 +275,10 @@
"displayText": "Wissel\n+ - knoppen", "displayText": "Wissel\n+ - knoppen",
"description": "Wissel de knoppen voor temperatuur controle om" "description": "Wissel de knoppen voor temperatuur controle om"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "Anim.\nsnelheid", "displayText": "Anim.\nsnelheid",
"description": "Snelheid van de icoon animaties in het menu (Langzaam | Middel | Snel)" "description": "Snelheid van de icoon animaties in het menu (Langzaam | Middel | Snel)"

View File

@@ -275,6 +275,10 @@
"displayText": "Wissel\n+ - knoppen", "displayText": "Wissel\n+ - knoppen",
"description": "Wissel de knoppen voor temperatuur controle" "description": "Wissel de knoppen voor temperatuur controle"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "Anim.\nsnelheid", "displayText": "Anim.\nsnelheid",
"description": "Snelheid van de icoon animaties in het menu (T=sloom | M=middel | S=snel)" "description": "Snelheid van de icoon animaties in het menu (T=sloom | M=middel | S=snel)"

View File

@@ -275,6 +275,10 @@
"displayText": "Zamień przyc.\n+ -", "displayText": "Zamień przyc.\n+ -",
"description": "Zamienia działanie przycisków zmiany temperatury grotu" "description": "Zamienia działanie przycisków zmiany temperatury grotu"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "Prędkosć\nanimacji", "displayText": "Prędkosć\nanimacji",
"description": "Prędkość animacji ikon w menu (W: mała | M: średnia | S: duża)" "description": "Prędkość animacji ikon w menu (W: mała | M: średnia | S: duża)"

View File

@@ -275,6 +275,10 @@
"displayText": "Trocar\nbotões + -", "displayText": "Trocar\nbotões + -",
"description": "Inverte o funcionamento dos botões de ajuste da temperatura" "description": "Inverte o funcionamento dos botões de ajuste da temperatura"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "Velocidade\nde animação", "displayText": "Velocidade\nde animação",
"description": "Velocidade das animações no menu (S=lenta | M=média | F=rápida)" "description": "Velocidade das animações no menu (S=lenta | M=média | F=rápida)"

View File

@@ -275,6 +275,10 @@
"displayText": "Inversare\n+ - butoane", "displayText": "Inversare\n+ - butoane",
"description": "Inversarea butoanelor de reglare a temperaturii" "description": "Inversarea butoanelor de reglare a temperaturii"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "Animaţii\nviteză", "displayText": "Animaţii\nviteză",
"description": "Ritmul animaţiilor pictogramei din meniu (Î=încet | M=mediu | R=rapid)" "description": "Ritmul animaţiilor pictogramei din meniu (Î=încet | M=mediu | R=rapid)"

View File

@@ -275,6 +275,10 @@
"displayText": "Поменять\nкнопки +/-", "displayText": "Поменять\nкнопки +/-",
"description": "Поменять кнопки изменения температуры" "description": "Поменять кнопки изменения температуры"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "Скорость\nанимации", "displayText": "Скорость\nанимации",
"description": "Скорость анимации иконок в главном меню (М=Медленная| С=Средняя | Б=Быстрая)" "description": "Скорость анимации иконок в главном меню (М=Медленная| С=Средняя | Б=Быстрая)"

View File

@@ -275,6 +275,10 @@
"displayText": "Otočenie\ntlačidiel +/-", "displayText": "Otočenie\ntlačidiel +/-",
"description": "Prehodenie tlačidiel na nastavovanie teploty" "description": "Prehodenie tlačidiel na nastavovanie teploty"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "Rýchlosť\nanimácií", "displayText": "Rýchlosť\nanimácií",
"description": "Rýchlosť animácií ikoniek v menu (P=pomaly | S=stredne | R=rýchlo)" "description": "Rýchlosť animácií ikoniek v menu (P=pomaly | S=stredne | R=rýchlo)"

View File

@@ -275,6 +275,10 @@
"displayText": "Obrni\ntipki + -?", "displayText": "Obrni\ntipki + -?",
"description": "Zamenjaj funkciji gumbov." "description": "Zamenjaj funkciji gumbov."
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "Anim.\nspeed", "displayText": "Anim.\nspeed",
"description": "Pace of icon animations in menu (P=slow | M=medium | H=fast)" "description": "Pace of icon animations in menu (P=slow | M=medium | H=fast)"

View File

@@ -275,6 +275,10 @@
"displayText": "Swap\n+ - keys", "displayText": "Swap\n+ - keys",
"description": "Reverse assignment of buttons for temperature adjustment" "description": "Reverse assignment of buttons for temperature adjustment"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "Anim.\nspeed", "displayText": "Anim.\nspeed",
"description": "Pace of icon animations in menu (С=slow | M=medium | Б=fast)" "description": "Pace of icon animations in menu (С=slow | M=medium | Б=fast)"

View File

@@ -275,6 +275,10 @@
"displayText": "Swap\n+ - keys", "displayText": "Swap\n+ - keys",
"description": "Reverse assignment of buttons for temperature adjustment" "description": "Reverse assignment of buttons for temperature adjustment"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "Anim.\nspeed", "displayText": "Anim.\nspeed",
"description": "Pace of icon animations in menu (S=slow | M=medium | B=fast)" "description": "Pace of icon animations in menu (S=slow | M=medium | B=fast)"

View File

@@ -275,6 +275,10 @@
"displayText": "Omvända\n+- knappar", "displayText": "Omvända\n+- knappar",
"description": "Omvänd ordning för temperaturjustering via plus/minus knapparna" "description": "Omvänd ordning för temperaturjustering via plus/minus knapparna"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "Anim.-\nhastighet", "displayText": "Anim.-\nhastighet",
"description": "Animationshastighet för ikoner i menyer (L=långsam | M=medel | S=snabb)" "description": "Animationshastighet för ikoner i menyer (L=långsam | M=medel | S=snabb)"

View File

@@ -275,6 +275,10 @@
"displayText": "Düğme Yerleri\nRotasyonu", "displayText": "Düğme Yerleri\nRotasyonu",
"description": "\"Düğme Yerleri Rotasyonu\" Sıcaklık ayar düğmelerinin yerini değiştirin" "description": "\"Düğme Yerleri Rotasyonu\" Sıcaklık ayar düğmelerinin yerini değiştirin"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "Animasyon\nHızı", "displayText": "Animasyon\nHızı",
"description": "Menüdeki simge animasyonlarının hızı (Y=Yavaş | O=Orta | H=Hızlı)" "description": "Menüdeki simge animasyonlarının hızı (Y=Yavaş | O=Orta | H=Hızlı)"

View File

@@ -275,6 +275,10 @@
"displayText": "Інвертувати\nкнопки +-?", "displayText": "Інвертувати\nкнопки +-?",
"description": "Інвертувати кнопки зміни температури." "description": "Інвертувати кнопки зміни температури."
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "Швидкість\nанімації", "displayText": "Швидкість\nанімації",
"description": "Швидкість анімації іконок у меню (Н=Низькa | С=Середня | М=Максимальна)" "description": "Швидкість анімації іконок у меню (Н=Низькa | С=Середня | М=Максимальна)"

View File

@@ -275,6 +275,10 @@
"displayText": "(+) va (-) tugmalarni\nalmashtirish", "displayText": "(+) va (-) tugmalarni\nalmashtirish",
"description": "Harorat o'zgarishi uchun tugmachalarni vazifasini almashish" "description": "Harorat o'zgarishi uchun tugmachalarni vazifasini almashish"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "Anim.\ntezligi", "displayText": "Anim.\ntezligi",
"description": "Menyudagi ikonka animatsiyalari tezligini sozlash (S=sekin | O=o'rtacha | T=tez)" "description": "Menyudagi ikonka animatsiyalari tezligini sozlash (S=sekin | O=o'rtacha | T=tez)"

View File

@@ -275,6 +275,10 @@
"displayText": "Đao nguoc\nnút + -", "displayText": "Đao nguoc\nnút + -",
"description": "Đao nguoc chuc năng các nút đieu chinh nhiet đo" "description": "Đao nguoc chuc năng các nút đieu chinh nhiet đo"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "Toc đo\nhoat anh", "displayText": "Toc đo\nhoat anh",
"description": "Toc đo cua hoat anh menu (S=cham | M=trung bình | F=nhanh)" "description": "Toc đo cua hoat anh menu (S=cham | M=trung bình | F=nhanh)"

View File

@@ -275,6 +275,10 @@
"displayText": "反轉加減掣", "displayText": "反轉加減掣",
"description": "反轉調校温度時加減掣嘅方向" "description": "反轉調校温度時加減掣嘅方向"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "動畫速度", "displayText": "動畫速度",
"description": "功能表圖示動畫嘅速度 <慢=慢速 | 中=中速 | 快=快速>" "description": "功能表圖示動畫嘅速度 <慢=慢速 | 中=中速 | 快=快速>"

View File

@@ -275,6 +275,10 @@
"displayText": "调换加减键", "displayText": "调换加减键",
"description": "调校温度时更换加减键的方向" "description": "调校温度时更换加减键的方向"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "动画速度", "displayText": "动画速度",
"description": "主菜单中功能图标动画的播放速度 <慢=慢速 | 中=中速 | 快=快速>" "description": "主菜单中功能图标动画的播放速度 <慢=慢速 | 中=中速 | 快=快速>"

View File

@@ -275,6 +275,10 @@
"displayText": "調換加減鍵", "displayText": "調換加減鍵",
"description": "調校溫度時調換加減鍵的方向" "description": "調校溫度時調換加減鍵的方向"
}, },
"ReverseButtonSettings": {
"displayText": "Swap\nA B keys",
"description": "Reverse assignment of buttons for Settings menu"
},
"AnimSpeed": { "AnimSpeed": {
"displayText": "動畫速度", "displayText": "動畫速度",
"description": "功能表圖示動畫的速度 <慢=慢速 | 中=中速 | 快=快速>" "description": "功能表圖示動畫的速度 <慢=慢速 | 中=中速 | 快=快速>"

View File

@@ -473,6 +473,12 @@
"maxLen2": 15, "maxLen2": 15,
"description": "Swaps which button increments and decrements on temperature change screens." "description": "Swaps which button increments and decrements on temperature change screens."
}, },
{
"id": "ReverseButtonSettings",
"maxLen": 6,
"maxLen2": 15,
"description": "Swaps which button is used as Enter/Change and as Scroll/Back in Settings menu."
},
{ {
"id": "AnimSpeed", "id": "AnimSpeed",
"maxLen": 6, "maxLen": 6,

View File

@@ -76,8 +76,9 @@ enum SettingsOptions {
ProfileCooldownSpeed = 52, // Maximum allowed cooldown speed in degrees per second ProfileCooldownSpeed = 52, // Maximum allowed cooldown speed in degrees per second
HallEffectSleepTime = 53, // Seconds (/5) timeout to sleep when hall effect over threshold HallEffectSleepTime = 53, // Seconds (/5) timeout to sleep when hall effect over threshold
SolderingTipType = 54, // Selecting the type of soldering tip fitted SolderingTipType = 54, // Selecting the type of soldering tip fitted
ReverseButtonSettings = 55, // Change the A and B button assigment in Settings menu
// //
SettingsOptionsLength = 55, // End marker SettingsOptionsLength = 56, // End marker
}; };
typedef enum { typedef enum {

View File

@@ -90,6 +90,7 @@ enum class SettingsItemIndex : uint8_t {
CooldownBlink, CooldownBlink,
ScrollingSpeed, ScrollingSpeed,
ReverseButtonTempChange, ReverseButtonTempChange,
ReverseButtonSettings,
AnimSpeed, AnimSpeed,
AnimLoop, AnimLoop,
Brightness, Brightness,

View File

@@ -110,6 +110,7 @@ static const SettingConstants settingsConstants[(int)SettingsOptions::SettingsOp
{ 1, 10, 1, 2}, // ProfileCooldownSpeed { 1, 10, 1, 2}, // ProfileCooldownSpeed
{ 0, 12, 1, 0}, // HallEffectSleepTime { 0, 12, 1, 0}, // HallEffectSleepTime
{ 0, (tipType_t::TIP_TYPE_MAX - 1) > 0 ? (tipType_t::TIP_TYPE_MAX - 1) : 0, 1, 0}, // SolderingTipType { 0, (tipType_t::TIP_TYPE_MAX - 1) > 0 ? (tipType_t::TIP_TYPE_MAX - 1) : 0, 1, 0}, // SolderingTipType
{ 0, 1, 1, 1}, // ReverseButtonSettings
}; };
static_assert((sizeof(settingsConstants) / sizeof(SettingConstants)) == ((int)SettingsOptions::SettingsOptionsLength)); static_assert((sizeof(settingsConstants) / sizeof(SettingConstants)) == ((int)SettingsOptions::SettingsOptionsLength));

View File

@@ -47,6 +47,7 @@ static void displayAdvancedSolderingScreens(void);
static void displayAdvancedIDLEScreens(void); static void displayAdvancedIDLEScreens(void);
static void displayScrollSpeed(void); static void displayScrollSpeed(void);
static void displayReverseButtonTempChangeEnabled(void); static void displayReverseButtonTempChangeEnabled(void);
static void displayReverseButtonSettings(void);
static void displayPowerLimit(void); static void displayPowerLimit(void);
#ifdef BLE_ENABLED #ifdef BLE_ENABLED
@@ -395,6 +396,8 @@ const menuitem UIMenu[] = {
{SETTINGS_DESC(SettingsItemIndex::ScrollingSpeed), nullptr, displayScrollSpeed, nullptr, SettingsOptions::DescriptionScrollSpeed, SettingsItemIndex::ScrollingSpeed, 7}, {SETTINGS_DESC(SettingsItemIndex::ScrollingSpeed), nullptr, displayScrollSpeed, nullptr, SettingsOptions::DescriptionScrollSpeed, SettingsItemIndex::ScrollingSpeed, 7},
/* Reverse Temp change buttons +/- */ /* Reverse Temp change buttons +/- */
{SETTINGS_DESC(SettingsItemIndex::ReverseButtonTempChange), nullptr, displayReverseButtonTempChangeEnabled, nullptr, SettingsOptions::ReverseButtonTempChangeEnabled, SettingsItemIndex::ReverseButtonTempChange, 7}, {SETTINGS_DESC(SettingsItemIndex::ReverseButtonTempChange), nullptr, displayReverseButtonTempChangeEnabled, nullptr, SettingsOptions::ReverseButtonTempChangeEnabled, SettingsItemIndex::ReverseButtonTempChange, 7},
/* Reverse Settings menu buttons A/B */
{SETTINGS_DESC(SettingsItemIndex::ReverseButtonSettings), nullptr, displayReverseButtonSettings, nullptr, SettingsOptions::ReverseButtonSettings, SettingsItemIndex::ReverseButtonSettings, 7},
/* Animation Speed adjustment */ /* Animation Speed adjustment */
{SETTINGS_DESC(SettingsItemIndex::AnimSpeed), nullptr, displayAnimationSpeed, nullptr, SettingsOptions::AnimationSpeed, SettingsItemIndex::AnimSpeed, 7}, {SETTINGS_DESC(SettingsItemIndex::AnimSpeed), nullptr, displayAnimationSpeed, nullptr, SettingsOptions::AnimationSpeed, SettingsItemIndex::AnimSpeed, 7},
/* Animation Loop switch */ /* Animation Loop switch */
@@ -853,6 +856,8 @@ static void displayScrollSpeed(void) { OLED::print(translatedString((getSettingV
static void displayReverseButtonTempChangeEnabled(void) { OLED::drawCheckbox(getSettingValue(SettingsOptions::ReverseButtonTempChangeEnabled)); } static void displayReverseButtonTempChangeEnabled(void) { OLED::drawCheckbox(getSettingValue(SettingsOptions::ReverseButtonTempChangeEnabled)); }
static void displayReverseButtonSettings(void) { OLED::drawCheckbox(getSettingValue(SettingsOptions::ReverseButtonSettings)); }
static void displayAnimationSpeed(void) { static void displayAnimationSpeed(void) {
switch (getSettingValue(SettingsOptions::AnimationSpeed)) { switch (getSettingValue(SettingsOptions::AnimationSpeed)) {
case settingOffSpeed_t::SLOW: case settingOffSpeed_t::SLOW:

View File

@@ -152,9 +152,9 @@ OperatingMode gui_SettingsMenu(const ButtonState buttons, guiContext *cxt) {
if (currentVirtualPosition > 0) { if (currentVirtualPosition > 0) {
currentVirtualPosition--; currentVirtualPosition--;
} }
// The height of the indicator is screen res height / total menu entries // The height of the indicator is screen res height / total menu entries
uint8_t indicatorHeight = OLED_HEIGHT / *currentMenuLength; uint8_t indicatorHeight = OLED_HEIGHT / *currentMenuLength;
if (indicatorHeight == 0) { if (indicatorHeight == 0) {
indicatorHeight = 1; // always at least 1 pixel indicatorHeight = 1; // always at least 1 pixel
} }
@@ -181,8 +181,8 @@ OperatingMode gui_SettingsMenu(const ButtonState buttons, guiContext *cxt) {
OLED::drawScrollIndicator((uint8_t)position, indicatorHeight); OLED::drawScrollIndicator((uint8_t)position, indicatorHeight);
} }
} }
// Now handle user button input
// Now handle user button input
auto callIncrementHandler = [&]() { auto callIncrementHandler = [&]() {
if (currentMenu[currentScreen].incrementHandler != nullptr) { if (currentMenu[currentScreen].incrementHandler != nullptr) {
currentMenu[currentScreen].incrementHandler(); currentMenu[currentScreen].incrementHandler();
@@ -192,14 +192,18 @@ OperatingMode gui_SettingsMenu(const ButtonState buttons, guiContext *cxt) {
return false; return false;
}; };
// // Set buttons actions according to the settings
bool swapButtonsSettings = getSettingValue(SettingsOptions::ReverseButtonSettings);
uint8_t button_enter = swapButtonsSettings ? BUTTON_B_SHORT : BUTTON_F_SHORT;
uint8_t button_enter_long = swapButtonsSettings ? BUTTON_B_LONG : BUTTON_F_LONG;
uint8_t button_next = swapButtonsSettings ? BUTTON_F_SHORT : BUTTON_B_SHORT;
uint8_t button_next_long = swapButtonsSettings ? BUTTON_F_LONG : BUTTON_B_LONG;
OperatingMode newMode = OperatingMode::SettingsMenu; OperatingMode newMode = OperatingMode::SettingsMenu;
switch (buttons) { if (BUTTON_NONE == buttons) {
case BUTTON_NONE:
(*autoRepeatAcceleration) = 0; // reset acceleration (*autoRepeatAcceleration) = 0; // reset acceleration
(*autoRepeatTimer) = 0; // reset acceleration (*autoRepeatTimer) = 0; // reset acceleration
break; } else if (BUTTON_BOTH == buttons) {
case BUTTON_BOTH:
if (*subEntry == 0) { if (*subEntry == 0) {
saveSettings(); saveSettings();
cxt->transitionMode = TransitionAnimation::Left; cxt->transitionMode = TransitionAnimation::Left;
@@ -209,9 +213,7 @@ OperatingMode gui_SettingsMenu(const ButtonState buttons, guiContext *cxt) {
*subEntry = 0; *subEntry = 0;
return OperatingMode::SettingsMenu; return OperatingMode::SettingsMenu;
} }
break; } else if (button_enter_long == buttons) {
case BUTTON_F_LONG:
if (xTaskGetTickCount() + (*autoRepeatAcceleration) > (*autoRepeatTimer) + PRESS_ACCEL_INTERVAL_MAX) { if (xTaskGetTickCount() + (*autoRepeatAcceleration) > (*autoRepeatTimer) + PRESS_ACCEL_INTERVAL_MAX) {
callIncrementHandler(); callIncrementHandler();
// Update the check for if its the last version // Update the check for if its the last version
@@ -229,8 +231,7 @@ OperatingMode gui_SettingsMenu(const ButtonState buttons, guiContext *cxt) {
(*autoRepeatAcceleration) += PRESS_ACCEL_STEP; (*autoRepeatAcceleration) += PRESS_ACCEL_STEP;
*currentMenuLength = 0; // Reset incase menu visible changes *currentMenuLength = 0; // Reset incase menu visible changes
} }
break; } else if (button_enter == buttons) {
case BUTTON_F_SHORT:
// Increment setting // Increment setting
if (*isRenderingHelp) { if (*isRenderingHelp) {
*isRenderingHelp = 0; *isRenderingHelp = 0;
@@ -248,28 +249,23 @@ OperatingMode gui_SettingsMenu(const ButtonState buttons, guiContext *cxt) {
callIncrementHandler(); callIncrementHandler();
} }
} }
break; } else if (button_next_long == buttons) {
case BUTTON_B_LONG:
if (xTaskGetTickCount() + (*autoRepeatAcceleration) > (*autoRepeatTimer) + PRESS_ACCEL_INTERVAL_MAX) { if (xTaskGetTickCount() + (*autoRepeatAcceleration) > (*autoRepeatTimer) + PRESS_ACCEL_INTERVAL_MAX) {
(*autoRepeatTimer) = xTaskGetTickCount(); (*autoRepeatTimer) = xTaskGetTickCount();
(*autoRepeatAcceleration) += PRESS_ACCEL_STEP; (*autoRepeatAcceleration) += PRESS_ACCEL_STEP;
} else { newMode = moveToNextEntry(cxt);
break;
} }
/* Fall through*/ } else if (button_next == buttons) {
case BUTTON_B_SHORT:
// Increment menu item // Increment menu item
newMode = moveToNextEntry(cxt); newMode = moveToNextEntry(cxt);
break; } else {
// default
default:
break;
} }
if ((PRESS_ACCEL_INTERVAL_MAX - (*autoRepeatAcceleration)) < PRESS_ACCEL_INTERVAL_MIN) { if ((PRESS_ACCEL_INTERVAL_MAX - (*autoRepeatAcceleration)) < PRESS_ACCEL_INTERVAL_MIN) {
(*autoRepeatAcceleration) = PRESS_ACCEL_INTERVAL_MAX - PRESS_ACCEL_INTERVAL_MIN; (*autoRepeatAcceleration) = PRESS_ACCEL_INTERVAL_MAX - PRESS_ACCEL_INTERVAL_MIN;
} }
// Otherwise we stay put for next render iteration // Otherwise we stay put for next render iteration
return newMode; return newMode;
} }