playMaker

Author Topic: Custom Action Category [SOLVED]  (Read 2798 times)

semie

  • Playmaker Newbie
  • *
  • Posts: 21
Custom Action Category [SOLVED]
« 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
« Last Edit: February 15, 2014, 09:50:19 PM by Alex Chouls »

Marsh

  • Full Member
  • ***
  • Posts: 227
  • Comfort the disturbed, disturb the comfortable
Re: Custom Action Category
« Reply #1 on: February 15, 2014, 08:25:11 PM »
[ActionCategory("KillerWaves")]

semie

  • Playmaker Newbie
  • *
  • Posts: 21
Re: Custom Action Category
« Reply #2 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??

Marsh

  • Full Member
  • ***
  • Posts: 227
  • Comfort the disturbed, disturb the comfortable
Re: Custom Action Category
« Reply #3 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.

semie

  • Playmaker Newbie
  • *
  • Posts: 21
Re: Custom Action Category
« Reply #4 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.