It is currently 09 Sep 2025, 00:56
   
Text Size

New developer tool - Set window size

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

New developer tool - Set window size

Postby drdev » 05 Aug 2013, 09:12

So while investigating how Forge would look at lower resolutions, I decided that, rather than having to mess with my computers actual resolution or having to manually resize the window and either guess or use screen capture to measure the window, it'd be much easier to just add a tool to set the window size.

As a result, I added a new button to the Dev Mode pane titled "Set window size". Clicking it will bring up a prompt which offers the choice of three common resolutions on the low end of the resolutions we officially support.

I hope this tool will prove useful for testing layout changes or new screens/panes so we can avoid releasing anything that looks bad or is unusable at 800x600, or especially at 1024x768 (which is often used as a baseline when designing web sites in terms of how wide to make the site).
drdev
Programmer
 
Posts: 1958
Joined: 27 Jul 2013, 02:07
Has thanked: 189 times
Been thanked: 565 times

Re: New developer tool - Set window size

Postby Max mtg » 05 Aug 2013, 11:04

Good idea, that can be useful.

I would also much appreciate an ability to preserve window size and position between launches.
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times

Re: New developer tool - Set window size

Postby drdev » 05 Aug 2013, 14:26

That was actually next up on my list. I was already planning on working on that in the next day or so.
drdev
Programmer
 
Posts: 1958
Joined: 27 Jul 2013, 02:07
Has thanked: 189 times
Been thanked: 565 times

Re: New developer tool - Set window size

Postby drdev » 07 Aug 2013, 15:52

Just committed support for remembering window size and position between sessions in r22830.

http://www.slightlymagic.net/forum/viewtopic.php?f=52&t=11420
drdev
Programmer
 
Posts: 1958
Joined: 27 Jul 2013, 02:07
Has thanked: 189 times
Been thanked: 565 times

Re: New developer tool - Set window size

Postby drdev » 25 Aug 2013, 18:00

Quick update. As of r23016, this feature as been moved to the Layout menu and is thus available from all screens, even when not in Developer mode.
drdev
Programmer
 
Posts: 1958
Joined: 27 Jul 2013, 02:07
Has thanked: 189 times
Been thanked: 565 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 32 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 32 users online :: 0 registered, 0 hidden and 32 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 32 guests

Login Form