Files
AppleHillsProduction/Assets/Dialogue/Anne Lise/AnaLiseDialogue.dialoguegraph
tschesky 3807ac652c Add support for images in dialogue windows (#19)
- Extend editor nodes with custom DialogueContent data type that holds either image or text
- Extend the dialogue importer to correctly process the new content into updated RuntimeDialogue content
- Update SpeechBubble to be able to display either text or image
- Add a custom property drawer for the DialogueContent to allow easy switching in graph authoring

Co-authored-by: Michal Pikulski <michal@foolhardyhorizons.com>
Reviewed-on: #19
2025-10-08 09:34:58 +00:00

630 lines
21 KiB
Plaintext

%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &1
MonoBehaviour:
m_ObjectHideFlags: 61
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 790b4d75d92f4b0984310a268dbd952f, type: 3}
m_Name: AnaLiseDialogue
m_EditorClassIdentifier: Unity.GraphToolkit.Editor::Unity.GraphToolkit.Editor.Implementation.GraphObjectImp
m_GraphModel:
rid: 7772910664224079872
references:
version: 2
RefIds:
- rid: -2
type: {class: , ns: , asm: }
- rid: 4008004731853340753
type: {class: UserNodeModelImp, ns: Unity.GraphToolkit.Editor.Implementation, asm: Unity.GraphToolkit.Editor}
data:
m_Guid:
m_Value0: 6467778824587266540
m_Value1: 7193452564224920276
m_HashGuid:
serializedVersion: 2
Hash: ec4951bd922ac259d4ca3f9ffe46d463
m_Version: 2
m_Position: {x: 1353.4972, y: 124.00757}
m_Title:
m_Tooltip:
m_NodePreviewModel:
rid: -2
m_State: 0
m_InputConstantsById:
m_KeyList:
- __option_DialogueLineType
- __option_NoLines
- RequiredPuzzleStep
- LoopThroughDefaultLines
- DefaultDialogueContent
m_ValueList:
- rid: 4008004731853340754
- rid: 4008004731853340755
- rid: 4008004731853340756
- rid: 4008004731853340758
- rid: 7545629632211976319
m_InputPortInfos:
expandedPortsById:
m_KeyList: []
m_ValueList:
m_OutputPortInfos:
expandedPortsById:
m_KeyList: []
m_ValueList:
m_Collapsed: 0
m_CurrentModeIndex: 0
m_ElementColor:
m_Color: {r: 0, g: 0, b: 0, a: 0}
m_HasUserColor: 0
m_Node:
rid: 4008004731853340759
- rid: 4008004731853340754
type: {class: EnumConstant, ns: Unity.GraphToolkit.Editor, asm: Unity.GraphToolkit.Internal.Editor}
data:
m_Value:
m_EnumType:
m_Identification: Editor.Dialogue.DialogueType, AppleHillsEditor, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
m_Value: 0
m_EnumType:
m_Identification: Editor.Dialogue.DialogueType, AppleHillsEditor, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
- rid: 4008004731853340755
type: {class: 'Constant`1[[System.Int32, mscorlib]]', ns: Unity.GraphToolkit.Editor, asm: Unity.GraphToolkit.Internal.Editor}
data:
m_Value: 1
- rid: 4008004731853340756
type: {class: 'Constant`1[[PuzzleStepSO, AppleHillsScripts]]', ns: Unity.GraphToolkit.Editor, asm: Unity.GraphToolkit.Internal.Editor}
data:
m_Value: {fileID: 11400000, guid: ea383d1dee861f54c9a1d4f32a2f6afc, type: 2}
- rid: 4008004731853340758
type: {class: 'Constant`1[[System.Boolean, mscorlib]]', ns: Unity.GraphToolkit.Editor, asm: Unity.GraphToolkit.Internal.Editor}
data:
m_Value: 0
- rid: 4008004731853340759
type: {class: WaitOnPuzzleStep, ns: Editor.Dialogue, asm: AppleHillsEditor}
data:
- rid: 4008004731853340761
type: {class: WireModel, ns: Unity.GraphToolkit.Editor, asm: Unity.GraphToolkit.Internal.Editor}
data:
m_Guid:
m_Value0: 6932912324345496104
m_Value1: 18417093982900946851
m_HashGuid:
serializedVersion: 2
Hash: 28828adf06a73660a387cb4566a996ff
m_Version: 2
m_FromPortReference:
m_NodeModelGuid:
m_Value0: 16442667905250323263
m_Value1: 1906199566597692832
m_NodeModelHashGuid:
serializedVersion: 2
Hash: 3f6b29c4571730e4a01d0f06682e741a
m_UniqueId: out
m_PortDirection: 2
m_PortOrientation: 0
m_Title: out
m_ToPortReference:
m_NodeModelGuid:
m_Value0: 6467778824587266540
m_Value1: 7193452564224920276
m_NodeModelHashGuid:
serializedVersion: 2
Hash: ec4951bd922ac259d4ca3f9ffe46d463
m_UniqueId: in
m_PortDirection: 1
m_PortOrientation: 0
m_Title: in
- rid: 7545629632211976315
type: {class: 'Constant`1[[Dialogue.DialogueContent, AppleHillsScripts]]', ns: Unity.GraphToolkit.Editor, asm: Unity.GraphToolkit.Internal.Editor}
data:
m_Value:
_contentType: 0
_text:
_image: {fileID: 0}
- rid: 7545629632211976316
type: {class: 'Constant`1[[Dialogue.DialogueContent, AppleHillsScripts]]', ns: Unity.GraphToolkit.Editor, asm: Unity.GraphToolkit.Internal.Editor}
data:
m_Value:
_contentType: 0
_text:
_image: {fileID: 0}
- rid: 7545629632211976317
type: {class: 'Constant`1[[Dialogue.DialogueContent, AppleHillsScripts]]', ns: Unity.GraphToolkit.Editor, asm: Unity.GraphToolkit.Internal.Editor}
data:
m_Value:
_contentType: 0
_text:
_image: {fileID: 0}
- rid: 7545629632211976318
type: {class: 'Constant`1[[Dialogue.DialogueContent, AppleHillsScripts]]', ns: Unity.GraphToolkit.Editor, asm: Unity.GraphToolkit.Internal.Editor}
data:
m_Value:
_contentType: 0
_text:
_image: {fileID: 0}
- rid: 7545629632211976319
type: {class: 'Constant`1[[Dialogue.DialogueContent, AppleHillsScripts]]', ns: Unity.GraphToolkit.Editor, asm: Unity.GraphToolkit.Internal.Editor}
data:
m_Value:
_contentType: 0
_text:
_image: {fileID: 0}
- rid: 7772910664224079872
type: {class: GraphModelImp, ns: Unity.GraphToolkit.Editor.Implementation, asm: Unity.GraphToolkit.Editor}
data:
m_Guid:
m_Value0: 12512222319077514355
m_Value1: 17150873362712866472
m_HashGuid:
serializedVersion: 2
Hash: 735c5417e857a4ada8ae3544742404ee
m_Name: AnaLiseDialogue
m_GraphNodeModels:
- rid: 7772910664224079877
- rid: 7772910664224079886
- rid: 7772910664224079896
- rid: 7772910664224079991
- rid: 4008004731853340753
m_GraphWireModels:
- rid: 7772910664224079892
- rid: 7772910664224079902
- rid: 7772910664224079992
- rid: 4008004731853340761
m_GraphStickyNoteModels: []
m_GraphPlacematModels: []
m_GraphVariableModels:
- rid: 7772910664224079882
m_GraphPortalModels: []
m_SectionModels:
- rid: 7772910664224079873
m_LocalSubgraphs: []
m_LastKnownBounds:
serializedVersion: 2
x: 78
y: 124
width: 1802
height: 561
m_GraphElementMetaData:
- m_Guid:
m_Value0: 10309538455896751567
m_Value1: 14906120129720500747
m_HashGuid:
serializedVersion: 2
Hash: cf7df4759ad6128f0b424a2f482dddce
m_Category: 0
m_Index: 0
- m_Guid:
m_Value0: 1535212648940687044
m_Value1: 11171438973580177487
m_HashGuid:
serializedVersion: 2
Hash: c4cecb32c52b4e154f7033c28eec089b
m_Category: 1
m_Index: 0
- m_Guid:
m_Value0: 12707417518092783399
m_Value1: 12907138721686575674
m_HashGuid:
serializedVersion: 2
Hash: 270f7feae7d059b03a5ad14c485e1fb3
m_Category: 0
m_Index: 1
- m_Guid:
m_Value0: 15305994621829574081
m_Value1: 5599396786131344190
m_HashGuid:
serializedVersion: 2
Hash: c1ed309003d169d43e9bd2c9b50db54d
m_Category: 2
m_Index: 0
- m_Guid:
m_Value0: 16442667905250323263
m_Value1: 1906199566597692832
m_HashGuid:
serializedVersion: 2
Hash: 3f6b29c4571730e4a01d0f06682e741a
m_Category: 0
m_Index: 2
- m_Guid:
m_Value0: 1234292408287688994
m_Value1: 10645312452965874667
m_HashGuid:
serializedVersion: 2
Hash: 22f9f2e067162111ebbb125246bfbb93
m_Category: 2
m_Index: 1
- m_Guid:
m_Value0: 16020597250208634681
m_Value1: 11376580431567117424
m_HashGuid:
serializedVersion: 2
Hash: 3917497c519854de70dc3776a0bbe19d
m_Category: 0
m_Index: 3
- m_Guid:
m_Value0: 16677884615795462715
m_Value1: 17249592907585268976
m_HashGuid:
serializedVersion: 2
Hash: 3bd270e1b1bf73e7f0acb7705bdd62ef
m_Category: 2
m_Index: 2
- m_Guid:
m_Value0: 6467778824587266540
m_Value1: 7193452564224920276
m_HashGuid:
serializedVersion: 2
Hash: ec4951bd922ac259d4ca3f9ffe46d463
m_Category: 0
m_Index: 4
- m_Guid:
m_Value0: 6932912324345496104
m_Value1: 18417093982900946851
m_HashGuid:
serializedVersion: 2
Hash: 28828adf06a73660a387cb4566a996ff
m_Category: 2
m_Index: 3
m_EntryPoint:
rid: 7772910664224079877
m_Graph:
rid: 7772910664224079874
- rid: 7772910664224079873
type: {class: SectionModel, ns: Unity.GraphToolkit.Editor, asm: Unity.GraphToolkit.Internal.Editor}
data:
m_Guid:
m_Value0: 4890500893906195122
m_Value1: 9299931750239264800
m_HashGuid:
serializedVersion: 2
Hash: b25202eba68cde4320606358a7fe0f81
m_Version: 2
m_Items:
- rid: 7772910664224079882
m_Title:
- rid: 7772910664224079874
type: {class: DialogueGraph, ns: Editor.Dialogue, asm: AppleHillsEditor}
data:
- rid: 7772910664224079877
type: {class: UserNodeModelImp, ns: Unity.GraphToolkit.Editor.Implementation, asm: Unity.GraphToolkit.Editor}
data:
m_Guid:
m_Value0: 10309538455896751567
m_Value1: 14906120129720500747
m_HashGuid:
serializedVersion: 2
Hash: cf7df4759ad6128f0b424a2f482dddce
m_Version: 2
m_Position: {x: 219.77325, y: 503.44046}
m_Title:
m_Tooltip:
m_NodePreviewModel:
rid: -2
m_State: 0
m_InputConstantsById:
m_KeyList:
- SpeakerName
m_ValueList:
- rid: 7772910664224079878
m_InputPortInfos:
expandedPortsById:
m_KeyList: []
m_ValueList:
m_OutputPortInfos:
expandedPortsById:
m_KeyList: []
m_ValueList:
m_Collapsed: 0
m_CurrentModeIndex: 0
m_ElementColor:
m_Color: {r: 0, g: 0, b: 0, a: 0}
m_HasUserColor: 0
m_Node:
rid: 7772910664224079879
- rid: 7772910664224079878
type: {class: 'Constant`1[[System.String, mscorlib]]', ns: Unity.GraphToolkit.Editor, asm: Unity.GraphToolkit.Internal.Editor}
data:
m_Value:
- rid: 7772910664224079879
type: {class: StartNode, ns: Editor.Dialogue, asm: AppleHillsEditor}
data:
- rid: 7772910664224079882
type: {class: VariableDeclarationModel, ns: Unity.GraphToolkit.Editor, asm: Unity.GraphToolkit.Internal.Editor}
data:
m_Guid:
m_Value0: 1535212648940687044
m_Value1: 11171438973580177487
m_HashGuid:
serializedVersion: 2
Hash: c4cecb32c52b4e154f7033c28eec089b
m_Version: 2
m_Name: AnneLise
m_UniqueId:
m_DataType:
m_Identification: System.String, System.Private.CoreLib, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089
m_IsExposed: 0
m_Scope: 0
m_ShowOnInspectorOnly: 0
m_Tooltip:
m_InitializationValue:
rid: 7772910664224079883
m_Modifiers: 0
m_VariableFlags: 0
- rid: 7772910664224079883
type: {class: 'Constant`1[[System.String, mscorlib]]', ns: Unity.GraphToolkit.Editor, asm: Unity.GraphToolkit.Internal.Editor}
data:
m_Value: Anne Lise
- rid: 7772910664224079886
type: {class: UserNodeModelImp, ns: Unity.GraphToolkit.Editor.Implementation, asm: Unity.GraphToolkit.Editor}
data:
m_Guid:
m_Value0: 12707417518092783399
m_Value1: 12907138721686575674
m_HashGuid:
serializedVersion: 2
Hash: 270f7feae7d059b03a5ad14c485e1fb3
m_Version: 2
m_Position: {x: 426.50287, y: 447.14554}
m_Title:
m_Tooltip:
m_NodePreviewModel:
rid: -2
m_State: 0
m_InputConstantsById:
m_KeyList:
- __option_DialogueLineType
- __option_NoLines
- LoopThroughDefaultLines
- DefaultDialogueContent1
- DefaultDialogueContent2
- DefaultDialogueContent3
m_ValueList:
- rid: 7772910664224079887
- rid: 7772910664224079888
- rid: 7772910664224079890
- rid: 7545629632211976315
- rid: 7545629632211976316
- rid: 7545629632211976317
m_InputPortInfos:
expandedPortsById:
m_KeyList: []
m_ValueList:
m_OutputPortInfos:
expandedPortsById:
m_KeyList: []
m_ValueList:
m_Collapsed: 0
m_CurrentModeIndex: 0
m_ElementColor:
m_Color: {r: 0, g: 0, b: 0, a: 0}
m_HasUserColor: 0
m_Node:
rid: 7772910664224079891
- rid: 7772910664224079887
type: {class: EnumConstant, ns: Unity.GraphToolkit.Editor, asm: Unity.GraphToolkit.Internal.Editor}
data:
m_Value:
m_EnumType:
m_Identification: Editor.Dialogue.DialogueType, AppleHillsEditor, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
m_Value: 1
m_EnumType:
m_Identification: Editor.Dialogue.DialogueType, AppleHillsEditor, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
- rid: 7772910664224079888
type: {class: 'Constant`1[[System.Int32, mscorlib]]', ns: Unity.GraphToolkit.Editor, asm: Unity.GraphToolkit.Internal.Editor}
data:
m_Value: 3
- rid: 7772910664224079890
type: {class: 'Constant`1[[System.Boolean, mscorlib]]', ns: Unity.GraphToolkit.Editor, asm: Unity.GraphToolkit.Internal.Editor}
data:
m_Value: 0
- rid: 7772910664224079891
type: {class: DialogueNode, ns: Editor.Dialogue, asm: AppleHillsEditor}
data:
- rid: 7772910664224079892
type: {class: WireModel, ns: Unity.GraphToolkit.Editor, asm: Unity.GraphToolkit.Internal.Editor}
data:
m_Guid:
m_Value0: 15305994621829574081
m_Value1: 5599396786131344190
m_HashGuid:
serializedVersion: 2
Hash: c1ed309003d169d43e9bd2c9b50db54d
m_Version: 2
m_FromPortReference:
m_NodeModelGuid:
m_Value0: 10309538455896751567
m_Value1: 14906120129720500747
m_NodeModelHashGuid:
serializedVersion: 2
Hash: cf7df4759ad6128f0b424a2f482dddce
m_UniqueId: out
m_PortDirection: 2
m_PortOrientation: 0
m_Title: out
m_ToPortReference:
m_NodeModelGuid:
m_Value0: 12707417518092783399
m_Value1: 12907138721686575674
m_NodeModelHashGuid:
serializedVersion: 2
Hash: 270f7feae7d059b03a5ad14c485e1fb3
m_UniqueId: in
m_PortDirection: 1
m_PortOrientation: 0
m_Title: in
- rid: 7772910664224079896
type: {class: UserNodeModelImp, ns: Unity.GraphToolkit.Editor.Implementation, asm: Unity.GraphToolkit.Editor}
data:
m_Guid:
m_Value0: 16442667905250323263
m_Value1: 1906199566597692832
m_HashGuid:
serializedVersion: 2
Hash: 3f6b29c4571730e4a01d0f06682e741a
m_Version: 2
m_Position: {x: 798.14746, y: 454.518}
m_Title:
m_Tooltip:
m_NodePreviewModel:
rid: -2
m_State: 0
m_InputConstantsById:
m_KeyList:
- __option_DialogueLineType
- __option_NoLines
- LoopThroughDefaultLines
- DefaultDialogueContent
m_ValueList:
- rid: 7772910664224079897
- rid: 7772910664224079898
- rid: 7772910664224079900
- rid: 7545629632211976318
m_InputPortInfos:
expandedPortsById:
m_KeyList: []
m_ValueList:
m_OutputPortInfos:
expandedPortsById:
m_KeyList: []
m_ValueList:
m_Collapsed: 0
m_CurrentModeIndex: 0
m_ElementColor:
m_Color: {r: 0, g: 0, b: 0, a: 0}
m_HasUserColor: 0
m_Node:
rid: 7772910664224079901
- rid: 7772910664224079897
type: {class: EnumConstant, ns: Unity.GraphToolkit.Editor, asm: Unity.GraphToolkit.Internal.Editor}
data:
m_Value:
m_EnumType:
m_Identification: Editor.Dialogue.DialogueType, AppleHillsEditor, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
m_Value: 0
m_EnumType:
m_Identification: Editor.Dialogue.DialogueType, AppleHillsEditor, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
- rid: 7772910664224079898
type: {class: 'Constant`1[[System.Int32, mscorlib]]', ns: Unity.GraphToolkit.Editor, asm: Unity.GraphToolkit.Internal.Editor}
data:
m_Value: 1
- rid: 7772910664224079900
type: {class: 'Constant`1[[System.Boolean, mscorlib]]', ns: Unity.GraphToolkit.Editor, asm: Unity.GraphToolkit.Internal.Editor}
data:
m_Value: 1
- rid: 7772910664224079901
type: {class: DialogueNode, ns: Editor.Dialogue, asm: AppleHillsEditor}
data:
- rid: 7772910664224079902
type: {class: WireModel, ns: Unity.GraphToolkit.Editor, asm: Unity.GraphToolkit.Internal.Editor}
data:
m_Guid:
m_Value0: 1234292408287688994
m_Value1: 10645312452965874667
m_HashGuid:
serializedVersion: 2
Hash: 22f9f2e067162111ebbb125246bfbb93
m_Version: 2
m_FromPortReference:
m_NodeModelGuid:
m_Value0: 12707417518092783399
m_Value1: 12907138721686575674
m_NodeModelHashGuid:
serializedVersion: 2
Hash: 270f7feae7d059b03a5ad14c485e1fb3
m_UniqueId: out
m_PortDirection: 2
m_PortOrientation: 0
m_Title: out
m_ToPortReference:
m_NodeModelGuid:
m_Value0: 16442667905250323263
m_Value1: 1906199566597692832
m_NodeModelHashGuid:
serializedVersion: 2
Hash: 3f6b29c4571730e4a01d0f06682e741a
m_UniqueId: in
m_PortDirection: 1
m_PortOrientation: 0
m_Title: in
- rid: 7772910664224079991
type: {class: VariableNodeModelImp, ns: Unity.GraphToolkit.Editor.Implementation, asm: Unity.GraphToolkit.Editor}
data:
m_Guid:
m_Value0: 16020597250208634681
m_Value1: 11376580431567117424
m_HashGuid:
serializedVersion: 2
Hash: 3917497c519854de70dc3776a0bbe19d
m_Version: 2
m_Position: {x: 78.4349, y: 557.34784}
m_Title: AnneLise
m_Tooltip:
m_NodePreviewModel:
rid: -2
m_State: 0
m_InputConstantsById:
m_KeyList: []
m_ValueList: []
m_InputPortInfos:
expandedPortsById:
m_KeyList: []
m_ValueList:
m_OutputPortInfos:
expandedPortsById:
m_KeyList: []
m_ValueList:
m_Collapsed: 0
m_CurrentModeIndex: 0
m_ElementColor:
m_Color: {r: 0, g: 0, b: 0, a: 0}
m_HasUserColor: 0
m_DeclarationModel:
rid: 7772910664224079882
m_DeclarationModelHashGuid:
serializedVersion: 2
Hash: c4cecb32c52b4e154f7033c28eec089b
- rid: 7772910664224079992
type: {class: WireModel, ns: Unity.GraphToolkit.Editor, asm: Unity.GraphToolkit.Internal.Editor}
data:
m_Guid:
m_Value0: 16677884615795462715
m_Value1: 17249592907585268976
m_HashGuid:
serializedVersion: 2
Hash: 3bd270e1b1bf73e7f0acb7705bdd62ef
m_Version: 2
m_FromPortReference:
m_NodeModelGuid:
m_Value0: 16020597250208634681
m_Value1: 11376580431567117424
m_NodeModelHashGuid:
serializedVersion: 2
Hash: 3917497c519854de70dc3776a0bbe19d
m_UniqueId: MainPortName
m_PortDirection: 2
m_PortOrientation: 0
m_Title: MainPortName
m_ToPortReference:
m_NodeModelGuid:
m_Value0: 10309538455896751567
m_Value1: 14906120129720500747
m_NodeModelHashGuid:
serializedVersion: 2
Hash: cf7df4759ad6128f0b424a2f482dddce
m_UniqueId: SpeakerName
m_PortDirection: 1
m_PortOrientation: 0
m_Title: SpeakerName