Skip to content
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

TGMC: Bad DMF pos handling shrinks the UI #2037

Open
ike709 opened this issue Oct 15, 2024 · 0 comments
Open

TGMC: Bad DMF pos handling shrinks the UI #2037

ike709 opened this issue Oct 15, 2024 · 0 comments
Labels
bug Something isn't working Client Involves the OpenDream client

Comments

@ike709
Copy link
Collaborator

ike709 commented Oct 15, 2024

On TGMC, the UI gets shrunk to a small fraction of the window:

image

This is due to the following proc:

/client/proc/set_fullscreen(fullscreen_mode) // Note: fullscreen_mode is false
	if(fullscreen_mode)
		winset(src, "mainwindow", "is-maximized=false;can-resize=false;titlebar=false")
		winset(src, "mainwindow", "menu=null;statusbar=false")
		winset(src, "mainwindow.split", "pos=0x0")
		winset(src, "mainwindow", "is-maximized=true")
		return
	winset(src, "mainwindow", "is-maximized=false;can-resize=true;titlebar=true")
	winset(src, "mainwindow", "menu=menu;statusbar=true")
	winset(src, "mainwindow.split", "pos=3x0") // This is the problematic line. Commenting it out fixes the issue.
	winset(src, "mainwindow", "is-maximized=true")

Something is up with pos handling.

@ike709 ike709 added bug Something isn't working Client Involves the OpenDream client labels Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Client Involves the OpenDream client
Projects
None yet
Development

No branches or pull requests

1 participant