Teshynil / combatready

Combat ready indicator to remind players of their turn, as well as time taken.
GNU General Public License v3.0
5 stars 1 forks source link

Theming - Create a Template for custom themes #17

Closed Gensokian closed 2 years ago

Gensokian commented 2 years ago

I personally love the ability to create themes, but right now I was not able to reverse engineer the default theme enough to completely understand where to put my code for the "Your turn / Next up / New Round" animations.

by the by, what is the default "new round" animation? I couldn't find any animation for that when testing the animation. 🤔 I might just be blind though :)

Teshynil commented 2 years ago

Hi @Gensokian, currently i am busy with work so i could not implement the template for custom themes but i create this repo combatreadythemes that maybe with help you in create a theme. The logic is the same for timers and animations the only thing you need to do is create a class and implement the methods form the base class. For the new round animation, in the base theme there isn't a New Round Animation, but you could check /src/module/themes.ts the class NativeAnimationTheme follows the same logic that any custom theme should follow

Teshynil commented 2 years ago

Also i didn't have any inspiration to create animation themes or timers so i leave the themes repository on hold