Playmaker Forum

PlayMaker Feedback => Feature Requests => Topic started by: koen.pis on March 29, 2011, 03:18:42 AM

Title: More Action Attributes for Custom Actions
Post by: koen.pis on March 29, 2011, 03:18:42 AM
Give us more control over the ui in custom actions.  ;D

The 2 I would love the most:
- Adding a line to split options
- Min, Max Array check/requirment

The first one is easy, the second one how ever ...

I'm using 'KeyCode[]' as type this allows the user to set any array size, but there is no way for me to control this ui bit. Atm, I do a check when we enter the state but that's run time, it would be sweet if we could control this while setting up the state. (I know I can give them a start size in reset but still ...)
Title: Re: More Action Attributes for Custom Actions
Post by: e.Ko on March 29, 2011, 06:08:01 AM
Great suggestions!

Version 1.1 has an ActionSection attribute that lets you organize parameters under a title (or empty string if you just want the divider). Some of the iTween actions have a lot of parameters, so it was useful to be able to divide them up by LookAt, or Path.

We'll get a MinMaxArraySize attribute into a future update.

In the meantime, you could use the ErrorCheck method in a custom action to limit your array size. This should get called whenever an action is edited...
Title: Re: More Action Attributes for Custom Actions
Post by: koen.pis on March 29, 2011, 07:06:27 AM
Glad to see you already got one of them in 1.1 version, that solution sounds even better then a simple line.
I will have a look at the ErrorCheck method, thx for the tip, somehow that one slipped below my radar.