David Volovskiy
a539bd7da7
Don't try to cycle through presets if the preset count is one
2024-09-08 18:03:16 -04:00
Matheus Afonso Martins Moreira
7a4424b2d4
faces/tally: convert size into compile time const
...
Creates a macro that returns the size of the presets array,
converting it into a compile time constant value that occupies
no memory and that compilers can constant fold into other expressions
potentially leading to dead code elimination.
2024-09-08 18:53:42 -03:00
Matheus Afonso Martins Moreira
e4e0b611f3
faces/tally: avoid resetting counters
...
Don't reset the counters unless there are multiple presets.
Move back to the first face directly if there are no presets
to cycle through.
2024-09-08 18:49:09 -03:00
Matheus Afonso Martins Moreira
6b7ea8bbaa
faces/tally: add yugioh life point presets
...
Add common Yu-Gi-Oh card game life point preset values
for the tally face, opt in by defining a preprocessor macro.
2024-09-08 18:39:55 -03:00
Matheus Afonso Martins Moreira
531bcfd285
faces/tally: make mtg presets optin via macros
...
Use preprocessor macros to conditionally compile in Magic the Gathering
initial value presets for the tally mark, thereby making them opt in.
2024-09-08 18:38:53 -03:00
David Volovskiy
137906e14a
Added more presets to the tally face
2024-09-08 17:23:53 -04:00
David Volovskiy
c02ec307ff
Tally face sound now uses the preference's beep so decrementing fast can happen immedietly
2024-09-08 11:44:01 -04:00
David Volovskiy
002f5bc242
Updated the tally couter face to allow for presets, negative numbers, fast scrolling, and toggling sound
2024-09-08 11:39:48 -04:00
Jeremy O'Brien
2b22ecc8e4
add default loop handler to all current watch faces
2023-01-25 09:23:50 -06:00
Andrew Mike
280d8b246a
New watch face: Tally counter (tally_face) ( #160 )
...
* Add tally face
* Fix copyright block to reflect real author
* Fix indentation
* More style editing, edited comments
* silence warning in tally_face
Co-authored-by: Andrew Mike <andrew@7thmagic.net>
Co-authored-by: joeycastillo <joeycastillo@utexas.edu>
2023-01-10 17:02:41 -05:00