playMaker

Author Topic: Custom Action InfoBox & List  (Read 3134 times)

LudlowFx

  • Guest
Custom Action InfoBox & List
« on: March 05, 2015, 06:16:53 AM »
Hi,

Well, I hope to explain this properly in English.

I work on a "Custom Action" and I wonder if it is possible to display a "help box" (finally approaching it) via my script alongside the variables? To provide information in addition to the usual "Tooltip".

And another small question for the road. Is it possible to display values from a "List <>" in the State PlayMaker window? This is to give the user a list of choices (drop) preset!

So, hoping you can help me.

LudlowFx
« Last Edit: March 05, 2015, 10:50:55 AM by LudlowFx »

LudlowFx

  • Guest
Re: Custom Action InfoBox & List
« Reply #1 on: March 05, 2015, 10:52:12 AM »
EDIT :

I also wondered, maybe this can be done via a CustomActionEditor?

I tried to create one but there is a big worry. He tells me constantly that CustomActionEditor does not exist ... nowhere elsewhere. example:

Code: [Select]
using HutongGames.PlayMaker.Actions;
using HutongGames.PlayMakerEditor;
using UnityEditor;
using UnityEngine;
using System.Collections;

[CustomActionEditor(typeof(MyScript))]
public class MyScriptActionEditor : CustomActionEditor
{
}

Me renvoi :

Quote
Error   1   The type or namespace name 'CustomActionEditor' could not be found (are you missing a using directive or an assembly reference?)

Error   2   The type or namespace name 'CustomActionEditorAttribute' could not be found (are you missing a using directive or an assembly reference?)

Error   3   The type or namespace name 'CustomActionEditor' could not be found (are you missing a using directive or an assembly reference?)

I'm searching for I do not understand why these errors remain. Do you have any idea?

This story about CustomActionEditor and List<> starts getting crazy ^^ "


Unity 5.0.0f4 and PlayMaker Beta 1.8 and 1.7.8 too.

RE EDIT : Sorry I believed edit not add a reply   >:(

https://hutonggames.fogbugz.com/?W1104 ..... Ne fonctionne plus ? Ou pas à jour ?
« Last Edit: March 05, 2015, 11:20:27 AM by LudlowFx »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Custom Action InfoBox & List
« Reply #2 on: March 06, 2015, 01:37:49 AM »
Salut :)

 ok, so you'll need as well:

using HutongGames.PlayMaker.Actions;

then the namespace errors will go away.

list is available built in actions, check out the BuildString action for example. This can be done via a CustomActionEditor.

 I know Lane showed me a trick to insert a comment in an action, but I can't find it,, I have asekd, I'll get back to you when I know.

Bye,
 
Jean

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: Custom Action InfoBox & List
« Reply #3 on: March 06, 2015, 10:37:07 AM »
There's a list of attributes you can use in Actions here:
https://hutonggames.fogbugz.com/default.asp?W352

We're always open to suggestions for new formatting attributes!

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Custom Action InfoBox & List
« Reply #4 on: March 06, 2015, 11:23:54 AM »
This has been coming up a lot lately so I made a sticky to point to which we can fill with updated information when we resolve new questions.

http://hutonggames.com/playmakerforum/index.php?topic=9754

I think Jean was referring to the DescriptionArea hint. There is an example script in the thread for using it.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Custom Action InfoBox & List
« Reply #5 on: March 06, 2015, 02:07:05 PM »
Hi,

 Thanks Lane!

Bye,

 Jean

LudlowFx

  • Guest
Re: Custom Action InfoBox & List
« Reply #6 on: March 07, 2015, 01:54:05 AM »
Thank you for your answers to all three.

Yes, it was good "DescriptionArea" I was looking to add additional information. Thank you.


Well, for my list so I will have to pass by a CustomActionEditor.
Quote from: jeanfabre
ok, so you'll need as well:

using HutongGames.PlayMaker.Actions;

then the namespace errors will go away.


Final EDIT :

I deleted everything I had written because a friend on our forum (Unity3D-France) gave me the solution.

The problem that I had was simply errors that PlayMaker .dll Editor files were missing from the project.

So I understand now the source of the concern.




But is it normal that removes Unity PlayMakerEditor.dll whenever I sync my project ? In Visual Studio (Express 2013) I have to manually place each time = /
« Last Edit: March 07, 2015, 09:31:07 AM by LudlowFx »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Custom Action InfoBox & List
« Reply #7 on: March 12, 2015, 07:14:47 AM »
Hi,

 what do you mean by "sync", are you on github or some repository system? if that's the case then, PlayMaker should not be corrupted, UNLESS the master version of this rep has not updated itself, which in this case will always create conflicts, so contact the owner of this rep and ask him to update PlayMaker because you are using Unity 5. Which anyway will be odd because you should all be working ont he same version of Unity for a given project. Else you should branch your rep and merge later when all is well on the new branch.

 Bye,

 Jean