Skip to main content

Class View

Declaration
public abstract class View : MonoBehaviour

Derived:
MatchinghamGames.StockholmCore.BaseView, MatchinghamGames.StockholmCore.View<TModel>

Properties

IsOpening

Returns if open or close animation is playing.

Declaration
public bool IsOpening { get; set; }

IsClosing

Returns if open or close animation is playing.

Declaration
public bool IsClosing { get; set; }

IsOpen

Returns if View fully open.

Declaration
public bool IsOpen { get; set; }

IsBound

Declaration
public bool IsBound { get; set; }

Fields

resetBeforeOpenCall

Declaration
protected bool resetBeforeOpenCall

keepBindingsOnWhenClosed

Declaration
protected bool keepBindingsOnWhenClosed

OnOpenBegin

Event thrown when the Open animation begins

Declaration
public View.OnOpenBeginEvent OnOpenBegin

OnOpenEnd

Event thrown when the Open animation ends

Declaration
public View.OnOpenEndEvent OnOpenEnd

OnCloseBegin

Event thrown when the Close animation begins

Declaration
public View.OnCloseBeginEvent OnCloseBegin

OnCloseEnd

Event thrown when the Close animation ends

Declaration
public View.OnCloseEndEvent OnCloseEnd

Methods

InitiateOpen()

Declaration
protected abstract void InitiateOpen()

InitiateClose()

Declaration
protected abstract void InitiateClose()

InitiateReset()

Declaration
protected abstract void InitiateReset()

AddHandlers()

Declaration
protected abstract void AddHandlers()

RemoveHandlers()

Declaration
protected abstract void RemoveHandlers()

OnOpenCommandGiven()

Declaration
protected virtual void OnOpenCommandGiven()

OnCloseCommandGiven()

Declaration
protected virtual void OnCloseCommandGiven()

OnResetCommandGiven()

Declaration
protected virtual void OnResetCommandGiven()

Initialize()

Declaration
public virtual void Initialize()

ResetView()

Resets the view back to the initial condition

Declaration
public virtual void ResetView()

Open()

Activates the gameobject immediately. Call Bind when overriding

Declaration
public virtual void Open()

Close()

Deactivates the gameobject immediately. Call Unbind when overriding

Declaration
public virtual void Close()

OnBindingUpdate()

Declaration
protected virtual void OnBindingUpdate()