playMaker

Author Topic: UserInput-"Tracking" in EditorMode like OnWizardUpdate  (Read 2329 times)

_spring

  • Playmaker Newbie
  • *
  • Posts: 3
UserInput-"Tracking" in EditorMode like OnWizardUpdate
« 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!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: UserInput-"Tracking" in EditorMode like OnWizardUpdate
« Reply #1 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

_spring

  • Playmaker Newbie
  • *
  • Posts: 3
Re: UserInput-"Tracking" in EditorMode like OnWizardUpdate
« Reply #2 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;
        }
}



jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: UserInput-"Tracking" in EditorMode like OnWizardUpdate
« Reply #3 on: August 29, 2012, 07:08:48 AM »
interesting work around, will keep that in mind.

bye,

 Jean