Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: subspark on Mon 08/02/2010 07:39:47

Title: [SUGGESTION] Please remove or up the GUIControl limit to 50
Post by: subspark on Mon 08/02/2010 07:39:47
As the title suggests. :) We're making an awesome dynamic save/load system and like many others, we have reached the limit of 30.

Increasing this limit to 50 would solve our issue however I don't really know why there still is a limit on GUI controls. They certainly must be less expensive than the infinite amount of GUIs that can be created.

Cheers,
Sparky.
Title: Re: [SUGGESTION] Please remove or up the GUIControl limit to 50
Post by: Khris on Mon 08/02/2010 10:11:35
Until then, you could use more than one GUI.
Title: Re: [SUGGESTION] Please remove or up the GUIControl limit to 50
Post by: RickJ on Mon 08/02/2010 11:02:46
I support the idea of increasing the limit.

There is some advantage to Khris's suggestion.   If you logically divide up your controls into groups and then put each control on a separate GUI you may find that it is much easier to manage the layout.  For example if you want to move a row of buttons it's very easy if they are on a separate GUI, you just move the GUI.

A more interesting suggestion is to add the ability to add a GUI within a GUI.  How is that different than what we can do now?

1.  Child GUI positions would be relaticve to the parent GUI's position. 

2.  Child properties such as visibility, enabled, etc would be overridden by changes to the parent's corresponding properties.  For example if the parent visible property is set to false parent and children GUIs are not longer visible.  If the parent 's visible property is true then then child GUIs are visible if their visible property is also true.

3.  GUI event handlers.  The child event handlers could be the same as the parent's by default.  In this way controls on child GUIs would be handled the same way as if they were on the parent GUI.

4. Import./Export - Export of  the parent GUI would also include the children by default.  There could be an option to the exclude children if necessary.  Import of the same would include whatever was exported.
Title: Re: [SUGGESTION] Please remove or up the GUIControl limit to 50
Post by: Shane 'ProgZmax' Stevens on Mon 08/02/2010 23:37:48
As a fan of dynamic sizes I'd rather the limit was user defined rather than some arbitrary amount that requires re-adjustment every year or so to accommodate authors with higher requirements.  As always, this becomes an issue of 'quick fix' vs a redesign that will ultimately make 'quick fixes' unnecessary, so I'm definitely in favor of limit removal for any/all content the engine allows.
Title: Re: [SUGGESTION] Please remove or up the GUIControl limit to 50
Post by: Knox on Tue 05/10/2010 22:40:57
Sorry if I replying in an old thread but I would also REALLY like the limits removed completly for gui controls...

In the meantime I can use multiple gui's buts its a pain in the azz!
Title: Re: [SUGGESTION] Please remove or up the GUIControl limit to 50
Post by: monkey0506 on Wed 06/10/2010 01:22:04
Knox, are you still using those GUI.Show and GUI.Hide functions I wrote for you? If so, you could just add exceptions for those GUIs which have controls delegated to other actual GUIs.

if (theGUI == gInventory) {
  gInvWindow.Show();
  gInvButtons.Show();
}


Or the like.
Title: Re: [SUGGESTION] Please remove or up the GUIControl limit to 50
Post by: Knox on Wed 06/10/2010 01:48:15
Hey Monkey!

Oh yeah I still use those...just would be nice to be able to use as many controls you want on gui's without resorting to work-arounds!
Title: Re: [SUGGESTION] Please remove or up the GUIControl limit to 50
Post by: monkey0506 on Wed 06/10/2010 01:51:43
Heh..sorry for not explicitly stating "yes, implementation is nice, but for your personal circumstances Knox, you could use.." :P