Adventure Game Studio | Forums

AGS Development => Editor Development => Topic started by: Lord Vetinari on 20 Dec 2017, 09:18

Title: QOL feature suggestion: scroll bars in GUI editor window
Post by: Lord Vetinari on 20 Dec 2017, 09:18
As the title says. Depending on the resolution and size of your monitor and the size of the GUI (especially if you're working with high resolutions), it's possible that some bits of it end up out of the editor window and, unlike rooms, there's no zoom nor scroll bars to move around and see the whole thing.
I'm working on a small test project at 1920x1200, I'm making a status bar that spans the whole top of the screen (and therefore is 1920 pixels wide), and its left side is constantly out of sight; to work with that corner of the GUI I have to hide the Project tree and Properties windows every time to let the main editor window stretch the whole screen, which is not really a big deal but can get annoying after a while.
Would it be doable to add at least scroll bars?
Title: Re: QOL feature suggestion: scroll bars in GUI editor window
Post by: Cassiebsg on 20 Dec 2017, 19:22
I've reported this problem before too...
Wait until you're working on a different computer with a smaller res... you will never be able to reach those parts... 8-0
Title: Re: QOL feature suggestion: scroll bars in GUI editor window
Post by: Lord Vetinari on 20 Dec 2017, 22:04
I've reported this problem before too...
Wait until you're working on a different computer with a smaller res... you will never be able to reach those parts... 8-0

Yep, very annoying, but there's a workaround for that too: if you un-maximize (is that a word?) AGS's entire window, you can slide it partially out of the screen, then drag one of it's side to resize it. Rinse and repeat until you manage to reach the hidden corner of the GUI, then restore it to it's original size and maximize it again.
Title: Re: QOL feature suggestion: scroll bars in GUI editor window
Post by: Cassiebsg on 21 Dec 2017, 15:21
Nicely thought. (nod)

Though, would be nice to not need workarounds like that. :-\
Title: Re: QOL feature suggestion: scroll bars in GUI editor window
Post by: cat on 21 Dec 2017, 18:42
Would it be doable to add at least scroll bars?
+1

For one game I made a GUI that is twice the size of the screen resolution and is moved during the game. This has two issues: I'm missing scroll bars to see every part of it and I get an annoying warning when compiling.
Title: Re: QOL feature suggestion: scroll bars in GUI editor window
Post by: selmiak on 23 Dec 2017, 01:56
the warning probably has it's use when you resize your game and only see the whole gui and think it's allright and it's an obscure part of your menues you don't bother to check over and over again and compile the game and don't see that it's still twice the new gamesize as it looks okay when just checking the gui in the editor, just one example from the top of my head. So the editor has a reason to warn you of oversize GUIs, but maybe giving the GUI the permission to be bigger than gamesize with a simple option in the GUI editing panel that nulls the warning could help.
maybe even switching this by script at runtime could help, i have no example though, maybe for some guis drawn a runtime, or it is just overkill? but then someone surely finds a reason to change this at runtime for his game in some years and so, I mention it already ;)
Title: Re: QOL feature suggestion: scroll bars in GUI editor window
Post by: cat on 23 Dec 2017, 18:27
When an author resizes the whole game and does not bother to check if it is still working correctly, it can't be helped anyway...
Title: Re: QOL feature suggestion: scroll bars in GUI editor window
Post by: Crimson Wizard on 05 Jul 2018, 17:07
I made scrollbars for the next 3.4.1 patch: https://github.com/adventuregamestudio/ags/pull/466
So annoying to think that the fix could have been made in just several hours, but no one did in years :/.

Depending on how other fixes progress, it may be released in the end of this week, or next one.

Hmm, zoom probably may be added also, since coordinates are now converted using full formulas. Just need to add zoom control (same as in room editor?).
Title: Re: QOL feature suggestion: scroll bars in GUI editor window
Post by: Cassiebsg on 05 Jul 2018, 17:13
Weee :)
You are the best! (nod)
Title: Re: QOL feature suggestion: scroll bars in GUI editor window
Post by: Crimson Wizard on 05 Jul 2018, 21:54
Added zoom controls too, build for a test:
https://www.dropbox.com/s/krs7uanx360og7w/AGSEditor-GUIScroll-3.4.1.zip?dl=0
Title: Re: QOL feature suggestion: scroll bars in GUI editor window
Post by: Crimson Wizard on 11 Jul 2018, 10:27
This made into AGS 3.4.1 - Patch 3, please report any problems in the release thread.