Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: hima on June 17, 2011, 12:42:21 AM

Title: Add your own action category?
Post by: hima 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!
Title: Re: Add your own action category?
Post by: jeanfabre 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
Title: Re: Add your own action category?
Post by: hima 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!
Title: Re: Add your own action category?
Post by: LordShaggy on June 17, 2011, 02:25:49 PM
Hfive to Jean!