Gorilla.UI.Dialogue.FlowChart
Unit Gorilla.UI.Dialogue.FlowChart.pasClasses
- TFlowChartDialoguePattern = class ( TFlowChartContainerPattern )
- TFlowChartDialogueDeletablePattern = class ( TFlowChartDialoguePattern )
- TFlowChartDialogueCharacterPattern = class ( TFlowChartDialogueDeletablePattern )
- TFlowChartDialogueItemPattern = class ( TFlowChartDialogueDeletablePattern )
- TFlowChartDialogueEventPattern = class ( TFlowChartDialogueDeletablePattern )
- TGorillaDialogueFlowChartFrame = class ( TPanel )
Records
- record TItemReference
TFlowChartDialoguePattern
Ancestors
Members
Fields
Methods
- public destructor Destroy ( ) ;
- protected function GetEditButton ( ) : TButton ; virtual;
- protected function GetEditIcon ( ) : TImage ; virtual;
- protected procedure DoOnSetup ( ) ; override;
- public procedure SetEditIconImage ( const AImages : TImageList; const AIndex : Integer ) ;
- public procedure MarkAsEditing ( ) ;
- public procedure UnmarkAsEditing ( ) ;
Properties
TFlowChartDialogueDeletablePattern
Ancestors
Members
Fields
Methods
- protected procedure DoOnDelete ( ASender : TObject ) ; abstract virtual;
- protected procedure DoOnSetup ( ) ; override;
- protected function GetDeleteButton ( ) : TButton ; virtual;
- protected function GetTrashIcon ( ) : TImage ; virtual;
- public procedure SetTrashIconImage ( const AImages : TImageList; const AIndex : Integer ) ;
Properties
TFlowChartDialogueCharacterPattern
TFlowChartDialogueItemPattern
TFlowChartDialogueEventPattern
TGorillaDialogueFlowChartFrame
Ancestors
Members
Fields
- private FFlowChart :
TFlowChartFrame
- private FManager :
TFlowChartManagerFrame
- private FEditorF :
TFlowChartEditorFrame
- private FScrollBox :
TVertScrollBox
- private FTranslation :
TGorillaDialogueTranslationFrame
- private FParameters :
TGorillaDialogueParametersFrame
- private FIsEditing :
Boolean
- private FCurrentEdit :
TFlowChartDialoguePattern
- private FSplitter1 :
TSplitter
- private FPanel1 :
TPanel
- private FProjectGrp :
TControl
- private FPrjGrpIcn :
TImage
- private FPrjGrpLbl :
TLabel
- private FPrjGrpName :
TEdit
- private FDialoguesGrp :
TControl
- private FDlgGrpIcn :
TImage
- private FDlgGrpLbl :
TLabel
- private FDlgGrpCmbBx :
TComboBox
- private FLanguageGrp :
TControl
- private FLngGrpLbl :
TLabel
- private FLngGrpIcn :
TImage
- private FLngGrpCmbBx :
TComboBox
- protected FImageList :
TImageList
- protected FDialogueSys :
TGorillaDialogueSystem
- protected FCurrentDialogue :
TGorillaDialogue
- protected FReferences :
TList<Gorilla.UI.Dialogue.FlowChart.TItemReference>
Methods
- public constructor Create ( AOwner : TComponent ) ;
- public destructor Destroy ( ) ;
- private procedure DialogSelectorChange ( Sender : TObject ) ;
- private procedure LanguageSelectorChange ( Sender : TObject ) ;
- protected procedure SetLanguage ( ) ;
- protected procedure UpdateAllPatterns ( ) ;
- protected procedure DoOnGetDisplayName ( ASender : TFlowChartPattern; var AName : string ) ;
- protected procedure DoOnGetCharacterDisplayName ( ASender : TFlowChartPattern; var AName : string ) ;
- protected procedure DoOnBeforeDialogueBuild ( ATemplate : TFlowChartPattern; const AParent : TFlowChartPattern; var AAllowed : Boolean; var AInstance : TObject ) ; virtual;
- protected procedure DoOnBeforeCharacterBuild ( ATemplate : TFlowChartPattern; const AParent : TFlowChartPattern; var AAllowed : Boolean; var AInstance : TObject ) ; virtual;
- protected procedure DoOnBeforeItemBuild ( ATemplate : TFlowChartPattern; const AParent : TFlowChartPattern; var AAllowed : Boolean; var AInstance : TObject ) ; virtual;
- protected procedure DoOnBeforeEventBuild ( ATemplate : TFlowChartPattern; const AParent : TFlowChartPattern; var AAllowed : Boolean; var AInstance : TObject ) ; virtual;
- protected procedure DoOnEventPatternBuilt ( ASender : TFlowChartPattern; const ASource : TFlowChartPattern ) ; virtual;
- protected procedure DoOnItemPatternBuilt ( ASender : TFlowChartPattern; const ASource : TFlowChartPattern ) ; virtual;
- protected procedure DoOnCharacterPatternBuilt ( ASender : TFlowChartPattern; const ASource : TFlowChartPattern ) ; virtual;
- protected procedure DoOnDialoguePatternBuilt ( ASender : TFlowChartPattern; const ASource : TFlowChartPattern ) ; virtual;
- protected function GetReferencePattern
(
const
AId :
string
)
: TFlowChartPattern
;
virtual;
This method will look up all TComponents inside of the embedded flowchart for a specific pattern of a specific instance with the AId. The instance needs to be a TGorillaDialogueCustomItem.
- protected procedure DoOnCanUnattach ( ASource : TFlowChartPattern; ADest : TFlowChartPattern; var AAllowed : Boolean ) ; virtual;
- protected procedure DoOnCanAttachItem ( ASource : TFlowChartPattern; ADest : TFlowChartPattern; var AAllowed : Boolean ) ; virtual;
- protected procedure DoOnItemAttached ( ASender : TFlowChartPattern; const ASource : TFlowChartPattern ) ; virtual;
- protected procedure DoOnItemUnattached ( ASender : TFlowChartPattern; const ASource : TFlowChartPattern ) ; virtual;
- protected procedure DoOnEventUncontained ( ASender : TFlowChartPattern; const ASource : TFlowChartPattern ) ; virtual;
- protected procedure DoOnCharacterUncontained ( ASender : TFlowChartPattern; const ASource : TFlowChartPattern ) ; virtual;
- protected procedure DoOnPatternMoved ( ASender : TFlowChartPattern ) ; virtual;
- protected procedure DoOnHeaderClick ( Sender : TObject ) ; virtual;
- protected procedure DoOnCheckBoxClick ( Sender : TObject ) ; virtual;
- protected procedure DoOnEditApply ( const AItem : TObject; const AUIElement : TFlowChartPattern ) ; virtual;
- protected function DoOnGorillaDialogueEditControlLoad ( const AParent : TFmxObject; const AItem : TObject; const AName : string; const AType : PTypeInfo; const ATypeKind : TTypeKind; const AValue : TValue; const AIsWritable : Boolean; var AHandled : Boolean ) : Single ; virtual;
- protected function DoOnGorillaDialogueEditUnknownTypeFound ( const AItem : TObject; const AName : string; const AType : PTypeInfo; const ATypeKind : TTypeKind; const AValue : TValue; const AIsWritable : Boolean ) : Single ; virtual;
- protected procedure UpdateDialogueItemEvent ( const AUIElement : TFlowChartContainerPattern; const AEvent : TGorillaDialogueItemEvent ) ; virtual;
- protected procedure UpdateDialogueItem ( const AUIElement : TFlowChartContainerPattern; const AItem : TGorillaDialogueItem ) ; virtual;
- protected procedure UpdateDialogueCharacter ( const AUIElement : TFlowChartContainerPattern; const ACharacter : TGorillaDialogueCharacter ) ; virtual;
- protected procedure UpdateDialogue ( const AUIElement : TFlowChartContainerPattern; const ADialogue : TGorillaDialogue ) ; virtual;
- protected procedure UpdateDialogueSelector ( ) ; virtual;
- protected function GetCurrentLanguage
(
)
: string
;
Get the string identifier of the currently selected language, f.e. "en-us" for index 0.
- protected procedure SetupTemplates
(
)
;
virtual;
This method will setup all necessary patterns and templates for the dialogue system flowchart. Do not call this method manually! It will automatically be executed by the frame constructor!
- public procedure Cleanup
(
)
;
Use this method to clear the embedded flowchart and destroy an existing DialogueSystem
- public procedure ClearFlowChart
(
)
;
Use this method to clear the flowchart. This will only destroy created patterns and not the instances inside of the DialogueSystem.
- public function LoadDialogueItemEvent
(
const
AParent :
TComponent; const
AEvent :
TGorillaDialogueItemEvent
)
: TFlowChartContainerPattern
;
Creates the ui-element for a specific DialogueItemEvent inside a parent DialogueItem-UI-element. The method will return the ui-element which was created for this event.
- public function LoadDialogueItem
(
const
AParent :
TComponent; const
AItem :
TGorillaDialogueItem
)
: TFlowChartContainerPattern
;
Creates the ui-element for a specific DialogueItem inside a parent ui-element. The structure of the flowchart is a component-tree. The method will return the ui-element which was created for this item.
- public function LoadDialogueCharacter
(
const
AParent :
TComponent; const
ACharacter :
TGorillaDialogueCharacter
)
: TFlowChartContainerPattern
;
Creates the ui-element for a specific DialogueCharacter inside a parent ui-element. The structure of the flowchart is a component-tree. The method will return the ui-element which was created for this item.
- public function LoadDialogue
(
const
ADlg :
TGorillaDialogue
)
: TFlowChartContainerPattern
;
Creates the ui-element for a specific Dialogue The structure of the flowchart is a component-tree. The method will return the ui-element which was created for this item.
- public procedure ShowDialogueSystem
(
const
ASystem :
TGorillaDialogueSystem
)
;
load the list of dialogs inside the system into the combobox the first dialogue in the list will automatically be selected and shown up in the flowchart
- public procedure LoadDialogueSystemFromFile
(
const
AFileName :
string
)
;
Load a DialogueSystem from file. The method will clear the flowchart and destroy an existing DialogueSystem. After all instances were loaded from file, the method will automatically set the current language of the LanguageSelector-ComboBox and display the dialogue graph in the embedded flowchart.
Properties
- public DialogueSystem : TGorillaDialogueSystem
- public CurrentDialogue : TGorillaDialogue
- published ImageList : TImageList
public property to apply an imagelist the indices are fixed index icon 0 dialogue 1 item - question 2 item - answer 3 item - flow 4 item - reference 5 item - none / event - none 6 event - text 7 event - image 8 event - audio 9 event - video 10 event - animation 11 event - method 12 event - misc
read FImageList
write FImageList