Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: RickJ on Thu 16/03/2006 09:29:10

Title: SUGGESTION: AGS_MAX_CONTROLS constant (IMPLEMENTED)
Post by: RickJ on Thu 16/03/2006 09:29:10
We have one for the max number of GUIS so perhaps one for the max number of controls per gui would also be useful? 
Title: Re: AGS_MAX_CONTROLS Constant Addition?
Post by: Pumaman on Thu 16/03/2006 19:37:23
Since you can't create GUI controls at runtime, I'm not sure how this would be useful?
Title: Re: AGS_MAX_CONTROLS Constant Addition?
Post by: RickJ on Fri 17/03/2006 02:20:59
I would use it to size a data structure corresponding to a gui(s) and its controls.    It's easy enough to work without just thought it was worth a mention as a matter of review.   

Oh, and btw, should "bool"  be mentioned in the Scriopt keyword section of the manual?
Title: Re: AGS_MAX_CONTROLS Constant Addition?
Post by: monkey0506 on Fri 17/03/2006 03:11:54
Well...unlike int, float, char, short, etc. bool isn't actually a datatype in AGS.  It's an enumerated value:

enum bool {
  false = 0,
  true = 1
};


ph34r my haxing!11  ph34r m3333!111

:D

So I think that may have something to do with it.
Title: Re: AGS_MAX_CONTROLS Constant Addition?
Post by: RickJ on Fri 17/03/2006 05:56:24
It's not in that section of the maual either  :'(
Title: Re: AGS_MAX_CONTROLS Constant Addition?
Post by: Pumaman on Fri 17/03/2006 12:07:25
QuoteI would use it to size a data structure corresponding to a gui(s) and its controls.    It's easy enough to work without just thought it was worth a mention as a matter of review.   

Ah ok, that sounds reasonable, I'll look into it.

QuoteOh, and btw, should "bool"  be mentioned in the Scriopt keyword section of the manual?

Yes, it probably should, I'll do that.

Edit by strazer:

AGS v2.72 Beta 6:
* Added AGS_MAX_CONTROLS_PER_GUI constant.