playMaker

Author Topic: Add your own action category?  (Read 3750 times)

hima

  • Playmaker Newbie
  • *
  • Posts: 5
Add your own action category?
« on: June 17, 2011, 12:42:21 AM »
I notice that the action category use one of the pre-defined Enum. Is it possible to make our own group so that it would be easier to group our own custom actions together? If it's possible, how can I do it? I have my own SoundManager class that I want to share and I want to write an extension for PlayMaker so that it can be used with PlayMaker easily.

Thank you in advance!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Add your own action category?
« Reply #1 on: June 17, 2011, 06:52:57 AM »
Hi,

 Yes, simply define it as a string instead of using the predefined ones:

Code: [Select]
[ActionCategory("hello")]

and it will appear.

Bye,

 Jean

hima

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Add your own action category?
« Reply #2 on: June 17, 2011, 08:52:23 AM »
Thanks! Can't believe it's that simple ^ ^ Though I don't think the documentation covered this...Hopefully the documentation will be updated soon!

LordShaggy

  • 1.2 Beta
  • Junior Playmaker
  • *
  • Posts: 50
Re: Add your own action category?
« Reply #3 on: June 17, 2011, 02:25:49 PM »
Hfive to Jean!