godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.29k stars 21.05k forks source link

Rotating node does not rotate dropdown lists or dialogs #77140

Open JonnyTech opened 1 year ago

JonnyTech commented 1 year ago

Godot version

4.0.2

System information

Debian

Issue description

Rotating the root node (because I am designing something on a landscape screen that will run on a portrait screen) does not rotate the dropdown items from an option button nor a dialog box.

Steps to reproduce

Create a project in a portrait aspect Add an option button and fill it Set the rotation of the root node to 90 degrees Start the project Notice the option button is correctly rotated Click it to show the items list The list is not rotated Show a dialog box The box is not rotated

Minimal reproduction project

error.zip

JonnyTech commented 1 year ago

Some screenshots in case anyone is interested... 01 02 03

Calinou commented 1 year ago

Popups are spawned in separate windows, and this may be an intentional decision. I'm not sure if it's even technically possible to rotate those.

Rotating the root node (because I am designing something on a landscape screen that will run on a portrait screen) does not rotate the dropdown items from an option button nor a dialog box.

Shouldn't you configure the display to run in portrait mode instead?

JonnyTech commented 1 year ago

Popups are spawned in separate windows, and this may be an intentional decision. I'm not sure if it's even technically possible to rotate those.

I was not sure if they were custom drawn objects and hence rotated with the parent canvas - it just felt wrong having elements partially rotated, especially in a gaming engine where most things should be possible - therefore my question.

Shouldn't you configure the display to run in portrait mode instead?

Indeed, usually, but I mainly develop on my laptop and having the full screen preview (albeit rotated) is easier to view rather than a smaller pillar-box preview.

image

If you check the Minimal reproduction project you will see that I do work with the project in the correct orientation,