mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
remove shitty tgui UI flashing 2: size positioning boogaloo (#92389)
## About The Pull Request i hate this shitty flashing bullshit, i develop a real game that should be taken seriously: https://github.com/user-attachments/assets/eee05688-14d9-486d-8c89-deeb3ab4d45e what if we could live in a world without it oh yeah i did that (again) https://github.com/user-attachments/assets/351a3243-7835-488a-8d5e-405f640660b8 ## Why It's Good For The Game i'm just upstreaming this so it's less work for me to port changes in 2 years if you don't think this shit is good you should look at this spoiler: <details> <summary>bad opinion zone</summary>  </details> direct all people who have billion pixel tall screens who are scared of a single pixel flashing for a frame towards the goonstation ideas and suggestions subforum oh i also wrote this section of the code originally a year ago in #86868 lol, but that only fixed it in IE not wv2 ## Changelog 🆑 fix: tgui windows should now stop flashing for a single frame elsewhere when opening /🆑
This commit is contained in:
@@ -209,9 +209,16 @@ export const backendMiddleware = (store) => {
|
||||
suspendRenderer();
|
||||
clearInterval(suspendInterval);
|
||||
suspendInterval = undefined;
|
||||
Byond.winset(Byond.windowId, {
|
||||
'is-visible': false,
|
||||
});
|
||||
// Tiny window in hell to not show previous content when resumed
|
||||
Byond.winset(Byond.windowId, {
|
||||
size: '1x1',
|
||||
// Due to this, if you have a monitor /below/ the one you play SS13 on,
|
||||
// that will become the 'closest' screen.
|
||||
// If it's a different resolution, TGUI windows will spawn slightly off-center
|
||||
// (positioned relatively to the lower monitor sizing)
|
||||
pos: '1,1000000000',
|
||||
'is-visible': false,
|
||||
});
|
||||
setTimeout(() => focusMap());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user