Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: v_yury on March 13, 2012, 03:36:26 AM

Title: Action Editor For Custom Action
Post by: v_yury on March 13, 2012, 03:36:26 AM
Please tell me how to create a custom editor for my custom action in "PlayMaker FSM Editor" window on tab "State".
I need to implement a user interface similar to EventTarget Action Editor. The custom action editor should show/hide groups of fields according to the selection of another field.

Thank you.
Title: Re: Action Editor For Custom Action
Post by: jeanfabre on March 13, 2012, 04:16:10 AM
Hi,

 you can't unfortunatly ( as far as I aware), this is one big constraint at the moment, the action interface only detects your public variables and display them in order. We can not define our own gui interface, Hopefully a future release will provide access to this,

Bye,

 Jean
Title: Re: Action Editor For Custom Action
Post by: v_yury on March 13, 2012, 04:56:35 AM
Thank you for your reply.
I'll wait this feature.
Title: Re: Action Editor For Custom Action
Post by: Alex Chouls on March 14, 2012, 01:02:36 AM
Actually, if you have any ideas for how you'd like this feature to work that would help get it done quicker. Designing this kind of system can take longer than implementing it!

Ideally the dependencies should be expressed as attributes... But I haven't thought about it much beyond that yet...
Title: Re: Action Editor For Custom Action
Post by: jeanfabre on March 15, 2012, 03:02:53 AM
Hi,

 I think that because this would be advanced, we should have raw access to OnInspectorGUI or whatever call you playmaker use internaly to output the various gui element forming the content of an action interface. maybe as a delegate or a method that would override within an editor class ( just like it works on regular monobehavior, you create a class that is responsible for the editor gui)

 That would really be better than attributes, we would be able to provide non Fsm gui to really help the user make the most of a complex action without cluterring the action gui.

Not sure about the complexity or possibility of this tho.


Bye,

 Jean