topeterk / HitCounterManager

Free Hit Counter / Death Counter that is running in the background, so you can focus on your stream. No need to keep any windows open for a window capture any more. Initially designed for Dark Souls and similar games but supports any game.
MIT License
87 stars 19 forks source link

Feature Request: Table left / center / right alignment in settings #35

Closed LeCarbonator closed 6 months ago

LeCarbonator commented 6 months ago

Is your feature request related to a problem? Please describe. When going through a long list with only showing X splits, you often have varying table widths depending on the current split name lengths. Since the default CSS centers the table in the obs source, that often causes the sides to clip out of frame during streaming. It would be convenient if you could set what side the table should expand towards to avoid clipping.

Describe the solution you'd like Add a select menu with 3 options to Settings > Style > Table alignment, that being Left | Center | Right. That value could be read by the Hit Counter GUI to set margin-left (and margin-right respectively) to 0.

Describe alternatives you've considered As it is right now, the value can be hardcoded in the stylesheet directly. However, this requires changing if you have different layouts for different games. I would be able to help out regarding the JavaScript, but I have no C# experience, so I'm reluctant to implement my own solution without knowing how to test it properly

Additional context image image image