-
Notifications
You must be signed in to change notification settings - Fork 440
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
Fixing guidebook not resizable from left and right #5618
base: master
Are you sure you want to change the base?
Fixing guidebook not resizable from left and right #5618
Conversation
issue 34504 in space-wizards/space-station-14 needs this fix
i also discovered that silicon laws menu also couldn't be resized on sides |
oh wait, this change should apply to all windows, sorry |
a safer and more error resistent solution to space-wizards/space-station-14#34504
I haven't ever looked at window resizing code before, but from what I see IMO the current engine code is probably fine as is? The "Move" and "Resize" drag operations are always going to be mutually exclusive, and IMO it makes sense that if the move flag is set, it takes priority over resizing. Instead I think the problem is just that space-wizards/space-station-14/pull/12681 gave Though it also seems like FancyWindow doesn't have large enough margins/padding on the window contents. I.e., default window has |
this doesn't really change any behavior or logic. I just made sure the cursor changes shape if it has the right combination of flags. even before the change the window was resizable just fine without the cursor changing shape. |
issue 34504 in space-wizards/space-station-14 needs this fix
It happens that the value DragMode.Move prevents the switch case from catching left and right because the code in ss14 looks like this
so basically the equal sign removes the Move value in every other case leaving the guidebook window cursor not changing on left and right and here is a video of working solution
https://drive.google.com/file/d/1UTgJGoV_96P2-TyJa1No1gHP9FXIL7Kd/view?usp=sharing
and i also fixed the corresponding code on ss14 repo and will make another pull request there