narc0tiq / YARM

Yet another variant of the Resource Monitor for Factorio
https://mods.factorio.com/mod/YARM
MIT License
53 stars 40 forks source link

sketch of how to apply a background color to the overview #150

Open wchristian opened 1 year ago

wchristian commented 1 year ago

this is a draft for #123, as a proof of concept for how to apply a bg color

i don't even think to make it togglable a config value is needed, should just be a button that toggles the style of the root element. does that seem right?

image

image

it also needs some handling for making the button available in games that are loaded instead of newly created

narc0tiq commented 1 year ago

I think I'd prefer it as a config value to make it persistent; the player probably expects to find it the same way they left it, regardless of the current world they're playing. So it may as well be a configuration option that we toggle using a button in our UI.

narc0tiq commented 1 year ago

Either way, this seems to work just fine.

wchristian commented 1 year ago

I've added it as is now, but you're right, i'll convert this to a setting soon.