CarlosFdez / global-progress-clocks

FoundryVTT module for Blades in the Dark style progress clocks that show on the sidebar
MIT License
7 stars 7 forks source link

add customizable clock colors #5

Closed JuanEspinet closed 7 months ago

JuanEspinet commented 1 year ago

Adds the ability to assign custom filled and empty colors to a clock. Existing clocks will default to white and red as before.

JuanEspinet commented 1 year ago

I wanted to also add the ability to configure the default colors, but that was a bit beyond my knowledge of how to create config menus.

CarlosFdez commented 1 year ago

Is there a reason to have the clock colors be per clock instead of per world?

JuanEspinet commented 1 year ago

Yes I was thinking it would be nice to be able to represent clocks that have different meanings with different colors. For example if you have a clock that represents the strength of some enemy you might want it to look different than the clock that represents the strength of your allies.

CarlosFdez commented 1 year ago

Hmm, If its for that purpose the ideal way to handle it might be to have a way to add alternate colors to the world settings. Rather than each clock having a specific color value, it could have a dropdown selecting from all available configured color options.

That would allow gms to have a consistent look and feel, rather than dealing with a color picker everytime they make a new clock.

I thought the purpose was for theming, that's why I asked if per world wouldn't suffice :^)

JuanEspinet commented 1 year ago

That makes sense, I'm not very familiar with how to add new world settings options and interact with them in Foundry. Can you provide any guidance?

JuanEspinet commented 1 year ago

I think I also saw somewhere that the world settings don't support a color-picker input type natively, so that could be a bit of an annoyance for setting these up through world settings.

CarlosFdez commented 1 year ago

Caught me on vacation. I'll have to try to remember later, but that's unfortunately that there is native color picker available there. I'll dig though.