aoe4world / overlay

Display stats, win-rates and most played civs of you and your opponent as a stream overlay.
https://overlay.aoe4world.com
18 stars 3 forks source link

Make overlay always appear? #4

Open stephen-silveira opened 1 year ago

stephen-silveira commented 1 year ago

I teach alot to my friends how to use the overlay and stuff, and they always think the overlay is bugged cause it appears firstly, then it dissapear until it initiates a new game, there's a way to just keep it, so it does not confuse ppl?

Taloth commented 1 year ago

It's intentional that it fades away 20 seconds after the game status is marked as finished. Otherwise it'd show wrong data when ppl play customs or just observe replays.

Kinda funny coz I think it showing up first is problematic, coz it happens when you switch scenes. I thought about showing some kind of an 'outline' instead of the whole thing on load.

Reason why it's even there is coz we wanted to give ppl something to look at when positioning/scaling the widget in obs. And I couldn't think of a way to detect when ppl are in the obs editor. I really wish there was an css style applied to the document allowing you to detect when it's selected.

Note that enabling "Shutdown source when not visible" would prevent it from reappearing when switching scenes.

That said, I'm not opposed to having an option to control the behavior to keep it visible indefinitely.

stephen-silveira commented 1 year ago

Thanks for the Answer, appreciate you took your time to explain it. I'm saying cause I got some other minor use cases, like, I've added 2 links to my Notion page so I can keep track of my last games in my accounts, lol (and so, I need to look fast or reload cause it dissapears :) ) . And really it makes ppl confusing about if its working or not, I can submit some PR if you want me to as well I can help @Taloth ! Would be a great to have a get param option to something like persistent=1 just for those cases I think.

Thanks again.