Playmaker Forum

PlayMaker Feedback => Feature Requests => Topic started by: Vertax on February 10, 2015, 04:39:59 AM

Title: Huge attributes request
Post by: Vertax on February 10, 2015, 04:39:59 AM
Hello.

We are currently working on the integration of Online Maps with PlayMaker.
We suggest adding a few new attributes.
It will be very useful for developers and users.

1. Ability to specify the name of the action.
(http://i61.tinypic.com/34sqgpy.png)

This is very useful if:
• The class with the same name already exists, for example GetPosition.
• Name of the action incorrectly comes from the class name, for example:
Class name - Create2DMarker.
Action name - Create 2DMarker.
Correct action name: Create 2D marker.
• The developer just wants to manually specify the name of the action.

2. Ability to specify the label of the variable.
(http://i61.tinypic.com/2rdjat2.png)

3. ResultField
(http://i59.tinypic.com/16c9e39.png)
Almost every action returns the result to the resulting field.
It would be good to add to this field relevant icon.
[ResultField] = [UIHint (UIHint.Variable)] + [UIIcon (UIIcon.Result)]

4. UIIcon
(http://i61.tinypic.com/2nc2jqu.png)
Adds an icon before field label. For example: result, event.

5. RequiredOnceField (string requireGroupID = null)
(http://i59.tinypic.com/2s9uckk.png)
Very often, for action can be used different fields, such as: field1 or field2 + field3 or field4.

6. Group (string groupLabel) and FoldedGroup (string groupLabel)
(http://i60.tinypic.com/25zggsh.png)
Combines fields, adds group label, adds the left indent.
FoldedGroup can be minimized.

7. ConditionField (string otherFieldName, * visibleCondition)
(http://i60.tinypic.com/2q07fah.png)
This field shows only if the other field has a specific value.
VisibleCondition - can be bool or int.

8. UIHint.Label
(http://i62.tinypic.com/s5enbl.png)
Just text, without decorations.


Thank you.

--
Kind Regards,
Infinity Code Team
Title: Re: Huge attributes request
Post by: Alex Chouls on February 11, 2015, 11:25:03 AM
Great suggestions! And thanks for taking the time to mockup them up - it's very helpful.

I'd like to get these into the 1.8.x update cycle...
Title: Re: Huge attributes request
Post by: jeanfabre on March 31, 2015, 02:00:48 AM
Hi,

 Yep, very useful list!

Bye,

 Jean
Title: Re: Huge attributes request
Post by: Lane on March 31, 2015, 06:32:44 AM
Great list with really clear explanations. Thanks for making it.
Title: Re: Huge attributes request
Post by: jeanfabre on April 24, 2015, 01:42:01 AM
Hi,

 Just to add to this very interesting thread, for developers who struggled a bit like me to get into creating these attributes and deal with propertydrawers, I stumbled upon this great and simple source of custom attributes, with interesting c# skills to learn from ( well, better than mine to be precise... :P)

https://github.com/anchan828/property-drawer-collection

Bye,

 Jean