v3.11.4 Documentation
Fungus.EditorUtils.FlowchartWindow Class Reference
Inheritance diagram for Fungus.EditorUtils.FlowchartWindow:
Fungus.EditorUtils.EventWindow

Classes

class  BlockCopy
 
struct  BlockGraphics
 
class  ClipboardObject
 
class  ExecutingBlocks
 Helper class to maintain list of blocks that are currently executing when the game is running in editor More...
 

Public Member Functions

virtual Vector2 GetBlockCenter (Block[] blocks)
 
Block CreateBlock (Flowchart flowchart, Vector2 position)
 
void DeleteBlocks ()
 
- Public Member Functions inherited from Fungus.EditorUtils.EventWindow
 EventWindow ()
 

Static Public Member Functions

static Flowchart GetFlowchart ()
 
static void ShowNotification (string notificationText)
 Displays a temporary text alert in the center of the Flowchart window. More...
 

Public Attributes

const float minZoomValue = 0.25f
 
const float maxZoomValue = 1f
 

Static Public Attributes

static List< BlockdeleteList = new List<Block>()
 

Protected Member Functions

virtual void OnEnable ()
 
virtual void OnDisable ()
 
void ForceRepaint ()
 
void OnEditorUpdate ()
 
void UpdateBlockCollection ()
 
virtual void OnInspectorUpdate ()
 
virtual void OnBecameVisible ()
 
void UpdateFilteredBlocks ()
 
virtual void HandleEarlyEvents (Event e)
 
virtual void OnGUI ()
 
virtual void DrawOverlay (Event e)
 
virtual void DrawVariablesBlock (Event e)
 
virtual void DrawBlockPopup (Event e)
 
Block GetBlockAtPoint (Vector2 point)
 
override void OnMouseDown (Event e)
 
override void OnMouseDrag (Event e)
 
override void OnRawMouseUp (Event e)
 
override void OnScrollWheel (Event e)
 
virtual void DrawFlowchartView (Event e)
 
virtual void CenterFlowchart ()
 
virtual void DoZoom (float delta, Vector2 center)
 
virtual void DrawGrid ()
 
virtual void SelectBlock (Block block)
 
virtual void DeselectAll ()
 
virtual void DrawConnections (Block block)
 
virtual void DrawRectConnection (Rect rectA, Rect rectB, bool highlight)
 
void AddToDeleteList (List< Block > blocks)
 
virtual bool GetAppendModifierDown ()
 
virtual void Copy ()
 
virtual void Cut ()
 
virtual void Paste (Vector2 center, bool relative=false)
 
virtual void Duplicate ()
 
override void OnValidateCommand (Event e)
 
override void OnExecuteCommand (Event e)
 
virtual void CenterBlock (Block block)
 
virtual void CloseBlockPopup ()
 
virtual BlockGraphics GetBlockGraphics (Block block)
 
- Protected Member Functions inherited from Fungus.EditorUtils.EventWindow
delegate void EventAction (Event e)
 
virtual void OnMouseUp (Event e)
 
virtual void OnMouseMove (Event e)
 
virtual void OnContextClick (Event e)
 
virtual void OnKeyDown (Event e)
 
virtual void OnKeyUp (Event e)
 
virtual void OnRawMouseDown (Event e)
 
virtual void OnRawMouseDrag (Event e)
 
virtual void OnRawMouseMove (Event e)
 
virtual void HandleEvents (Event e)
 

Static Protected Member Functions

static void ShowBlockInspector (Flowchart flowchart)
 
static void SetBlockForInspector (Flowchart flowchart, Block block)
 

Protected Attributes

List< BlockCopycopyList = new List<BlockCopy>()
 
Vector2 startDragPosition
 
GUIStyle nodeStyle = new GUIStyle()
 
int forceRepaintCount
 
Texture2D addTexture
 
GUIContent addButtonContent
 
Texture2D connectionPointTexture
 
Rect selectionBox
 
Vector2 startSelectionBoxPosition = -Vector2.one
 
List< BlockmouseDownSelectionState = new List<Block>()
 
Color gridLineColor = Color.black
 
readonly Color connectionColor = new Color(0.65f, 0.65f, 0.65f, 1.0f)
 
Vector2 rightClickDown = -Vector2.one
 
const float rightClickTolerance = 5f
 
const string searchFieldName = "search"
 
Rect searchRect
 
Rect popupRect
 
Block [] filteredBlocks = new Block[0]
 
int blockPopupSelection = -1
 
Vector2 popupScroll
 
Flowchart flowchart
 
int prevVarCount
 
Block [] blocks = new Block[0]
 
Block dragBlock
 
- Protected Attributes inherited from Fungus.EditorUtils.EventWindow
Dictionary< EventType, EventActioneventTable
 
Dictionary< EventType, EventActionrawEventTable
 

Static Protected Attributes

static BlockInspector blockInspector
 
static FungusState fungusState
 
static VariableListAdaptor variableListAdaptor
 

Properties

GUIStyle ToolbarSeachTextFieldStyle [get]
 
GUIStyle ToolbarSeachCancelButtonStyle [get]
 

Detailed Description

Definition at line 14 of file FlowchartWindow.cs.

Member Function Documentation

◆ AddToDeleteList()

void Fungus.EditorUtils.FlowchartWindow.AddToDeleteList ( List< Block blocks)
protected

Definition at line 1542 of file FlowchartWindow.cs.

◆ CenterBlock()

virtual void Fungus.EditorUtils.FlowchartWindow.CenterBlock ( Block  block)
protectedvirtual

Definition at line 1757 of file FlowchartWindow.cs.

◆ CenterFlowchart()

virtual void Fungus.EditorUtils.FlowchartWindow.CenterFlowchart ( )
protectedvirtual

Definition at line 1294 of file FlowchartWindow.cs.

◆ CloseBlockPopup()

virtual void Fungus.EditorUtils.FlowchartWindow.CloseBlockPopup ( )
protectedvirtual

Definition at line 1767 of file FlowchartWindow.cs.

◆ Copy()

virtual void Fungus.EditorUtils.FlowchartWindow.Copy ( )
protectedvirtual

Definition at line 1632 of file FlowchartWindow.cs.

◆ CreateBlock()

Block Fungus.EditorUtils.FlowchartWindow.CreateBlock ( Flowchart  flowchart,
Vector2  position 
)

Definition at line 1362 of file FlowchartWindow.cs.

◆ Cut()

virtual void Fungus.EditorUtils.FlowchartWindow.Cut ( )
protectedvirtual

Definition at line 1642 of file FlowchartWindow.cs.

◆ DeleteBlocks()

void Fungus.EditorUtils.FlowchartWindow.DeleteBlocks ( )

Definition at line 1550 of file FlowchartWindow.cs.

◆ DeselectAll()

virtual void Fungus.EditorUtils.FlowchartWindow.DeselectAll ( )
protectedvirtual

Definition at line 1354 of file FlowchartWindow.cs.

◆ DoZoom()

virtual void Fungus.EditorUtils.FlowchartWindow.DoZoom ( float  delta,
Vector2  center 
)
protectedvirtual

Definition at line 1307 of file FlowchartWindow.cs.

◆ DrawBlockPopup()

virtual void Fungus.EditorUtils.FlowchartWindow.DrawBlockPopup ( Event  e)
protectedvirtual

Definition at line 832 of file FlowchartWindow.cs.

◆ DrawConnections()

virtual void Fungus.EditorUtils.FlowchartWindow.DrawConnections ( Block  block)
protectedvirtual

Definition at line 1375 of file FlowchartWindow.cs.

◆ DrawFlowchartView()

virtual void Fungus.EditorUtils.FlowchartWindow.DrawFlowchartView ( Event  e)
protectedvirtual

Definition at line 1179 of file FlowchartWindow.cs.

◆ DrawGrid()

virtual void Fungus.EditorUtils.FlowchartWindow.DrawGrid ( )
protectedvirtual

Definition at line 1318 of file FlowchartWindow.cs.

◆ DrawOverlay()

virtual void Fungus.EditorUtils.FlowchartWindow.DrawOverlay ( Event  e)
protectedvirtual

Definition at line 670 of file FlowchartWindow.cs.

◆ DrawRectConnection()

virtual void Fungus.EditorUtils.FlowchartWindow.DrawRectConnection ( Rect  rectA,
Rect  rectB,
bool  highlight 
)
protectedvirtual

Definition at line 1458 of file FlowchartWindow.cs.

◆ DrawVariablesBlock()

virtual void Fungus.EditorUtils.FlowchartWindow.DrawVariablesBlock ( Event  e)
protectedvirtual

Definition at line 773 of file FlowchartWindow.cs.

◆ Duplicate()

virtual void Fungus.EditorUtils.FlowchartWindow.Duplicate ( )
protectedvirtual

Definition at line 1675 of file FlowchartWindow.cs.

◆ ForceRepaint()

void Fungus.EditorUtils.FlowchartWindow.ForceRepaint ( )
protected

Definition at line 275 of file FlowchartWindow.cs.

◆ GetAppendModifierDown()

virtual bool Fungus.EditorUtils.FlowchartWindow.GetAppendModifierDown ( )
protectedvirtual

Definition at line 1627 of file FlowchartWindow.cs.

◆ GetBlockAtPoint()

Block Fungus.EditorUtils.FlowchartWindow.GetBlockAtPoint ( Vector2  point)
protected

Definition at line 897 of file FlowchartWindow.cs.

◆ GetBlockCenter()

virtual Vector2 Fungus.EditorUtils.FlowchartWindow.GetBlockCenter ( Block []  blocks)
virtual

Definition at line 1272 of file FlowchartWindow.cs.

◆ GetBlockGraphics()

virtual BlockGraphics Fungus.EditorUtils.FlowchartWindow.GetBlockGraphics ( Block  block)
protectedvirtual

Definition at line 1773 of file FlowchartWindow.cs.

◆ GetFlowchart()

static Flowchart Fungus.EditorUtils.FlowchartWindow.GetFlowchart ( )
static

Definition at line 407 of file FlowchartWindow.cs.

◆ HandleEarlyEvents()

virtual void Fungus.EditorUtils.FlowchartWindow.HandleEarlyEvents ( Event  e)
protectedvirtual

Definition at line 468 of file FlowchartWindow.cs.

◆ OnBecameVisible()

virtual void Fungus.EditorUtils.FlowchartWindow.OnBecameVisible ( )
protectedvirtual

Definition at line 389 of file FlowchartWindow.cs.

◆ OnDisable()

virtual void Fungus.EditorUtils.FlowchartWindow.OnDisable ( )
protectedvirtual

Definition at line 269 of file FlowchartWindow.cs.

◆ OnEditorUpdate()

void Fungus.EditorUtils.FlowchartWindow.OnEditorUpdate ( )
protected

Definition at line 280 of file FlowchartWindow.cs.

◆ OnEnable()

virtual void Fungus.EditorUtils.FlowchartWindow.OnEnable ( )
protectedvirtual

Definition at line 243 of file FlowchartWindow.cs.

◆ OnExecuteCommand()

override void Fungus.EditorUtils.FlowchartWindow.OnExecuteCommand ( Event  e)
protectedvirtual

Reimplemented from Fungus.EditorUtils.EventWindow.

Definition at line 1709 of file FlowchartWindow.cs.

◆ OnGUI()

virtual void Fungus.EditorUtils.FlowchartWindow.OnGUI ( )
protectedvirtual

Definition at line 609 of file FlowchartWindow.cs.

◆ OnInspectorUpdate()

virtual void Fungus.EditorUtils.FlowchartWindow.OnInspectorUpdate ( )
protectedvirtual

Definition at line 345 of file FlowchartWindow.cs.

◆ OnMouseDown()

override void Fungus.EditorUtils.FlowchartWindow.OnMouseDown ( Event  e)
protectedvirtual

Reimplemented from Fungus.EditorUtils.EventWindow.

Definition at line 914 of file FlowchartWindow.cs.

◆ OnMouseDrag()

override void Fungus.EditorUtils.FlowchartWindow.OnMouseDrag ( Event  e)
protectedvirtual

Reimplemented from Fungus.EditorUtils.EventWindow.

Definition at line 982 of file FlowchartWindow.cs.

◆ OnRawMouseUp()

override void Fungus.EditorUtils.FlowchartWindow.OnRawMouseUp ( Event  e)
protectedvirtual

Reimplemented from Fungus.EditorUtils.EventWindow.

Definition at line 1064 of file FlowchartWindow.cs.

◆ OnScrollWheel()

override void Fungus.EditorUtils.FlowchartWindow.OnScrollWheel ( Event  e)
protectedvirtual

Reimplemented from Fungus.EditorUtils.EventWindow.

Definition at line 1165 of file FlowchartWindow.cs.

◆ OnValidateCommand()

override void Fungus.EditorUtils.FlowchartWindow.OnValidateCommand ( Event  e)
protectedvirtual

Reimplemented from Fungus.EditorUtils.EventWindow.

Definition at line 1683 of file FlowchartWindow.cs.

◆ Paste()

virtual void Fungus.EditorUtils.FlowchartWindow.Paste ( Vector2  center,
bool  relative = false 
)
protectedvirtual

Definition at line 1650 of file FlowchartWindow.cs.

◆ SelectBlock()

virtual void Fungus.EditorUtils.FlowchartWindow.SelectBlock ( Block  block)
protectedvirtual

Definition at line 1347 of file FlowchartWindow.cs.

◆ SetBlockForInspector()

static void Fungus.EditorUtils.FlowchartWindow.SetBlockForInspector ( Flowchart  flowchart,
Block  block 
)
staticprotected

Definition at line 1605 of file FlowchartWindow.cs.

◆ ShowBlockInspector()

static void Fungus.EditorUtils.FlowchartWindow.ShowBlockInspector ( Flowchart  flowchart)
staticprotected

Definition at line 1590 of file FlowchartWindow.cs.

◆ ShowNotification()

static void Fungus.EditorUtils.FlowchartWindow.ShowNotification ( string  notificationText)
static

Displays a temporary text alert in the center of the Flowchart window.

Definition at line 1618 of file FlowchartWindow.cs.

◆ UpdateBlockCollection()

void Fungus.EditorUtils.FlowchartWindow.UpdateBlockCollection ( )
protected

Definition at line 330 of file FlowchartWindow.cs.

◆ UpdateFilteredBlocks()

void Fungus.EditorUtils.FlowchartWindow.UpdateFilteredBlocks ( )
protected

Definition at line 444 of file FlowchartWindow.cs.

Member Data Documentation

◆ addButtonContent

GUIContent Fungus.EditorUtils.FlowchartWindow.addButtonContent
protected

Definition at line 184 of file FlowchartWindow.cs.

◆ addTexture

Texture2D Fungus.EditorUtils.FlowchartWindow.addTexture
protected

Definition at line 183 of file FlowchartWindow.cs.

◆ blockInspector

BlockInspector Fungus.EditorUtils.FlowchartWindow.blockInspector
staticprotected

Definition at line 181 of file FlowchartWindow.cs.

◆ blockPopupSelection

int Fungus.EditorUtils.FlowchartWindow.blockPopupSelection = -1
protected

Definition at line 200 of file FlowchartWindow.cs.

◆ blocks

Block [] Fungus.EditorUtils.FlowchartWindow.blocks = new Block[0]
protected

Definition at line 204 of file FlowchartWindow.cs.

◆ connectionColor

readonly Color Fungus.EditorUtils.FlowchartWindow.connectionColor = new Color(0.65f, 0.65f, 0.65f, 1.0f)
protected

Definition at line 190 of file FlowchartWindow.cs.

◆ connectionPointTexture

Texture2D Fungus.EditorUtils.FlowchartWindow.connectionPointTexture
protected

Definition at line 185 of file FlowchartWindow.cs.

◆ copyList

List<BlockCopy> Fungus.EditorUtils.FlowchartWindow.copyList = new List<BlockCopy>()
protected

Definition at line 175 of file FlowchartWindow.cs.

◆ deleteList

List<Block> Fungus.EditorUtils.FlowchartWindow.deleteList = new List<Block>()
static

Definition at line 176 of file FlowchartWindow.cs.

◆ dragBlock

Block Fungus.EditorUtils.FlowchartWindow.dragBlock
protected

Definition at line 205 of file FlowchartWindow.cs.

◆ filteredBlocks

Block [] Fungus.EditorUtils.FlowchartWindow.filteredBlocks = new Block[0]
protected

Definition at line 199 of file FlowchartWindow.cs.

◆ flowchart

Flowchart Fungus.EditorUtils.FlowchartWindow.flowchart
protected

Definition at line 202 of file FlowchartWindow.cs.

◆ forceRepaintCount

int Fungus.EditorUtils.FlowchartWindow.forceRepaintCount
protected

Definition at line 182 of file FlowchartWindow.cs.

◆ fungusState

FungusState Fungus.EditorUtils.FlowchartWindow.fungusState
staticprotected

Definition at line 206 of file FlowchartWindow.cs.

◆ gridLineColor

Color Fungus.EditorUtils.FlowchartWindow.gridLineColor = Color.black
protected

Definition at line 189 of file FlowchartWindow.cs.

◆ maxZoomValue

const float Fungus.EditorUtils.FlowchartWindow.maxZoomValue = 1f

Definition at line 179 of file FlowchartWindow.cs.

◆ minZoomValue

const float Fungus.EditorUtils.FlowchartWindow.minZoomValue = 0.25f

Definition at line 178 of file FlowchartWindow.cs.

◆ mouseDownSelectionState

List<Block> Fungus.EditorUtils.FlowchartWindow.mouseDownSelectionState = new List<Block>()
protected

Definition at line 188 of file FlowchartWindow.cs.

◆ nodeStyle

GUIStyle Fungus.EditorUtils.FlowchartWindow.nodeStyle = new GUIStyle()
protected

Definition at line 180 of file FlowchartWindow.cs.

◆ popupRect

Rect Fungus.EditorUtils.FlowchartWindow.popupRect
protected

Definition at line 198 of file FlowchartWindow.cs.

◆ popupScroll

Vector2 Fungus.EditorUtils.FlowchartWindow.popupScroll
protected

Definition at line 201 of file FlowchartWindow.cs.

◆ prevVarCount

int Fungus.EditorUtils.FlowchartWindow.prevVarCount
protected

Definition at line 203 of file FlowchartWindow.cs.

◆ rightClickDown

Vector2 Fungus.EditorUtils.FlowchartWindow.rightClickDown = -Vector2.one
protected

Definition at line 193 of file FlowchartWindow.cs.

◆ rightClickTolerance

const float Fungus.EditorUtils.FlowchartWindow.rightClickTolerance = 5f
protected

Definition at line 194 of file FlowchartWindow.cs.

◆ searchFieldName

const string Fungus.EditorUtils.FlowchartWindow.searchFieldName = "search"
protected

Definition at line 195 of file FlowchartWindow.cs.

◆ searchRect

Rect Fungus.EditorUtils.FlowchartWindow.searchRect
protected

Definition at line 197 of file FlowchartWindow.cs.

◆ selectionBox

Rect Fungus.EditorUtils.FlowchartWindow.selectionBox
protected

Definition at line 186 of file FlowchartWindow.cs.

◆ startDragPosition

Vector2 Fungus.EditorUtils.FlowchartWindow.startDragPosition
protected

Definition at line 177 of file FlowchartWindow.cs.

◆ startSelectionBoxPosition

Vector2 Fungus.EditorUtils.FlowchartWindow.startSelectionBoxPosition = -Vector2.one
protected

Definition at line 187 of file FlowchartWindow.cs.

◆ variableListAdaptor

VariableListAdaptor Fungus.EditorUtils.FlowchartWindow.variableListAdaptor
staticprotected

Definition at line 208 of file FlowchartWindow.cs.

Property Documentation

◆ ToolbarSeachCancelButtonStyle

GUIStyle Fungus.EditorUtils.FlowchartWindow.ToolbarSeachCancelButtonStyle
getprotected

Definition at line 227 of file FlowchartWindow.cs.

◆ ToolbarSeachTextFieldStyle

GUIStyle Fungus.EditorUtils.FlowchartWindow.ToolbarSeachTextFieldStyle
getprotected

Definition at line 216 of file FlowchartWindow.cs.


The documentation for this class was generated from the following file: