adventuregamestudio / ags

AGS editor and engine source code
Other
705 stars 159 forks source link

Editor: "graphical scene" navigation controls shared between Room and GUI Editors #2578

Open ivan-mogilko opened 1 day ago

ivan-mogilko commented 1 day ago

The proposal is to have either a parent control class, or at least a conveniently shared code for both Room Editor and GUI Editor, that supports uniform navigation around the scene area:

using same mouse and keyboard combination and hotkeys.

Use Room Editor as a reference, as it supports everything necessary.

Current Room Editor controls, from my memory:

ericoporto commented 1 day ago

Not sure if I am doing something wrong, but the spacebar pan doesn't seem to work on my notebook, I wonder if it's keyboard just doesn't support holding the spacebar like it does holding Ctrl, Alt or other modifier keys. I googled and found a ton of people with the problem of spacebar pan not working in Photoshop. If there was a tool in the toolbar, then it could use a shortcut that activates it and later deactivates it - or at least just clicking the tool button directly. I noticed this when I wanted to try to fix the other issue about cursor glitches but I couldn't activate it.

ivan-mogilko commented 1 day ago

To double check, are you holding only Space, or Space + LMB?

ericoporto commented 1 day ago

Hold space, and then I left click with the mouse to drag. It works on my desktop but not on my notebook.

ivan-mogilko commented 1 day ago

I noticed that there's a problem with panning with middle mouse button, it looks like the panning mode keeps turning off for a split second, and this causes "freezes" while moving. Idk if the Editor's problem or something is wrong with my mouse device (it's pretty old).

ericoporto commented 1 day ago

Uhm, I found a person on a forum that says it's an issue with Palm Protection bugging out in notebooks - it thinks I want to type stuff when it sees a spacebar being pressed. It should just block the touchpad but it's apparently blocking mouse clicks...

Trying to figure if there's a way to disable this to test. Edit: nope, can't disable, only doesn't trigger with external keyboard.