playMaker

Author Topic: More Action Attributes for Custom Actions  (Read 6363 times)

koen.pis

  • Playmaker Newbie
  • *
  • Posts: 11
More Action Attributes for Custom Actions
« on: March 29, 2011, 06: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 ...)
« Last Edit: March 29, 2011, 08:26:34 AM by koen.pis »

e.Ko

  • Administrator
  • Playmaker Newbie
  • *****
  • Posts: 13
Re: More Action Attributes for Custom Actions
« Reply #1 on: March 29, 2011, 09: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...

koen.pis

  • Playmaker Newbie
  • *
  • Posts: 11
Re: More Action Attributes for Custom Actions
« Reply #2 on: March 29, 2011, 10: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.