-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Multiple In-Game overlays #60
Comments
Ok, so I had a quick look at https://www.github.com/l3lackShark/config. I found, that the way, that I laid out here will not work. Instead I propose, to just add a Number, after each
Of course, this requires, that there is a overlay entry, from 0-n, because otherwise it will end up getting messy. Or how about |
This will require a lot of changes on the c++ side of things. I'm not even sure if it's a good idea to have two instances of the browser (possible huge performance drop). Will check if it's reliable at some point. |
I am talking about potentially a lot more instances, than two. I mean, like a scaleable solution.
var socket = undefined;
var modulesJsCallbacks = [];
function getdatastuff(callback){
if (socket) socket=initws()
switch(wseventtype){
case "resize":
handleRezise()
break
case "move":
handleMove()
break;
case "partialTransfer":
handlePartialTransfer(callback)
break;
case "fullTransfer":
handleFullTransfer(callback)
break;
case "addModule":
handleLoadModule()
break;
case "rmModule":
handleUnloadModule()
break;
}
}
getdatastuff((data)=>{
modulesJsCallbacks.forEach((i)=>i(data))
} Then one could containerize (div elements?) the individual counters. The individual counters could still be moved via CSS, but the positioning will have to happen as a websocket event. The Module offset could still be stored via the config, but the first thing, that would have to happen is a move and resize event for all loaded modules. |
The biggest issue is the legacy opengl calls we use to draw the overlay. The more pixels you have to push the worsen it becomes. This is probably fine with a couple of small overlays, but then again, c++ side of things also need a huge change to add support for that. The ideal solution would be switching to |
Idea
Add support to add multiple In-Game overlays.
This could be beneficial, to have a regular pp counter, like you normally would, and have a few, select statistics displayed, via simple
Name: Value
formatting.eg. UR on the top right of osu! and Simplistic on the topp left.
Config
In the config, you could allow to have multiple sections of
[GameOverlay]
in the (regex) format of[GameOverlay[[:digit:]]*?]
. Then only the part, that actually reads the config needs to change, as now there are just 2 Counter Objects instead of one (if that is, how the programm is structured).The text was updated successfully, but these errors were encountered: