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

Interface window child elements do not size & position properly #1777

Open
amylizzle opened this issue May 11, 2024 · 0 comments
Open

Interface window child elements do not size & position properly #1777

amylizzle opened this issue May 11, 2024 · 0 comments
Labels
Client Involves the OpenDream client

Comments

@amylizzle
Copy link
Contributor

There's a bug somewhere in the pos/size handling for working out UI element positioning.

This is messed up:

window "wingetwindow"
	elem "wingetwindow"
		type = MAIN
		size = 200x180
		title = "winget test"
		is-visible = true
	elem "wingetinput"
		type = INPUT
		pos = 5,0
		size = 190,19
		text = "this is some test text"
	elem "wingetbuttonarg"
		type = BUTTON
		pos = 0,40
		size = 0,20
		text = "as arg"
		command = "wingettextverb \"arg: [[wingetwindow.background-color as arg]]\""
	elem "wingetbuttonesc"
		type = BUTTON
		pos = 0,60
		size = 0,20
		text = "as escaped"
		command = "wingettextverb \"escaped: [[wingetwindow.background-color as escaped]]\""
	elem "wingetbuttonstr"
		type = BUTTON
		pos = 0,80
		size = 0,20
		text = "as string"
		command = "wingettextverb \"string: [[wingetwindow.background-color as string]]\""		
	elem "wingetbuttonpar"
		type = BUTTON
		pos = 0,100
		size = 0,20
		text = "as params"
		command = "wingettextverb \"params: [[wingetwindow.background-color as params]]\""	
	elem "wingetbuttonjson"
		type = BUTTON
		pos = 0,120
		size = 0,20
		text = "as json"
		command = "wingettextverb \"json: [[wingetwindow.background-color as json]]\""
	elem "wingetbuttonjsondm"
		type = BUTTON
		pos = 0,140
		size = 0,20
		text = "as json-dm"
		command = "wingettextverb \"json-dm: [[wingetwindow.background-color as json-dm]]\""		
	elem "wingetbuttonraw"
		type = BUTTON
		pos = 0,160
		size = 0,20
		text = "as raw"
		command = "wingettextverb \"raw: [[wingetwindow.background-color as raw]]\""
@wixoaGit wixoaGit added the Client Involves the OpenDream client label May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client Involves the OpenDream client
Projects
None yet
Development

No branches or pull requests

2 participants