Skip to content

OnGuiCallback

Tommo J. Phillips edited this page Oct 22, 2023 · 3 revisions

OnGuiCallback

Namespace: TommoJProductions.ModApi.PlaymakerExtentions

Represents the on gui fsm state action callback.

public class OnGuiCallback : FsmStateActionCallback, HutongGames.PlayMaker.IFsmStateAction

Inheritance Object → FsmStateAction → FsmStateActionCallbackOnGuiCallback
Implements IFsmStateAction

Fields

action

The current delegate.

public Delegate action;

everyFrame

Represents if should loop this untill state is inactive.

public bool everyFrame;

debugActionName

caches the action method name that is subbed to this action callback.

public string debugActionName;

Properties

callbackType

Represents the callback type. ON GUI

public virtual CallbackType callbackType { get; }

Property Value

CallbackType

Name

public string Name { get; set; }

Property Value

String

Fsm

public Fsm Fsm { get; set; }

Property Value

Fsm

Owner

public GameObject Owner { get; set; }

Property Value

GameObject

State

public FsmState State { get; set; }

Property Value

FsmState

Enabled

public virtual bool Enabled { get; set; }

Property Value

Boolean

IsOpen

public bool IsOpen { get; set; }

Property Value

Boolean

Entered

public bool Entered { get; set; }

Property Value

Boolean

Finished

public bool Finished { get; set; }

Property Value

Boolean

Active

public bool Active { get; set; }

Property Value

Boolean

Constructors

OnGuiCallback(Action, Boolean)

constructor

public OnGuiCallback(Action onGuiAction, bool everyFrame)

Parameters

onGuiAction Action
the action to perfrom on gui.

everyFrame Boolean
should this on gui call be invoked every frame?

OnGuiCallback(Func<Boolean>, Boolean)

constructor

public OnGuiCallback(Func<bool> func, bool everyFrame)

Parameters

func Func<Boolean>
the action to perfrom on gui. returns weather this state action is finished or not.

everyFrame Boolean
should this on gui call be invoked every frame?

Methods

OnGUI()

GUI Method

public virtual void OnGUI()

Events

onInvokeAction

The action to invoke.

public event Action onInvokeAction;

inInvokeAction

The func to invoke.

public event Func<bool> inInvokeAction;
Clone this wiki locally