Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: _spring on August 13, 2012, 08:37:19 AM

Title: UserInput-"Tracking" in EditorMode like OnWizardUpdate
Post by: _spring on August 13, 2012, 08:37:19 AM
Is it possible to react on the user input in the editor mode of playmaker, like its possible in the scriptablewizard function "OnWizardUpdate"? (OnWizardUpdate: "This is called "..." whenever the user changes something in the wizard.")

For instance the designer creates a new state, drops my action on it and checks there a boolean var to be true. If he is doing so, the color of the state should change to green. If he unchecks the bool, the color switches back to default.


thanks 4 help!
Title: Re: UserInput-"Tracking" in EditorMode like OnWizardUpdate
Post by: jeanfabre on August 14, 2012, 03:01:05 AM
Hi,

 It would be nice indeed! I'd also like to have delegates on various actions such as creating a fsm variable, or editing a fsm variable, etc etc.

 bye,

 Jean
Title: Re: UserInput-"Tracking" in EditorMode like OnWizardUpdate
Post by: _spring on August 29, 2012, 06:26:27 AM
hi, ive got some news about the topic:

i found out that the ErrorCheck() function is called (i would say on mousemove) in editor mode when the state is focused.

now i can react to the designers input via:
Code: [Select]
.
.
public FsmBool checkMe;
public FsmBool iamAutoChecked;
.
.
.
public override string ErrorCheck()
{
if (checkMe.Value == true)
       {
               iamAutoChecked.Value=true;
        }
}


Title: Re: UserInput-"Tracking" in EditorMode like OnWizardUpdate
Post by: jeanfabre on August 29, 2012, 07:08:48 AM
interesting work around, will keep that in mind.

bye,

 Jean