playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
Add your own action category?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Add your own action category? (Read 3749 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!
Logged
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
Logged
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!
Logged
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!
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
Add your own action category?