SUGGESTION: AGS_MAX_CONTROLS constant (IMPLEMENTED)

Started by RickJ, Thu 16/03/2006 09:29:10

Previous topic - Next topic

RickJ

We have one for the max number of GUIS so perhaps one for the max number of controls per gui would also be useful? 

Pumaman

Since you can't create GUI controls at runtime, I'm not sure how this would be useful?

RickJ

#2
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?

monkey0506

Well...unlike int, float, char, short, etc. bool isn't actually a datatype in AGS.  It's an enumerated value:

Code: ags
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.

RickJ

It's not in that section of the maual either  :'(

Pumaman

#5
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.

SMF spam blocked by CleanTalk