1
0
forked from me/IronOS

Animated icons (#866)

* Add animation Icons

* 2D dimensional array

* Added animation to GUI

* Added Adnimation Speed setting

* Added loop

* Added Loop switch

* Use Checkbox instead of +/-

* Animations can now be turned off

* Optimize animation code

* Move animation options to UI settings
This commit is contained in:
PlayDay
2021-03-15 08:01:12 +01:00
committed by GitHub
parent c7d69b37c5
commit 2796f095af
34 changed files with 1174 additions and 239 deletions

View File

@@ -289,6 +289,20 @@
"voltage"
],
"desc": "Minimum allowed voltage per cell <Volts> <3S — 3.0V - 3.7V, 4/5/6S — 2.4V - 3.7V>"
},
"AnimLoop": {
"text2": [
"Anim.",
"loop"
],
"desc": "Loop icon animations in root menu"
},
"AnimSpeed": {
"text2": [
"Anim.",
"speed"
],
"desc": "Speed of icon animations in root menu <Miliseconds> <O=off | L=low | M=medium | H=high>"
}
}
}
}

View File

@@ -289,6 +289,20 @@
"voltage"
],
"desc": "Minimum allowed voltage per cell <Volts> <3S — 3.0V - 3.7V, 4/5/6S — 2.4V - 3.7V>"
},
"AnimLoop": {
"text2": [
"Anim.",
"loop"
],
"desc": "Loop icon animations in root menu"
},
"AnimSpeed": {
"text2": [
"Anim.",
"speed"
],
"desc": "Speed of icon animations in root menu <Miliseconds> <O=off | L=low | M=medium | H=high>"
}
}
}
}

View File

@@ -289,6 +289,20 @@
"voltage"
],
"desc": "Minimum allowed voltage per cell <Volts> <3S — 3.0V - 3.7V, 4/5/6S — 2.4V - 3.7V>"
},
"AnimLoop": {
"text2": [
"Anim.",
"loop"
],
"desc": "Loop icon animations in root menu"
},
"AnimSpeed": {
"text2": [
"Anim.",
"speed"
],
"desc": "Speed of icon animations in root menu <Miliseconds> <O=off | L=low | M=medium | H=high>"
}
}
}
}

View File

@@ -290,6 +290,20 @@
"voltage"
],
"desc": "Minimum allowed voltage per cell <Volts> <3S — 3.0V - 3.7V, 4/5/6S — 2.4V - 3.7V>"
},
"AnimLoop": {
"text2": [
"Anim.",
"loop"
],
"desc": "Loop icon animations in root menu"
},
"AnimSpeed": {
"text2": [
"Anim.",
"speed"
],
"desc": "Speed of icon animations in root menu <Miliseconds> <O=off | L=low | M=medium | H=high>"
}
}
}

View File

@@ -290,6 +290,20 @@
"voltage"
],
"desc": "Minimum allowed voltage per cell <Volts> <3S — 3.0V - 3.7V, 4/5/6S — 2.4V - 3.7V>"
},
"AnimLoop": {
"text2": [
"Anim.",
"loop"
],
"desc": "Loop icon animations in root menu"
},
"AnimSpeed": {
"text2": [
"Anim.",
"speed"
],
"desc": "Speed of icon animations in root menu <Miliseconds> <O=off | L=low | M=medium | H=high>"
}
}
}

View File

@@ -289,6 +289,20 @@
"voltage"
],
"desc": "Minimum allowed voltage per cell <Volts> <3S — 3.0V - 3.7V, 4/5/6S — 2.4V - 3.7V>"
},
"AnimLoop": {
"text2": [
"Anim.",
"loop"
],
"desc": "Loop icon animations in root menu"
},
"AnimSpeed": {
"text2": [
"Anim.",
"speed"
],
"desc": "Speed of icon animations in root menu <Miliseconds> <O=off | L=low | M=medium | H=high>"
}
}
}
}

View File

@@ -289,6 +289,20 @@
"voltage"
],
"desc": "Minimum allowed voltage per cell <Volts> <3S — 3.0V - 3.7V, 4/5/6S — 2.4V - 3.7V>"
},
"AnimLoop": {
"text2": [
"Anim.",
"loop"
],
"desc": "Loop icon animations in root menu"
},
"AnimSpeed": {
"text2": [
"Anim.",
"speed"
],
"desc": "Speed of icon animations in root menu <Miliseconds> <O=off | L=low | M=medium | H=high>"
}
}
}
}

View File

@@ -289,6 +289,20 @@
"minimale"
],
"desc": "Tension minimale autorisée par cellule <Volts> <3S — 3.0V - 3.7V, 4/5/6S — 2.4V - 3.7V>"
},
"AnimLoop": {
"text2": [
"Anim.",
"loop"
],
"desc": "Loop icon animations in root menu"
},
"AnimSpeed": {
"text2": [
"Anim.",
"speed"
],
"desc": "Speed of icon animations in root menu <Miliseconds> <O=off | L=low | M=medium | H=high>"
}
}
}

View File

@@ -289,6 +289,20 @@
"voltage"
],
"desc": "Minimum allowed voltage per cell <Volts> <3S — 3.0V - 3.7V, 4/5/6S — 2.4V - 3.7V>"
},
"AnimLoop": {
"text2": [
"Anim.",
"loop"
],
"desc": "Loop icon animations in root menu"
},
"AnimSpeed": {
"text2": [
"Anim.",
"speed"
],
"desc": "Speed of icon animations in root menu <Miliseconds> <O=off | L=low | M=medium | H=high>"
}
}
}
}

View File

@@ -289,6 +289,20 @@
"voltage"
],
"desc": "Minimum allowed voltage per cell <Volts> <3S — 3.0V - 3.7V, 4/5/6S — 2.4V - 3.7V>"
},
"AnimLoop": {
"text2": [
"Anim.",
"loop"
],
"desc": "Loop icon animations in root menu"
},
"AnimSpeed": {
"text2": [
"Anim.",
"speed"
],
"desc": "Speed of icon animations in root menu <Miliseconds> <O=off | L=low | M=medium | H=high>"
}
}
}

View File

@@ -289,6 +289,20 @@
"voltage"
],
"desc": "Minimum allowed voltage per cell <Volts> <3S — 3.0V - 3.7V, 4/5/6S — 2.4V - 3.7V>"
},
"AnimLoop": {
"text2": [
"Anim.",
"loop"
],
"desc": "Loop icon animations in root menu"
},
"AnimSpeed": {
"text2": [
"Anim.",
"speed"
],
"desc": "Speed of icon animations in root menu <Miliseconds> <O=off | L=low | M=medium | H=high>"
}
}
}

View File

@@ -289,6 +289,20 @@
"voltage"
],
"desc": "Minimum allowed voltage per cell <Volts> <3S — 3.0V - 3.7V, 4/5/6S — 2.4V - 3.7V>"
},
"AnimLoop": {
"text2": [
"Anim.",
"loop"
],
"desc": "Loop icon animations in root menu"
},
"AnimSpeed": {
"text2": [
"Anim.",
"speed"
],
"desc": "Speed of icon animations in root menu <Miliseconds> <O=off | L=low | M=medium | H=high>"
}
}
}
}

View File

@@ -289,6 +289,20 @@
"voltage"
],
"desc": "Minimum allowed voltage per cell <Volts> <3S — 3.0V - 3.7V, 4/5/6S — 2.4V - 3.7V>"
},
"AnimLoop": {
"text2": [
"Anim.",
"loop"
],
"desc": "Loop icon animations in root menu"
},
"AnimSpeed": {
"text2": [
"Anim.",
"speed"
],
"desc": "Speed of icon animations in root menu <Miliseconds> <O=off | L=low | M=medium | H=high>"
}
}
}
}

View File

@@ -289,6 +289,20 @@
"voltage"
],
"desc": "Minimum allowed voltage per cell <Volts> <3S — 3.0V - 3.7V, 4/5/6S — 2.4V - 3.7V>"
},
"AnimLoop": {
"text2": [
"Anim.",
"loop"
],
"desc": "Loop icon animations in root menu"
},
"AnimSpeed": {
"text2": [
"Anim.",
"speed"
],
"desc": "Speed of icon animations in root menu <Miliseconds> <O=off | L=low | M=medium | H=high>"
}
}
}
}

View File

@@ -289,6 +289,20 @@
"voltage"
],
"desc": "Minimum allowed voltage per cell <Volts> <3S — 3.0V - 3.7V, 4/5/6S — 2.4V - 3.7V>"
},
"AnimLoop": {
"text2": [
"Anim.",
"loop"
],
"desc": "Loop icon animations in root menu"
},
"AnimSpeed": {
"text2": [
"Anim.",
"speed"
],
"desc": "Speed of icon animations in root menu <Miliseconds> <O=off | L=low | M=medium | H=high>"
}
}
}
}

View File

@@ -290,6 +290,20 @@
"napięcie"
],
"desc": "Minimalne dozwolone napięcie na komórkę <W woltach> <3S — 3.0V - 3.7V, 4/5/6S — 2.4V - 3.7V>"
},
"AnimLoop": {
"text2": [
"Anim.",
"loop"
],
"desc": "Loop icon animations in root menu"
},
"AnimSpeed": {
"text2": [
"Anim.",
"speed"
],
"desc": "Speed of icon animations in root menu <Miliseconds> <O=off | L=low | M=medium | H=high>"
}
}
}

View File

@@ -289,6 +289,20 @@
"voltage"
],
"desc": "Minimum allowed voltage per cell <Volts> <3S — 3.0V - 3.7V, 4/5/6S — 2.4V - 3.7V>"
},
"AnimLoop": {
"text2": [
"Anim.",
"loop"
],
"desc": "Loop icon animations in root menu"
},
"AnimSpeed": {
"text2": [
"Anim.",
"speed"
],
"desc": "Speed of icon animations in root menu <Miliseconds> <O=off | L=low | M=medium | H=high>"
}
}
}
}

View File

@@ -289,6 +289,20 @@
"напр."
],
"desc": "Минимальное разрешенное напряжение на ячейку <В вольтах> <3S — 3.0V - 3.7V, 4/5/6S — 2.4V - 3.7V>"
},
"AnimLoop": {
"text2": [
"Зацикленная",
"анимация"
],
"desc": "Зацикленная анимация иконок в главном меню"
},
"AnimSpeed": {
"text2": [
"Скорость",
"анимации"
],
"desc": "Скорость анимации иконок в главном меню <Милисекунды> <О=Отключено, Н=Низкий, С=Средний, В=Высокий>"
}
}
}

View File

@@ -289,6 +289,20 @@
"voltage"
],
"desc": "Minimum allowed voltage per cell <Volts> <3S — 3.0V - 3.7V, 4/5/6S — 2.4V - 3.7V>"
},
"AnimLoop": {
"text2": [
"Anim.",
"loop"
],
"desc": "Loop icon animations in root menu"
},
"AnimSpeed": {
"text2": [
"Anim.",
"speed"
],
"desc": "Speed of icon animations in root menu <Miliseconds> <O=off | L=low | M=medium | H=high>"
}
}
}

View File

@@ -289,6 +289,20 @@
"voltage"
],
"desc": "Minimum allowed voltage per cell <Volts> <3S — 3.0V - 3.7V, 4/5/6S — 2.4V - 3.7V>"
},
"AnimLoop": {
"text2": [
"Anim.",
"loop"
],
"desc": "Loop icon animations in root menu"
},
"AnimSpeed": {
"text2": [
"Anim.",
"speed"
],
"desc": "Speed of icon animations in root menu <Miliseconds> <O=off | L=low | M=medium | H=high>"
}
}
}
}

View File

@@ -289,6 +289,20 @@
"voltage"
],
"desc": "Minimum allowed voltage per cell <Volts> <3S — 3.0V - 3.7V, 4/5/6S — 2.4V - 3.7V>"
},
"AnimLoop": {
"text2": [
"Anim.",
"loop"
],
"desc": "Loop icon animations in root menu"
},
"AnimSpeed": {
"text2": [
"Anim.",
"speed"
],
"desc": "Speed of icon animations in root menu <Miliseconds> <O=off | L=low | M=medium | H=high>"
}
}
}
}

View File

@@ -289,6 +289,20 @@
"voltage"
],
"desc": "Minimum allowed voltage per cell <Volts> <3S — 3.0V - 3.7V, 4/5/6S — 2.4V - 3.7V>"
},
"AnimLoop": {
"text2": [
"Anim.",
"loop"
],
"desc": "Loop icon animations in root menu"
},
"AnimSpeed": {
"text2": [
"Anim.",
"speed"
],
"desc": "Speed of icon animations in root menu <Miliseconds> <O=off | L=low | M=medium | H=high>"
}
}
}
}

View File

@@ -289,6 +289,20 @@
"voltage"
],
"desc": "Minimum allowed voltage per cell <Volts> <3S — 3.0V - 3.7V, 4/5/6S — 2.4V - 3.7V>"
},
"AnimLoop": {
"text2": [
"Anim.",
"loop"
],
"desc": "Loop icon animations in root menu"
},
"AnimSpeed": {
"text2": [
"Anim.",
"speed"
],
"desc": "Speed of icon animations in root menu <Miliseconds> <O=off | L=low | M=medium | H=high>"
}
}
}
}

View File

@@ -307,6 +307,20 @@
"voltage"
],
"desc": "Minimum allowed voltage per cell <Volts> <3S — 3.0V - 3.7V, 4/5/6S — 2.4V - 3.7V>"
},
"AnimLoop": {
"text2": [
"Anim.",
"loop"
],
"desc": "Loop icon animations in root menu"
},
"AnimSpeed": {
"text2": [
"Anim.",
"speed"
],
"desc": "Speed of icon animations in root menu <Miliseconds> <O=off | L=low | M=medium | H=high>"
}
}
}
}

View File

@@ -289,6 +289,20 @@
"напруга"
],
"desc": "Мінімальна дозволена напруга на комірку <В вольтах> <3S — 3.0V - 3.7V, 4/5/6S — 2.4V - 3.7V>"
},
"AnimLoop": {
"text2": [
"Зациклена",
"анімація"
],
"desc": "Зациклена анімація іконок в головному меню"
},
"AnimSpeed": {
"text2": [
"Швидкість",
"анімації"
],
"desc": "Швидкість анімації іконок у головному меню <Мілісекунди> <В=Вимк, Н=Низькa, С=Середня, М=Макс>"
}
}
}

View File

@@ -290,6 +290,20 @@
"voltage"
],
"desc": "Minimum allowed voltage per cell <Volts> <3S — 3.0V - 3.7V, 4/5/6S — 2.4V - 3.7V>"
},
"AnimLoop": {
"text2": [
"Anim.",
"loop"
],
"desc": "Loop icon animations in root menu"
},
"AnimSpeed": {
"text2": [
"Anim.",
"speed"
],
"desc": "Speed of icon animations in root menu <Miliseconds> <O=off | L=low | M=medium | H=high>"
}
}
}

View File

@@ -290,6 +290,20 @@
"voltage"
],
"desc": "Minimum allowed voltage per cell <Volts> <3S — 3.0V - 3.7V, 4/5/6S — 2.4V - 3.7V>"
},
"AnimLoop": {
"text2": [
"Anim.",
"loop"
],
"desc": "Loop icon animations in root menu"
},
"AnimSpeed": {
"text2": [
"Anim.",
"speed"
],
"desc": "Speed of icon animations in root menu <Miliseconds> <O=off | L=low | M=medium | H=high>"
}
}
}

View File

@@ -362,6 +362,16 @@ var def =
"id": "MinVolCell",
"maxLen": 4,
"maxLen2": 9
},
{
"id": "AnimLoop",
"maxLen": 6,
"maxLen2": 13
},
{
"id": "AnimSpeed",
"maxLen": 6,
"maxLen2": 13
}
]
}