Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: semie on February 15, 2014, 08:19:02 PM

Title: Custom Action Category [SOLVED]
Post by: semie on February 15, 2014, 08:19:02 PM
I would like to create some custom action categories for my custom actions. For example I have Killer Waves installed and the Playmaker custom actions load into the ScriptControl action category. I would like them in their own category named Killer Waves.
I have changed the [ActionCategory(ActionCategory.ScriptControl)] to [ActionCategory(ActionCategory.KillerWaves)] this has not achieved what I was after as he actions remain in the scriptcontrol category.
Cheers
Title: Re: Custom Action Category
Post by: Marsh on February 15, 2014, 08:25:11 PM
[ActionCategory("KillerWaves")]
Title: Re: Custom Action Category
Post by: semie on February 15, 2014, 08:37:10 PM
I did try that but I am receiving a parser warning value is invalid attribute target. All attributes in this section will be ignored.
Even when I save it with the warning the action remains in the ScriptControl category??
Title: Re: Custom Action Category
Post by: Marsh on February 15, 2014, 09:25:16 PM
Thats what im using and it works fine. Post all your code. Maybe you have it in the wrong spot.
Title: Re: Custom Action Category
Post by: semie on February 15, 2014, 09:38:28 PM
Yeah you are absolutely correct, I did not take enough time when working through it, see below my error.
I used [ActionCategory(ActionCategory."KillerWaves")]
I needed to use [ActionCategory("KillerWaves")]

Thanks for your help with this.