Compare commits
2 Commits
d620c54be7
...
55faff3b82
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
55faff3b82 | ||
|
|
1fec4e780d |
@ -12,6 +12,6 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 8721e912e8f648bc96a79bb3228a01bb, type: 3}
|
||||
m_Name: '# PDA Application Library'
|
||||
m_EditorClassIdentifier:
|
||||
applicationPrefabs:
|
||||
apps:
|
||||
- {fileID: 8445778930960300939, guid: 601c65c6fcf8e4c088c890a9d3f74a1e, type: 3}
|
||||
- {fileID: 2125927707020507478, guid: 0e9dba8caea034cdeb8b71bc4edc522d, type: 3}
|
||||
|
||||
@ -162,8 +162,8 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 6c87cfb5e9bf432d8c74e9b1b1cecf17, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
generateRandomId: 0
|
||||
id: 263651a6ab724288adae0d8f571f529e
|
||||
device: {fileID: 11400000, guid: 5851ff4beee4547de8bb37a91c321af0, type: 2}
|
||||
contentTag: {fileID: 11400000, guid: d3c3f76d56e994ca1a0fec7b4c2dee8b, type: 2}
|
||||
currentThemeSelectionAreaUI: {fileID: 3606088870277292810}
|
||||
themeSelectorUI: {fileID: 5133641343740112976}
|
||||
@ -331,6 +331,30 @@ PrefabInstance:
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2274582946839607471, guid: 5719fba5951fb4652873e5abe0395622, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2274582946839607471, guid: 5719fba5951fb4652873e5abe0395622, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2274582946839607471, guid: 5719fba5951fb4652873e5abe0395622, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2274582946839607471, guid: 5719fba5951fb4652873e5abe0395622, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2274582946839607471, guid: 5719fba5951fb4652873e5abe0395622, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2274582946839607471, guid: 5719fba5951fb4652873e5abe0395622, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3369383829443116588, guid: 5719fba5951fb4652873e5abe0395622, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
@ -511,6 +535,30 @@ PrefabInstance:
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7073260830788580152, guid: 5719fba5951fb4652873e5abe0395622, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7073260830788580152, guid: 5719fba5951fb4652873e5abe0395622, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7073260830788580152, guid: 5719fba5951fb4652873e5abe0395622, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7073260830788580152, guid: 5719fba5951fb4652873e5abe0395622, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7073260830788580152, guid: 5719fba5951fb4652873e5abe0395622, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7073260830788580152, guid: 5719fba5951fb4652873e5abe0395622, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7305453120782626341, guid: 5719fba5951fb4652873e5abe0395622, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
|
||||
@ -49,7 +49,7 @@ GameObject:
|
||||
- component: {fileID: 5189104512823423114}
|
||||
- component: {fileID: 5172885852129304430}
|
||||
m_Layer: 3
|
||||
m_Name: PDA Device
|
||||
m_Name: PDADeviceUI
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
@ -180,7 +180,7 @@ MonoBehaviour:
|
||||
m_EditorClassIdentifier:
|
||||
subscriptionId: event-listener.pda-device-ui
|
||||
managedWindow: {fileID: 5189104512823423114}
|
||||
device: {fileID: 11400000, guid: 5851ff4beee4547de8bb37a91c321af0, type: 2}
|
||||
runtime: {fileID: 0}
|
||||
operationalSystem: {fileID: 6195836449349636204}
|
||||
loadingProcess: {fileID: 6090578839837176443}
|
||||
--- !u!1 &5189104512904093456
|
||||
8
Assets/Prefabs/UI/Codex.meta
Normal file
8
Assets/Prefabs/UI/Codex.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: db16d2f8e461e47e6aa183552530bc5d
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8ec48b099c8274b8db9460675cf5a6b6
|
||||
guid: f00c51f85ae5941adaea825ca52e0832
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
8
Assets/Prefabs/UI/Codex/Components.meta
Normal file
8
Assets/Prefabs/UI/Codex/Components.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0f89795829f6d4bf68c1cbca4052938d
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
147
Assets/Prefabs/UI/Codex/Components/CodexIconComponentUI.prefab
Normal file
147
Assets/Prefabs/UI/Codex/Components/CodexIconComponentUI.prefab
Normal file
@ -0,0 +1,147 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &1285616165401271549
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 2553882259693637154}
|
||||
- component: {fileID: 9017171852136701099}
|
||||
m_Layer: 5
|
||||
m_Name: CodexIconComponentUI
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &2553882259693637154
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1285616165401271549}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 7980370667986966191}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &9017171852136701099
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1285616165401271549}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 1114a7330e7844be97be4cae5617b5c1, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Gameplay::Intrepid.Gameplay.Codex.UI.Components.CodexIconComponentUI
|
||||
icon: {fileID: 5567690737417303059}
|
||||
iconAnimation: {fileID: 7117617313402960343}
|
||||
--- !u!1 &8046437505522394254
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 7980370667986966191}
|
||||
- component: {fileID: 242615254485060408}
|
||||
- component: {fileID: 5567690737417303059}
|
||||
- component: {fileID: 7117617313402960343}
|
||||
m_Layer: 5
|
||||
m_Name: Image
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &7980370667986966191
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8046437505522394254}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 2553882259693637154}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &242615254485060408
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8046437505522394254}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &5567690737417303059
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8046437505522394254}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 0
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 0}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!114 &7117617313402960343
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8046437505522394254}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f4e33cf502024142968eb53d261faf91, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Utilities::Intrepid.Utilities.Sprite.SpriteAnimationController
|
||||
liveReload: 1
|
||||
postProcessingUpdateSprite:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
spriteAnimationService: {fileID: 11400000, guid: 9a5db89e9997f417ead801949370b893, type: 2}
|
||||
start:
|
||||
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3ee43ed6ea0214214ba8602cc3091892
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
404
Assets/Prefabs/UI/Codex/Components/CodexPanelComponentUI.prefab
Normal file
404
Assets/Prefabs/UI/Codex/Components/CodexPanelComponentUI.prefab
Normal file
@ -0,0 +1,404 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &416324509478960996
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 5351091886041063999}
|
||||
- component: {fileID: 3327857494484505980}
|
||||
- component: {fileID: 3489324727556799602}
|
||||
- component: {fileID: 5316423476234221746}
|
||||
- component: {fileID: 3341292921356774437}
|
||||
m_Layer: 5
|
||||
m_Name: Background
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &5351091886041063999
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 416324509478960996}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 817218075505996544}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &3327857494484505980
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 416324509478960996}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &3489324727556799602
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 416324509478960996}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0.02745098, g: 0.0627451, b: 0.078431375, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 21300000, guid: f99d9543f9a1d4118a997d7e78b78526, type: 3}
|
||||
m_Type: 1
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!114 &5316423476234221746
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 416324509478960996}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: b6f8f94415894c37ba6e10b5acebaab1, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Gameplay::Intrepid.Gameplay.Codex.UI.Components.CodexColorLerpEffectUI
|
||||
useUnscaledTime: 1
|
||||
duration: 0.12
|
||||
curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
- serializedVersion: 3
|
||||
time: 1
|
||||
value: 1
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
--- !u!114 &3341292921356774437
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 416324509478960996}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 9fdd777f66294b459eed0f053329b0bf, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Gameplay::Intrepid.Gameplay.Codex.UI.Components.CodexColorEffectTargetUI
|
||||
target: {fileID: 3489324727556799602}
|
||||
colorEffectUI: {fileID: 5316423476234221746}
|
||||
--- !u!1 &1093900508746780041
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 817218075505996544}
|
||||
- component: {fileID: 8918922271643254457}
|
||||
m_Layer: 5
|
||||
m_Name: CodexPanelComponentUI
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &817218075505996544
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1093900508746780041}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 5351091886041063999}
|
||||
- {fileID: 4490832776911535242}
|
||||
- {fileID: 3050943421252974644}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 250, y: 150}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &8918922271643254457
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1093900508746780041}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: d3124472724d4e3c84499514f80267f6, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Gameplay::Intrepid.Gameplay.Codex.UI.CodexPanelUI
|
||||
backgroundType: 0
|
||||
borderType: 0
|
||||
background: {fileID: 3341292921356774437}
|
||||
border: {fileID: 2551783809612713942}
|
||||
--- !u!1 &3959540340678643811
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4490832776911535242}
|
||||
- component: {fileID: 9215136938786826689}
|
||||
- component: {fileID: 4925213537407531625}
|
||||
- component: {fileID: 7415060981115526544}
|
||||
m_Layer: 5
|
||||
m_Name: Content
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &4490832776911535242
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3959540340678643811}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 817218075505996544}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &9215136938786826689
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3959540340678643811}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 31a19414c41e5ae4aae2af33fee712f6, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Mask
|
||||
m_ShowMaskGraphic: 0
|
||||
--- !u!222 &4925213537407531625
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3959540340678643811}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &7415060981115526544
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3959540340678643811}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 21300000, guid: f99d9543f9a1d4118a997d7e78b78526, type: 3}
|
||||
m_Type: 1
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!1 &7319422296609624887
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 3050943421252974644}
|
||||
- component: {fileID: 9083596502734584377}
|
||||
- component: {fileID: 9167859301944789053}
|
||||
- component: {fileID: 8618498546748735978}
|
||||
- component: {fileID: 2551783809612713942}
|
||||
m_Layer: 5
|
||||
m_Name: Border
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &3050943421252974644
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7319422296609624887}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 817218075505996544}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &9083596502734584377
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7319422296609624887}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &9167859301944789053
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7319422296609624887}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0.3921569, g: 0.5843138, b: 0.9294118, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 21300000, guid: 783ec4722d98e4c1ebf1fe4440e41a04, type: 3}
|
||||
m_Type: 1
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!114 &8618498546748735978
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7319422296609624887}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: b6f8f94415894c37ba6e10b5acebaab1, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Gameplay::Intrepid.Gameplay.Codex.UI.Components.CodexColorLerpEffectUI
|
||||
useUnscaledTime: 1
|
||||
duration: 0.12
|
||||
curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
- serializedVersion: 3
|
||||
time: 1
|
||||
value: 1
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
--- !u!114 &2551783809612713942
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7319422296609624887}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 9fdd777f66294b459eed0f053329b0bf, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Gameplay::Intrepid.Gameplay.Codex.UI.Components.CodexColorEffectTargetUI
|
||||
target: {fileID: 9167859301944789053}
|
||||
colorEffectUI: {fileID: 8618498546748735978}
|
||||
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 819a22e651d254aeaa6271a8a5008be5
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,184 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &3461379372266766357
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 762940974718777101}
|
||||
- component: {fileID: 5481297712579369285}
|
||||
- component: {fileID: 4920856041323292772}
|
||||
- component: {fileID: 289836239444781818}
|
||||
- component: {fileID: 2415686604015823129}
|
||||
m_Layer: 5
|
||||
m_Name: Background
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &762940974718777101
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3461379372266766357}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 4782545015208784509}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &5481297712579369285
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3461379372266766357}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &4920856041323292772
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3461379372266766357}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0.11485404, g: 0.23029463, b: 0.2735849, a: 0.8}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 0}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!114 &289836239444781818
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3461379372266766357}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: b6f8f94415894c37ba6e10b5acebaab1, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Gameplay::Intrepid.Gameplay.Codex.UI.Components.CodexColorLerpEffectUI
|
||||
useUnscaledTime: 1
|
||||
duration: 0.12
|
||||
curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
- serializedVersion: 3
|
||||
time: 1
|
||||
value: 1
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
--- !u!114 &2415686604015823129
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3461379372266766357}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 9fdd777f66294b459eed0f053329b0bf, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Gameplay::Intrepid.Gameplay.Codex.UI.Components.CodexColorEffectTargetUI
|
||||
target: {fileID: 4920856041323292772}
|
||||
colorEffectUI: {fileID: 289836239444781818}
|
||||
--- !u!1 &4152609343146555872
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4782545015208784509}
|
||||
- component: {fileID: 1351220509199860}
|
||||
m_Layer: 5
|
||||
m_Name: CodexSurfaceComponentUI
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &4782545015208784509
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4152609343146555872}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 762940974718777101}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 100, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &1351220509199860
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4152609343146555872}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 5f5e340eecbf4357824ae9b6722bd17d, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Gameplay::Intrepid.Gameplay.Codex.UI.Components.CodexSurfaceComponentUI
|
||||
backgroundType: 3
|
||||
replaceAlpha: 0
|
||||
alpha: 0.5
|
||||
background: {fileID: 2415686604015823129}
|
||||
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 896db3c68c6024bbc920c44c5f96d461
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -432,7 +432,7 @@ RectTransform:
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 7197876000195360075}
|
||||
- {fileID: 227485419669739136}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
@ -452,7 +452,7 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 603e9d5617d74657b44a765c22b3c52c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
dialog: {fileID: 1558540297844798833}
|
||||
panel: {fileID: 8338704736818780985}
|
||||
title: {fileID: 255223171885326068}
|
||||
description: {fileID: 1277390162049044817}
|
||||
palettes:
|
||||
@ -461,7 +461,7 @@ MonoBehaviour:
|
||||
- {fileID: 8473506677830965403}
|
||||
- {fileID: 3860455122155657020}
|
||||
- {fileID: 6760503043117943428}
|
||||
theme: {fileID: 11400000, guid: 17516c994301f4620bcb1383d4f04cb6, type: 2}
|
||||
protocol: {fileID: 0}
|
||||
--- !u!1 &3784333515902507553
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -646,19 +646,19 @@ RectTransform:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6716902540114609045}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 2274582946839607471}
|
||||
- {fileID: 7073260830788580152}
|
||||
m_Father: {fileID: 2636253603181931612}
|
||||
m_Father: {fileID: 3903991783760124170}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: -6, y: -6}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &2354857897493377708
|
||||
MonoBehaviour:
|
||||
@ -761,7 +761,7 @@ MonoBehaviour:
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!1001 &6545589296576142606
|
||||
--- !u!1001 &612321642549273984
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
@ -769,119 +769,119 @@ PrefabInstance:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 6879196895299910792}
|
||||
m_Modifications:
|
||||
- target: {fileID: 4122311943219390533, guid: 18f44b986d2754181a3a9695f6898774, type: 3}
|
||||
- target: {fileID: 817218075505996544, guid: 819a22e651d254aeaa6271a8a5008be5, type: 3}
|
||||
propertyPath: m_Pivot.x
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4122311943219390533, guid: 18f44b986d2754181a3a9695f6898774, type: 3}
|
||||
- target: {fileID: 817218075505996544, guid: 819a22e651d254aeaa6271a8a5008be5, type: 3}
|
||||
propertyPath: m_Pivot.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4122311943219390533, guid: 18f44b986d2754181a3a9695f6898774, type: 3}
|
||||
- target: {fileID: 817218075505996544, guid: 819a22e651d254aeaa6271a8a5008be5, type: 3}
|
||||
propertyPath: m_AnchorMax.x
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4122311943219390533, guid: 18f44b986d2754181a3a9695f6898774, type: 3}
|
||||
- target: {fileID: 817218075505996544, guid: 819a22e651d254aeaa6271a8a5008be5, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4122311943219390533, guid: 18f44b986d2754181a3a9695f6898774, type: 3}
|
||||
- target: {fileID: 817218075505996544, guid: 819a22e651d254aeaa6271a8a5008be5, type: 3}
|
||||
propertyPath: m_AnchorMin.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4122311943219390533, guid: 18f44b986d2754181a3a9695f6898774, type: 3}
|
||||
- target: {fileID: 817218075505996544, guid: 819a22e651d254aeaa6271a8a5008be5, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4122311943219390533, guid: 18f44b986d2754181a3a9695f6898774, type: 3}
|
||||
- target: {fileID: 817218075505996544, guid: 819a22e651d254aeaa6271a8a5008be5, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4122311943219390533, guid: 18f44b986d2754181a3a9695f6898774, type: 3}
|
||||
- target: {fileID: 817218075505996544, guid: 819a22e651d254aeaa6271a8a5008be5, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4122311943219390533, guid: 18f44b986d2754181a3a9695f6898774, type: 3}
|
||||
- target: {fileID: 817218075505996544, guid: 819a22e651d254aeaa6271a8a5008be5, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4122311943219390533, guid: 18f44b986d2754181a3a9695f6898774, type: 3}
|
||||
- target: {fileID: 817218075505996544, guid: 819a22e651d254aeaa6271a8a5008be5, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4122311943219390533, guid: 18f44b986d2754181a3a9695f6898774, type: 3}
|
||||
- target: {fileID: 817218075505996544, guid: 819a22e651d254aeaa6271a8a5008be5, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4122311943219390533, guid: 18f44b986d2754181a3a9695f6898774, type: 3}
|
||||
- target: {fileID: 817218075505996544, guid: 819a22e651d254aeaa6271a8a5008be5, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4122311943219390533, guid: 18f44b986d2754181a3a9695f6898774, type: 3}
|
||||
- target: {fileID: 817218075505996544, guid: 819a22e651d254aeaa6271a8a5008be5, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4122311943219390533, guid: 18f44b986d2754181a3a9695f6898774, type: 3}
|
||||
- target: {fileID: 817218075505996544, guid: 819a22e651d254aeaa6271a8a5008be5, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4122311943219390533, guid: 18f44b986d2754181a3a9695f6898774, type: 3}
|
||||
- target: {fileID: 817218075505996544, guid: 819a22e651d254aeaa6271a8a5008be5, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4122311943219390533, guid: 18f44b986d2754181a3a9695f6898774, type: 3}
|
||||
- target: {fileID: 817218075505996544, guid: 819a22e651d254aeaa6271a8a5008be5, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4122311943219390533, guid: 18f44b986d2754181a3a9695f6898774, type: 3}
|
||||
- target: {fileID: 817218075505996544, guid: 819a22e651d254aeaa6271a8a5008be5, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4122311943219390533, guid: 18f44b986d2754181a3a9695f6898774, type: 3}
|
||||
- target: {fileID: 817218075505996544, guid: 819a22e651d254aeaa6271a8a5008be5, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4122311943219390533, guid: 18f44b986d2754181a3a9695f6898774, type: 3}
|
||||
- target: {fileID: 817218075505996544, guid: 819a22e651d254aeaa6271a8a5008be5, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4122311943219390533, guid: 18f44b986d2754181a3a9695f6898774, type: 3}
|
||||
- target: {fileID: 817218075505996544, guid: 819a22e651d254aeaa6271a8a5008be5, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6354229259033361249, guid: 18f44b986d2754181a3a9695f6898774, type: 3}
|
||||
- target: {fileID: 1093900508746780041, guid: 819a22e651d254aeaa6271a8a5008be5, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: DialogMinimalUI
|
||||
value: CodexPanelComponentUI
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects:
|
||||
- targetCorrespondingSourceObject: {fileID: 9098186480249319762, guid: 18f44b986d2754181a3a9695f6898774, type: 3}
|
||||
- targetCorrespondingSourceObject: {fileID: 4490832776911535242, guid: 819a22e651d254aeaa6271a8a5008be5, type: 3}
|
||||
insertIndex: -1
|
||||
addedObject: {fileID: 3246175779987903493}
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 18f44b986d2754181a3a9695f6898774, type: 3}
|
||||
--- !u!114 &1558540297844798833 stripped
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 819a22e651d254aeaa6271a8a5008be5, type: 3}
|
||||
--- !u!224 &227485419669739136 stripped
|
||||
RectTransform:
|
||||
m_CorrespondingSourceObject: {fileID: 817218075505996544, guid: 819a22e651d254aeaa6271a8a5008be5, type: 3}
|
||||
m_PrefabInstance: {fileID: 612321642549273984}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!224 &3903991783760124170 stripped
|
||||
RectTransform:
|
||||
m_CorrespondingSourceObject: {fileID: 4490832776911535242, guid: 819a22e651d254aeaa6271a8a5008be5, type: 3}
|
||||
m_PrefabInstance: {fileID: 612321642549273984}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!114 &8338704736818780985 stripped
|
||||
MonoBehaviour:
|
||||
m_CorrespondingSourceObject: {fileID: 5726211398848915583, guid: 18f44b986d2754181a3a9695f6898774, type: 3}
|
||||
m_PrefabInstance: {fileID: 6545589296576142606}
|
||||
m_CorrespondingSourceObject: {fileID: 8918922271643254457, guid: 819a22e651d254aeaa6271a8a5008be5, type: 3}
|
||||
m_PrefabInstance: {fileID: 612321642549273984}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4e18be9fb855467faaccf816be3291c7, type: 3}
|
||||
m_Script: {fileID: 11500000, guid: d3124472724d4e3c84499514f80267f6, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!224 &2636253603181931612 stripped
|
||||
RectTransform:
|
||||
m_CorrespondingSourceObject: {fileID: 9098186480249319762, guid: 18f44b986d2754181a3a9695f6898774, type: 3}
|
||||
m_PrefabInstance: {fileID: 6545589296576142606}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!224 &7197876000195360075 stripped
|
||||
RectTransform:
|
||||
m_CorrespondingSourceObject: {fileID: 4122311943219390533, guid: 18f44b986d2754181a3a9695f6898774, type: 3}
|
||||
m_PrefabInstance: {fileID: 6545589296576142606}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_EditorClassIdentifier: Gameplay::Intrepid.Gameplay.Codex.UI.CodexPanelUI
|
||||
--- !u!1001 &7187118986409248990
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
|
||||
@ -12,4 +12,6 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 73c8da23e167c437b9b4044376377a24, type: 3}
|
||||
m_Name: '# Codex - Pictorial Protocol Library'
|
||||
m_EditorClassIdentifier: Gameplay::Intrepid.Gameplay.Codex.Visual.PictorialProtocolLibrary
|
||||
protocols: []
|
||||
protocols:
|
||||
- {fileID: 11400000, guid: 45f285d36d68d43cbb85c7b85d1125ad, type: 2}
|
||||
- {fileID: 11400000, guid: 6c3fd2d4d883248e18470247e672317a, type: 2}
|
||||
@ -0,0 +1,41 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
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: b9a2dd3bc25546bfb126b9445e977c3c, type: 3}
|
||||
m_Name: pictorial-protocol.default 1
|
||||
m_EditorClassIdentifier: Gameplay::Intrepid.Gameplay.Codex.Visual.PictorialProtocolTag
|
||||
code: pictorial-protocol.default 1
|
||||
localization: {fileID: 0}
|
||||
description: {fileID: 0}
|
||||
interfaceStyle:
|
||||
surfaceBase: {r: 0.21001358, g: 0.4716981, b: 0.20247419, a: 1}
|
||||
surfaceRaised: {r: 0.21001358, g: 0.4716981, b: 0.20247419, a: 1}
|
||||
surfaceDeep: {r: 0.21001358, g: 0.4716981, b: 0.20247419, a: 1}
|
||||
surfaceOverlay: {r: 0.4637811, g: 0.8207547, b: 0.45296368, a: 0.5686275}
|
||||
textPrimary: {r: 0.84705883, g: 0.96862745, b: 1, a: 1}
|
||||
textSecondary: {r: 0.56078434, g: 0.78039217, b: 0.81960785, a: 1}
|
||||
textMuted: {r: 0.32156864, g: 0.4745098, b: 0.50980395, a: 1}
|
||||
textDisabled: {r: 0.18431373, g: 0.27450982, b: 0.29803923, a: 1}
|
||||
signalPrimary: {r: 0.92941177, g: 0.5173042, b: 0.39215687, a: 1}
|
||||
signalSecondary: {r: 0.1254902, g: 0.6980392, b: 0.6666667, a: 1}
|
||||
signalFocus: {r: 1, g: 1, b: 1, a: 1}
|
||||
signalSelected: {r: 1, g: 0.92156863, b: 0.015686275, a: 1}
|
||||
signalDisabled: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
||||
signalDenied: {r: 0.5450981, g: 0, b: 0, a: 1}
|
||||
signalWarning: {r: 1, g: 0.6470588, b: 0, a: 1}
|
||||
signalCorruption: {r: 1, g: 0, b: 1, a: 1}
|
||||
gaugeLife: {r: 1, g: 0, b: 0, a: 1}
|
||||
gaugeShield: {r: 0, g: 1, b: 1, a: 1}
|
||||
gaugeCadence: {r: 1, g: 1, b: 1, a: 1}
|
||||
gaugeProgress: {r: 1, g: 1, b: 1, a: 1}
|
||||
lineSubtle: {r: 0.16862746, g: 0.3372549, b: 0.3764706, a: 1}
|
||||
lineActive: {r: 0.36862746, g: 0.92156863, b: 1, a: 1}
|
||||
lineCritical: {r: 1, g: 0.20784314, b: 0.3647059, a: 1}
|
||||
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 45f285d36d68d43cbb85c7b85d1125ad
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -12,29 +12,30 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: b9a2dd3bc25546bfb126b9445e977c3c, type: 3}
|
||||
m_Name: pictorial-protocol.default
|
||||
m_EditorClassIdentifier: Gameplay::Intrepid.Gameplay.Codex.Visual.PictorialProtocolTag
|
||||
code: dcfda51c61c345898e10ae7aeae468ce
|
||||
code: pictorial-protocol.default
|
||||
localization: {fileID: 0}
|
||||
description: {fileID: 0}
|
||||
interfaceStyle:
|
||||
surfaceBase: {r: 0.02745098, g: 0.0627451, b: 0.078431375, a: 1}
|
||||
surfaceRaised: {r: 0.0627451, g: 0.1254902, b: 0.14901961, a: 1}
|
||||
surfaceDeep: {r: 0.011764706, g: 0.02745098, b: 0.03137255, a: 1}
|
||||
surfaceOverlay: {r: 0.08627451, g: 0.16862746, b: 0.2, a: 0.8}
|
||||
surfaceOverlay: {r: 0.11485404, g: 0.23029463, b: 0.2735849, a: 0.8}
|
||||
textPrimary: {r: 0.84705883, g: 0.96862745, b: 1, a: 1}
|
||||
textSecondary: {r: 0.56078434, g: 0.78039217, b: 0.81960785, a: 1}
|
||||
textMuted: {r: 0.32156864, g: 0.4745098, b: 0.50980395, a: 1}
|
||||
textDisabled: {r: 0.18431373, g: 0.27450982, b: 0.29803923, a: 1}
|
||||
focus: {r: 0.36862746, g: 0.92156863, b: 1, a: 1}
|
||||
selected: {r: 0.6156863, g: 1, b: 0.9019608, a: 1}
|
||||
disabled: {r: 0.23137255, g: 0.33333334, b: 0.36078432, a: 1}
|
||||
denied: {r: 1, g: 0.41568628, b: 0.2901961, a: 1}
|
||||
warning: {r: 1, g: 0.81960785, b: 0.4, a: 1}
|
||||
danger: {r: 1, g: 0.20784314, b: 0.3647059, a: 1}
|
||||
corruption: {r: 0.7058824, g: 0.36078432, b: 1, a: 1}
|
||||
life: {r: 1, g: 0.23137255, b: 0.30980393, a: 1}
|
||||
shield: {r: 0.21960784, g: 0.8509804, b: 1, a: 1}
|
||||
cadence: {r: 0.9647059, g: 0.9529412, b: 0.8235294, a: 1}
|
||||
progress: {r: 0.6156863, g: 1, b: 0.9019608, a: 1}
|
||||
signalPrimary: {r: 0.3921569, g: 0.5843138, b: 0.9294118, a: 1}
|
||||
signalSecondary: {r: 0.1254902, g: 0.6980392, b: 0.6666667, a: 1}
|
||||
signalFocus: {r: 1, g: 1, b: 1, a: 1}
|
||||
signalSelected: {r: 1, g: 0.92156863, b: 0.015686275, a: 1}
|
||||
signalDisabled: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
||||
signalDenied: {r: 0.5450981, g: 0, b: 0, a: 1}
|
||||
signalWarning: {r: 1, g: 0.6470588, b: 0, a: 1}
|
||||
signalCorruption: {r: 1, g: 0, b: 1, a: 1}
|
||||
gaugeLife: {r: 1, g: 0, b: 0, a: 1}
|
||||
gaugeShield: {r: 0, g: 1, b: 1, a: 1}
|
||||
gaugeCadence: {r: 1, g: 1, b: 1, a: 1}
|
||||
gaugeProgress: {r: 1, g: 1, b: 1, a: 1}
|
||||
lineSubtle: {r: 0.16862746, g: 0.3372549, b: 0.3764706, a: 1}
|
||||
lineActive: {r: 0.36862746, g: 0.92156863, b: 1, a: 1}
|
||||
lineCritical: {r: 1, g: 0.20784314, b: 0.3647059, a: 1}
|
||||
BIN
Assets/Resources/Graphics/UI/border-16bit.png
(Stored with Git LFS)
Normal file
BIN
Assets/Resources/Graphics/UI/border-16bit.png
(Stored with Git LFS)
Normal file
Binary file not shown.
130
Assets/Resources/Graphics/UI/border-16bit.png.meta
Normal file
130
Assets/Resources/Graphics/UI/border-16bit.png.meta
Normal file
@ -0,0 +1,130 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 783ec4722d98e4c1ebf1fe4440e41a04
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 0
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 1
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 0
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 128
|
||||
spriteBorder: {x: 15, y: 15, z: 15, w: 15}
|
||||
spriteGenerateFallbackPhysicsShape: 0
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 8
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 64
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5e97eb03825dee720800000000000000
|
||||
internalID: 1537655665
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Resources/Graphics/UI/window-16bit-content-mask.png
(Stored with Git LFS)
BIN
Assets/Resources/Graphics/UI/window-16bit-content-mask.png
(Stored with Git LFS)
Binary file not shown.
@ -0,0 +1,20 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
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: 671522e89c004981804e95c2e4772ba4, type: 3}
|
||||
m_Name: codex-window-test.window.data
|
||||
m_EditorClassIdentifier: Intrepid General Utilities::Intrepid.Window.Data.WindowData
|
||||
id: c5c6460a64624f5eb184dc12e2a7ad0c
|
||||
shouldBeKeptAlwaysEnabled: 0
|
||||
onEntry: {fileID: 11400000, guid: 19ca7326a886040368b9a97112b7ac79, type: 2}
|
||||
onExit: {fileID: 11400000, guid: 3d482b6144a2c4056886da54a2b44de4, type: 2}
|
||||
onShow: {fileID: 11400000, guid: 73b8a7b1bfe2640c18d78902b9000db9, type: 2}
|
||||
onHide: {fileID: 11400000, guid: 4202e7cd097404cebb92dc257aea87eb, type: 2}
|
||||
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 99fd11e76bba64e05b7e6b4b77755ec2
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,18 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
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: 6f2337b04d5e44dba892ac6b72ae7e44, type: 3}
|
||||
m_Name: codex-window-test.window.enter
|
||||
m_EditorClassIdentifier: Intrepid General Utilities::Intrepid.Window.Data.WindowAnimationData
|
||||
mode: 0
|
||||
direction: 0
|
||||
soundEffect: {fileID: 0}
|
||||
animationSpeed: 2
|
||||
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 19ca7326a886040368b9a97112b7ac79
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,18 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
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: 6f2337b04d5e44dba892ac6b72ae7e44, type: 3}
|
||||
m_Name: codex-window-test.window.exit
|
||||
m_EditorClassIdentifier: Intrepid General Utilities::Intrepid.Window.Data.WindowAnimationData
|
||||
mode: 0
|
||||
direction: 1
|
||||
soundEffect: {fileID: 0}
|
||||
animationSpeed: 1
|
||||
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3d482b6144a2c4056886da54a2b44de4
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,18 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
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: 6f2337b04d5e44dba892ac6b72ae7e44, type: 3}
|
||||
m_Name: codex-window-test.window.hide
|
||||
m_EditorClassIdentifier: Intrepid General Utilities::Intrepid.Window.Data.WindowAnimationData
|
||||
mode: 2
|
||||
direction: 1
|
||||
soundEffect: {fileID: 0}
|
||||
animationSpeed: 4
|
||||
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4202e7cd097404cebb92dc257aea87eb
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,18 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
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: 6f2337b04d5e44dba892ac6b72ae7e44, type: 3}
|
||||
m_Name: codex-window-test.window.show
|
||||
m_EditorClassIdentifier: Intrepid General Utilities::Intrepid.Window.Data.WindowAnimationData
|
||||
mode: 2
|
||||
direction: 0
|
||||
soundEffect: {fileID: 0}
|
||||
animationSpeed: 4
|
||||
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 73b8a7b1bfe2640c18d78902b9000db9
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -3,6 +3,8 @@ using System.Collections.Generic;
|
||||
using Intrepid.GameManagers;
|
||||
using Intrepid.Gameplay.Codex.Knowledge;
|
||||
using Intrepid.Gameplay.Codex.Knowledge.Events;
|
||||
using Intrepid.Gameplay.Codex.Music;
|
||||
using Intrepid.Gameplay.Codex.Music.Events;
|
||||
using Intrepid.Gameplay.Codex.Visual;
|
||||
using Intrepid.Gameplay.Codex.Visual.Events;
|
||||
using Intrepid.SimpleEvents;
|
||||
@ -10,23 +12,23 @@ using UnityEngine;
|
||||
|
||||
namespace Intrepid.Gameplay.Codex
|
||||
{
|
||||
/// <summary>
|
||||
/// Runtime owner of what the CODEX currently knows.
|
||||
/// This is intentionally separated from PDA runtime state.
|
||||
/// </summary>
|
||||
public class CodexRuntime : EventListener
|
||||
{
|
||||
[SerializeField] private CodexOntology ontology = new();
|
||||
[SerializeField] private PictorialProtocolInventory pictorialProtocols = new();
|
||||
[SerializeField] private CodexKnowledgeInventory knowledgeInventory = new();
|
||||
[SerializeField] private CodexMusicInventory musicInventory = new();
|
||||
[SerializeField] private PictorialProtocolInventory pictorialProtocolInventory = new();
|
||||
|
||||
public CodexOntology Ontology => ontology;
|
||||
public PictorialProtocolInventory PictorialProtocols => pictorialProtocols;
|
||||
public CodexKnowledgeInventory KnowledgeInventory => knowledgeInventory;
|
||||
public CodexMusicInventory MusicInventory => musicInventory;
|
||||
public PictorialProtocolInventory PictorialProtocolInventory => pictorialProtocolInventory;
|
||||
|
||||
public IReadOnlyList<CodexConceptTag> KnownConcepts => ontology.KnownConcepts;
|
||||
public IReadOnlyList<PictorialProtocolTag> KnownPictorialProtocols => pictorialProtocols.KnownProtocols;
|
||||
public IReadOnlyList<CodexConceptTag> KnownConcepts => knowledgeInventory.KnownConcepts;
|
||||
public IReadOnlyList<CodexMusicTag> KnownMusic => musicInventory.KnownMusics;
|
||||
public IReadOnlyList<PictorialProtocolTag> KnownPictorialProtocols => pictorialProtocolInventory.KnownProtocols;
|
||||
|
||||
public bool Knows(CodexConceptTag concept) => ontology.Knows(concept);
|
||||
public bool Knows(PictorialProtocolTag protocol) => pictorialProtocols.Knows(protocol);
|
||||
public bool Knows(CodexConceptTag concept) => knowledgeInventory.Knows(concept);
|
||||
public bool Knows(CodexMusicTag music) => musicInventory.Knows(music);
|
||||
public bool Knows(PictorialProtocolTag protocol) => pictorialProtocolInventory.Knows(protocol);
|
||||
|
||||
protected override void InitializeVariables()
|
||||
{
|
||||
@ -46,7 +48,7 @@ namespace Intrepid.Gameplay.Codex
|
||||
|
||||
if (Knows(concept)) return;
|
||||
|
||||
ontology.Learn(concept);
|
||||
knowledgeInventory.Learn(concept);
|
||||
|
||||
if (!raiseEvent) return;
|
||||
Proxy.Instance.EventBus.Raise(new CodexConceptLearnedEvent
|
||||
@ -54,6 +56,21 @@ namespace Intrepid.Gameplay.Codex
|
||||
Concept = concept,
|
||||
});
|
||||
}
|
||||
|
||||
public void Unlock(CodexMusicTag music, bool raiseEvent = true)
|
||||
{
|
||||
if (music.IsNull()) return;
|
||||
|
||||
if (Knows(music)) return;
|
||||
|
||||
musicInventory.Unlock(music);
|
||||
|
||||
if (!raiseEvent) return;
|
||||
Proxy.Instance.EventBus.Raise(new CodexMusicUnlockedEvent
|
||||
{
|
||||
Music = music,
|
||||
});
|
||||
}
|
||||
|
||||
public void Unlock(PictorialProtocolTag protocol, bool raiseEvent = true)
|
||||
{
|
||||
@ -61,7 +78,7 @@ namespace Intrepid.Gameplay.Codex
|
||||
|
||||
if (Knows(protocol)) return;
|
||||
|
||||
pictorialProtocols.Unlock(protocol);
|
||||
pictorialProtocolInventory.Unlock(protocol);
|
||||
|
||||
if (!raiseEvent) return;
|
||||
Proxy.Instance.EventBus.Raise(new PictorialProtocolUnlockedEvent
|
||||
|
||||
@ -1,12 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Intrepid.Utilities;
|
||||
using Sirenix.OdinInspector;
|
||||
using UnityEngine;
|
||||
#if UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
#endif
|
||||
using UnityEngine;
|
||||
|
||||
namespace Intrepid.Gameplay.Codex.Knowledge
|
||||
{
|
||||
@ -16,8 +15,6 @@ namespace Intrepid.Gameplay.Codex.Knowledge
|
||||
{
|
||||
[GroupInjections, SerializeField] private List<CodexConceptTag> concepts = new();
|
||||
|
||||
public IReadOnlyList<CodexConceptTag> Concepts => concepts.Where(c => c.IsNotNull()).Distinct().ToList();
|
||||
|
||||
public bool Contains(CodexConceptTag concept)
|
||||
{
|
||||
return concept.IsNotNull() && concepts.Contains(concept);
|
||||
@ -33,8 +30,8 @@ namespace Intrepid.Gameplay.Codex.Knowledge
|
||||
foreach (var guid in guids)
|
||||
{
|
||||
var path = AssetDatabase.GUIDToAssetPath(guid);
|
||||
var protocol = AssetDatabase.LoadAssetAtPath<CodexConceptTag>(path);
|
||||
concepts.Add(protocol);
|
||||
var concept = AssetDatabase.LoadAssetAtPath<CodexConceptTag>(path);
|
||||
concepts.Add(concept);
|
||||
}
|
||||
EditorUtility.SetDirty(this);
|
||||
}
|
||||
|
||||
@ -8,8 +8,8 @@ using UnityEngine;
|
||||
namespace Intrepid.Gameplay.Codex.Knowledge
|
||||
{
|
||||
[Serializable]
|
||||
[GroupConfigurations("Codex Ontology"), HideLabel]
|
||||
public class CodexOntology
|
||||
[GroupConfigurations("Codex Knowledge Inventory"), HideLabel]
|
||||
public class CodexKnowledgeInventory
|
||||
{
|
||||
[SerializeField] private List<CodexConceptTag> knownConcepts = new();
|
||||
|
||||
3
Assets/Scripts/Intrepid/Gameplay/Codex/Music.meta
Normal file
3
Assets/Scripts/Intrepid/Gameplay/Codex/Music.meta
Normal file
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f43308bff5f5431aa61f3756ccc3fb6d
|
||||
timeCreated: 1783412469
|
||||
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using Intrepid.Sound;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Intrepid.Gameplay.Codex.Music
|
||||
{
|
||||
[Serializable]
|
||||
[CreateAssetMenu(fileName = "New Codex Music Data", menuName = "GON/CODEX/Music/Music Data")]
|
||||
public class CodexMusicData : SoundArtifactData
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ed051ecaf077411f9c01477b445009a9
|
||||
timeCreated: 1783412622
|
||||
@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Intrepid.Utilities;
|
||||
using Sirenix.OdinInspector;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Intrepid.Gameplay.Codex.Music
|
||||
{
|
||||
[Serializable]
|
||||
[GroupConfigurations("Codex Music Inventory"), HideLabel]
|
||||
public class CodexMusicInventory
|
||||
{
|
||||
[SerializeField] private List<CodexMusicTag> knownMusics = new();
|
||||
|
||||
public IReadOnlyList<CodexMusicTag> KnownMusics => knownMusics.Where(c => c.IsNotNull()).Distinct().ToList();
|
||||
|
||||
public bool Knows(CodexMusicTag music)
|
||||
{
|
||||
return music.IsNotNull() && knownMusics.Contains(music);
|
||||
}
|
||||
|
||||
public bool Unlock(CodexMusicTag music)
|
||||
{
|
||||
if (music.IsNull()) return false;
|
||||
if (knownMusics.Contains(music)) return false;
|
||||
knownMusics.Add(music);
|
||||
return true;
|
||||
}
|
||||
|
||||
public bool Forget(CodexMusicTag music)
|
||||
{
|
||||
if (music.IsNull()) return false;
|
||||
return knownMusics.Remove(music);
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
[GroupDebug, Button(ButtonSizes.Medium)]
|
||||
private void CleanupKnownConcepts()
|
||||
{
|
||||
knownMusics = knownMusics.Where(c => c.IsNotNull()).Distinct().ToList();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 62309ec39bb24dc38dea18416bdff64c
|
||||
timeCreated: 1783413096
|
||||
@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Intrepid.Utilities;
|
||||
using Sirenix.OdinInspector;
|
||||
using UnityEngine;
|
||||
#if UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
#endif
|
||||
|
||||
namespace Intrepid.Gameplay.Codex.Music
|
||||
{
|
||||
[Serializable]
|
||||
[CreateAssetMenu(fileName = "Codex - Music Library", menuName = "GON/CODEX/Music/Music Library")]
|
||||
public class CodexMusicLibrary : SingletonScriptableObject<CodexMusicLibrary>
|
||||
{
|
||||
[GroupInjections, SerializeField] private List<CodexMusicTag> musics = new();
|
||||
|
||||
public bool Contains(CodexMusicTag music)
|
||||
{
|
||||
return music.IsNotNull() && musics.Contains(music);
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
[PropertyOrder(-10)]
|
||||
[GroupInjections, Button(ButtonSizes.Large), GUIColor(0.35f, 0.8f, .35f)]
|
||||
protected void FindAll()
|
||||
{
|
||||
musics.Clear();
|
||||
var guids = AssetDatabase.FindAssets($"t:{nameof(CodexMusicTag)}");
|
||||
foreach (var guid in guids)
|
||||
{
|
||||
var path = AssetDatabase.GUIDToAssetPath(guid);
|
||||
var music = AssetDatabase.LoadAssetAtPath<CodexMusicTag>(path);
|
||||
musics.Add(music);
|
||||
}
|
||||
EditorUtility.SetDirty(this);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b8faf070b3de45e486795f961bda3811
|
||||
timeCreated: 1783412488
|
||||
@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using Intrepid.Localization;
|
||||
using Intrepid.TagSystem;
|
||||
using Intrepid.Utilities;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Intrepid.Gameplay.Codex.Music
|
||||
{
|
||||
[Serializable]
|
||||
[CreateAssetMenu(fileName = "New Music Tag", menuName = "GON/CODEX/Music/Music Tag")]
|
||||
public class CodexMusicTag : Tag
|
||||
{
|
||||
[GroupConfigurations, SerializeField] private LocalizationTag localization;
|
||||
[GroupConfigurations, SerializeField] private LocalizationTag description;
|
||||
[GroupInjections, SerializeField] private CodexMusicData musicData;
|
||||
|
||||
public LocalizationTag Localization => localization;
|
||||
public LocalizationTag Description => description;
|
||||
public CodexMusicData MusicData => musicData;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e42018e806cf41858031e58910aff21f
|
||||
timeCreated: 1783412564
|
||||
3
Assets/Scripts/Intrepid/Gameplay/Codex/Music/Events.meta
Normal file
3
Assets/Scripts/Intrepid/Gameplay/Codex/Music/Events.meta
Normal file
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cb6a93e361df492b9a1b353061b061bf
|
||||
timeCreated: 1783413404
|
||||
@ -0,0 +1,9 @@
|
||||
using Intrepid.SimpleEvents;
|
||||
|
||||
namespace Intrepid.Gameplay.Codex.Music.Events
|
||||
{
|
||||
public class CodexMusicUnlockedEvent : IEventBase
|
||||
{
|
||||
public CodexMusicTag Music { get; set; }
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8761bae5d84540c3ac3ebcb8d80953bd
|
||||
timeCreated: 1783413408
|
||||
3
Assets/Scripts/Intrepid/Gameplay/Codex/UI.meta
Normal file
3
Assets/Scripts/Intrepid/Gameplay/Codex/UI.meta
Normal file
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 56db2148d99e48e1a01eef1608abac6e
|
||||
timeCreated: 1783324446
|
||||
@ -0,0 +1,16 @@
|
||||
using Intrepid.SimpleEvents;
|
||||
|
||||
namespace Intrepid.Gameplay.Codex.UI
|
||||
{
|
||||
public class CodexWindowContext
|
||||
{
|
||||
public EventBus LocalBus { get; }
|
||||
public CodexWindowUI Window { get; }
|
||||
|
||||
public CodexWindowContext(EventBus localBus, CodexWindowUI window)
|
||||
{
|
||||
LocalBus = localBus;
|
||||
Window = window;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3ef53351fd53400ebee9695cddcd88cc
|
||||
timeCreated: 1783341153
|
||||
@ -6,6 +6,7 @@ using Intrepid.Gameplay.Entities.Player.ActionBelt.UI;
|
||||
using Intrepid.Gameplay.Entities.Player.Events;
|
||||
using Intrepid.Gameplay.Entities.Player.PDA.UI;
|
||||
using Intrepid.Gameplay.Entities.Player.Sentinel.Cadence.UI;
|
||||
using Intrepid.Gameplay.Entities.Player.UI;
|
||||
using Intrepid.SimpleEvents;
|
||||
using Intrepid.Utilities;
|
||||
using Intrepid.Window;
|
||||
@ -13,14 +14,14 @@ using Intrepid.Window.Data;
|
||||
using Intrepid.Window.Events;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Intrepid.Gameplay.Entities.Player.UI
|
||||
namespace Intrepid.Gameplay.Codex.UI
|
||||
{
|
||||
public class PlayerWindowManager : EventListener
|
||||
public class CodexWindowManager : EventListener
|
||||
{
|
||||
[GroupConfigurations, SerializeField] private CadenceUI cadenceUI;
|
||||
[GroupConfigurations, SerializeField] private LifeShieldMeterUI lifeShieldUI;
|
||||
[GroupConfigurations, SerializeField] private GadgetsUI gadgetsUI;
|
||||
[GroupConfigurations, SerializeField] private ActionBeltUI actionBeltUI;
|
||||
[GroupConfigurations, SerializeField] private CodexActionBeltUI actionBeltUI;
|
||||
[GroupConfigurations, SerializeField] private PDADeviceUI pdaDeviceUI;
|
||||
|
||||
private Dictionary<WindowData, Window.Window> WindowsMap { get; } = new();
|
||||
98
Assets/Scripts/Intrepid/Gameplay/Codex/UI/CodexWindowUI.cs
Normal file
98
Assets/Scripts/Intrepid/Gameplay/Codex/UI/CodexWindowUI.cs
Normal file
@ -0,0 +1,98 @@
|
||||
using System;
|
||||
using Intrepid.Gameplay.Codex.UI.Controllers;
|
||||
using Intrepid.Gameplay.Codex.Visual;
|
||||
using Intrepid.Gameplay.Codex.Visual.Events;
|
||||
using Intrepid.SimpleEvents;
|
||||
|
||||
namespace Intrepid.Gameplay.Codex.UI
|
||||
{
|
||||
public class CodexWindowUI : ManagedWindowUI, IWindowLifecycle
|
||||
{
|
||||
private CodexControllerUI[] Controllers { get; set; }
|
||||
private EventBus LocalBus { get; } = new();
|
||||
|
||||
protected override void InitializeVariables()
|
||||
{
|
||||
Controllers = GetComponentsInChildren<CodexControllerUI>(true);
|
||||
}
|
||||
|
||||
protected override void OnBootstrap()
|
||||
{
|
||||
var ctx = new CodexWindowContext(LocalBus, this);
|
||||
foreach (var controller in Controllers)
|
||||
{
|
||||
if (controller.IsNull()) continue;
|
||||
controller.BindToWindow(ctx);
|
||||
}
|
||||
}
|
||||
|
||||
protected override void Subscriptions()
|
||||
{
|
||||
Subscribe<CodexVisualChangedEvent>(e =>
|
||||
{
|
||||
foreach (var controller in Controllers)
|
||||
{
|
||||
if (controller.IsNull()) continue;
|
||||
controller.ApplyCodexVisuals(e.Context);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public virtual void BeforeOpen()
|
||||
{
|
||||
var visualContext = CodexVisualService.Instance.CurrentContext;
|
||||
foreach (var controller in Controllers)
|
||||
{
|
||||
if (controller.IsNull()) continue;
|
||||
controller.ApplyCodexVisuals(visualContext);
|
||||
controller.BeforeOpen();
|
||||
}
|
||||
}
|
||||
|
||||
public virtual void AfterOpen()
|
||||
{
|
||||
foreach (var controller in Controllers)
|
||||
{
|
||||
if (controller.IsNull()) continue;
|
||||
controller.AfterOpen();
|
||||
}
|
||||
}
|
||||
|
||||
public virtual void BeforeClose()
|
||||
{
|
||||
foreach (var controller in Controllers)
|
||||
{
|
||||
if (controller.IsNull()) continue;
|
||||
controller.BeforeClose();
|
||||
}
|
||||
}
|
||||
|
||||
public virtual void AfterClose()
|
||||
{
|
||||
foreach (var controller in Controllers)
|
||||
{
|
||||
if (controller.IsNull()) continue;
|
||||
controller.AfterClose();
|
||||
}
|
||||
}
|
||||
|
||||
public virtual void EnableInput()
|
||||
{
|
||||
foreach (var controller in Controllers)
|
||||
{
|
||||
if (controller.IsNull()) continue;
|
||||
controller.EnableInput();
|
||||
}
|
||||
}
|
||||
|
||||
public virtual void DisableInput()
|
||||
{
|
||||
foreach (var controller in Controllers)
|
||||
{
|
||||
if (controller.IsNull()) continue;
|
||||
controller.DisableInput();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d11ca2e11a4c4d3f8165f4aebe47e159
|
||||
timeCreated: 1783325103
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 51a6f5840a4240a98937aa3dc9a582a2
|
||||
timeCreated: 1783336021
|
||||
@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using Intrepid.Utilities;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace Intrepid.Gameplay.Codex.UI.Components
|
||||
{
|
||||
public class CodexColorEffectTargetUI : MonoBehaviour
|
||||
{
|
||||
[GroupInjections, SerializeField] private Graphic target;
|
||||
[GroupInjections, SerializeField] private CodexColorEffectUI colorEffectUI;
|
||||
|
||||
public void Apply(Color targetColor)
|
||||
{
|
||||
if (target.IsNull()) return;
|
||||
|
||||
if (colorEffectUI.IsNotNull() && colorEffectUI.isActiveAndEnabled)
|
||||
{
|
||||
colorEffectUI.Apply(target, targetColor);
|
||||
}
|
||||
else
|
||||
{
|
||||
target.color = targetColor;
|
||||
}
|
||||
}
|
||||
|
||||
public void Stop()
|
||||
{
|
||||
if (target.IsNull()) return;
|
||||
|
||||
if (colorEffectUI.IsNotNull() && colorEffectUI.isActiveAndEnabled)
|
||||
{
|
||||
colorEffectUI.Stop(target);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9fdd777f66294b459eed0f053329b0bf
|
||||
timeCreated: 1783352236
|
||||
@ -0,0 +1,14 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace Intrepid.Gameplay.Codex.UI.Components
|
||||
{
|
||||
public abstract class CodexColorEffectUI : MonoBehaviour
|
||||
{
|
||||
public abstract void Apply(Graphic target, Color targetColor);
|
||||
|
||||
public virtual void Stop(Graphic target)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0e6663fbb14c4509b0c621598065eb9d
|
||||
timeCreated: 1783351271
|
||||
@ -0,0 +1,59 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Intrepid.Utilities;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace Intrepid.Gameplay.Codex.UI.Components
|
||||
{
|
||||
public class CodexColorLerpEffectUI : CodexColorEffectUI
|
||||
{
|
||||
[SerializeField] private bool useUnscaledTime = true;
|
||||
[SerializeField, Min(0.05f)] private float duration = 0.12f;
|
||||
[SerializeField] private AnimationCurve curve = AnimationCurve.EaseInOut(0, 0, 1, 1);
|
||||
|
||||
private Coroutine Routine { get; set; }
|
||||
|
||||
public override void Apply(Graphic target, Color targetColor)
|
||||
{
|
||||
if (target.IsNull()) return;
|
||||
|
||||
if (Routine is not null)
|
||||
{
|
||||
StopCoroutine(Routine);
|
||||
Routine = null;
|
||||
}
|
||||
|
||||
Routine = StartCoroutine(TransitionRoutine(target, targetColor));
|
||||
}
|
||||
|
||||
private IEnumerator TransitionRoutine(Graphic target, Color targetColor)
|
||||
{
|
||||
var sourceColor = target.color;
|
||||
var elapsed = 0f;
|
||||
|
||||
while (elapsed < duration)
|
||||
{
|
||||
elapsed += useUnscaledTime ? Timer.UnscaledTime : Timer.ScaledTime;
|
||||
|
||||
var t = Mathf.Clamp01(elapsed / duration);
|
||||
var eased = curve?.Evaluate(t) ?? t;
|
||||
|
||||
target.color = Color.LerpUnclamped(sourceColor, targetColor, eased);
|
||||
yield return null;
|
||||
}
|
||||
|
||||
target.color = targetColor;
|
||||
Routine = null;
|
||||
}
|
||||
|
||||
public override void Stop(Graphic target)
|
||||
{
|
||||
if (Routine is not null)
|
||||
{
|
||||
StopCoroutine(Routine);
|
||||
Routine = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b6f8f94415894c37ba6e10b5acebaab1
|
||||
timeCreated: 1783349619
|
||||
@ -0,0 +1,42 @@
|
||||
using Intrepid.Gameplay.Codex.Visual;
|
||||
using Intrepid.Utilities;
|
||||
using Sirenix.OdinInspector;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Intrepid.Gameplay.Codex.UI.Components
|
||||
{
|
||||
public abstract class CodexComponentUI : MonoBehaviour, IWindowLifecycle
|
||||
{
|
||||
public abstract void ApplyCodexVisuals(CodexVisualContext ctx);
|
||||
|
||||
public virtual void BeforeOpen()
|
||||
{
|
||||
}
|
||||
|
||||
public virtual void AfterOpen()
|
||||
{
|
||||
}
|
||||
|
||||
public virtual void BeforeClose()
|
||||
{
|
||||
}
|
||||
|
||||
public virtual void AfterClose()
|
||||
{
|
||||
}
|
||||
|
||||
public virtual void EnableInput()
|
||||
{
|
||||
}
|
||||
|
||||
public virtual void DisableInput()
|
||||
{
|
||||
}
|
||||
|
||||
[GroupDebug, Button(ButtonSizes.Medium, ButtonStyle.FoldoutButton)]
|
||||
private void SetVisualsBasedOn(PictorialProtocolTag protocol)
|
||||
{
|
||||
ApplyCodexVisuals(new CodexVisualContext(protocol, 0));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e897b39193ce4c68af3aa6425235e862
|
||||
timeCreated: 1783324459
|
||||
@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using Intrepid.Gameplay.Codex.Visual;
|
||||
using Intrepid.Utilities;
|
||||
using Intrepid.Utilities.Sprite;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace Intrepid.Gameplay.Codex.UI.Components
|
||||
{
|
||||
public class CodexIconComponentUI : CodexComponentUI
|
||||
{
|
||||
[GroupInjections, SerializeField] private Image icon;
|
||||
[GroupInjections, SerializeField] private SpriteAnimationController iconAnimation;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
iconAnimation.PostProcessingUpdateSprite = sprite =>
|
||||
{
|
||||
if (sprite.IsNull()) return;
|
||||
icon.sprite = sprite;
|
||||
};
|
||||
}
|
||||
|
||||
public void ChangeAnimation(string animationId)
|
||||
{
|
||||
iconAnimation.ChangeAnimation(animationId);
|
||||
}
|
||||
|
||||
public void AnimationReset()
|
||||
{
|
||||
iconAnimation.SpriteAnimation.Reset();
|
||||
}
|
||||
|
||||
public override void ApplyCodexVisuals(CodexVisualContext ctx)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1114a7330e7844be97be4cae5617b5c1
|
||||
timeCreated: 1783359678
|
||||
@ -0,0 +1,45 @@
|
||||
using Intrepid.Gameplay.Codex.Visual;
|
||||
using Intrepid.Utilities;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Intrepid.Gameplay.Codex.UI.Components
|
||||
{
|
||||
public class CodexPanelComponentUI : CodexComponentUI
|
||||
{
|
||||
[GroupConfigurations, SerializeField] private PictorialSurfaceType backgroundType = PictorialSurfaceType.Base;
|
||||
[GroupConfigurations, SerializeField] private PictorialSignalType borderType = PictorialSignalType.Primary;
|
||||
|
||||
[GroupInjections, SerializeField] private CodexColorEffectTargetUI background;
|
||||
[GroupInjections, SerializeField] private CodexColorEffectTargetUI border;
|
||||
|
||||
public PictorialSurfaceType BackgroundType => backgroundType;
|
||||
public PictorialSignalType BorderType => borderType;
|
||||
|
||||
public void SetSurface(PictorialSurfaceType surface)
|
||||
{
|
||||
backgroundType = surface;
|
||||
var ctx = CodexVisualService.Instance.CurrentContext;
|
||||
background?.Apply(ctx.Protocol.GetSurfaceColor(backgroundType));
|
||||
}
|
||||
|
||||
public void SetBorder(PictorialSignalType signal)
|
||||
{
|
||||
borderType = signal;
|
||||
var ctx = CodexVisualService.Instance.CurrentContext;
|
||||
border?.Apply(ctx.Protocol.GetSignalColor(borderType));
|
||||
}
|
||||
|
||||
public override void ApplyCodexVisuals(CodexVisualContext ctx)
|
||||
{
|
||||
background?.Apply(ctx.Protocol.GetSurfaceColor(backgroundType));
|
||||
border?.Apply(ctx.Protocol.GetSignalColor(borderType));
|
||||
}
|
||||
|
||||
public override void BeforeClose()
|
||||
{
|
||||
base.BeforeClose();
|
||||
background?.Stop();
|
||||
border?.Stop();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d3124472724d4e3c84499514f80267f6
|
||||
timeCreated: 1783331219
|
||||
@ -0,0 +1,35 @@
|
||||
using Intrepid.Gameplay.Codex.Visual;
|
||||
using Intrepid.Utilities;
|
||||
using Sirenix.OdinInspector;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Intrepid.Gameplay.Codex.UI.Components
|
||||
{
|
||||
public class CodexSurfaceComponentUI : CodexComponentUI
|
||||
{
|
||||
[GroupConfigurations, SerializeField] private PictorialSurfaceType backgroundType = PictorialSurfaceType.Base;
|
||||
[GroupConfigurations, SerializeField] private bool replaceAlpha;
|
||||
[GroupConfigurations, SerializeField, Range(0, 1), ShowIf("replaceAlpha")] private float alpha = .5f;
|
||||
|
||||
[GroupInjections, SerializeField] private CodexColorEffectTargetUI background;
|
||||
|
||||
public PictorialSurfaceType BackgroundType
|
||||
{
|
||||
get => backgroundType;
|
||||
set => backgroundType = value;
|
||||
}
|
||||
|
||||
public override void ApplyCodexVisuals(CodexVisualContext ctx)
|
||||
{
|
||||
var sc = ctx.Protocol.GetSurfaceColor(backgroundType);
|
||||
if (replaceAlpha) sc = new Color(sc.r, sc.g, sc.b, alpha);
|
||||
background?.Apply(sc);
|
||||
}
|
||||
|
||||
public override void BeforeClose()
|
||||
{
|
||||
base.BeforeClose();
|
||||
background?.Stop();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5f5e340eecbf4357824ae9b6722bd17d
|
||||
timeCreated: 1783329567
|
||||
@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using Intrepid.Gameplay.Codex.Visual;
|
||||
using Intrepid.Utilities;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Intrepid.Gameplay.Codex.UI.Components
|
||||
{
|
||||
public class CodexTextComponentUI : CodexComponentUI
|
||||
{
|
||||
[GroupConfigurations, SerializeField] private PictorialTextType textType = PictorialTextType.Primary;
|
||||
|
||||
[GroupInjections, SerializeField] private TextMeshProUGUI textMesh;
|
||||
|
||||
public string Value
|
||||
{
|
||||
get => textMesh.IsNotNull() ? textMesh.text : string.Empty;
|
||||
set
|
||||
{
|
||||
if (textMesh.IsNull()) return;
|
||||
textMesh.text = value;
|
||||
}
|
||||
}
|
||||
|
||||
public override void ApplyCodexVisuals(CodexVisualContext ctx)
|
||||
{
|
||||
textMesh.color = ctx.Protocol.GetTextColor(textType);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 278969964b614736b3613547c0c4a4aa
|
||||
timeCreated: 1783335743
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fdeeb3bd09f449c7a95b1f188696a428
|
||||
timeCreated: 1783338286
|
||||
@ -0,0 +1,144 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Intrepid.Gameplay.Codex.UI.Components;
|
||||
using Intrepid.Gameplay.Codex.Visual;
|
||||
using Intrepid.SimpleEvents;
|
||||
using Intrepid.Utilities;
|
||||
|
||||
namespace Intrepid.Gameplay.Codex.UI.Controllers
|
||||
{
|
||||
public abstract class CodexControllerUI : Identification, IWindowLifecycle
|
||||
{
|
||||
private List<CodexComponentUI> Components { get; set; }
|
||||
private bool IsOpenSubscribed { get; set; }
|
||||
private bool IsInputSubscribed { get; set; }
|
||||
private CodexWindowContext WindowContext { get; set; }
|
||||
private EventBus LocalBus => WindowContext?.LocalBus;
|
||||
|
||||
protected string OpenSubscriptionId => $"codex.ui.open.{GetType().Name}.{Id}";
|
||||
protected string InputSubscriptionId => $"codex.ui.input.{GetType().Name}.{Id}";
|
||||
|
||||
protected override void Awake()
|
||||
{
|
||||
base.Awake();
|
||||
Components = GetComponentsInChildren<CodexComponentUI>(true)
|
||||
.Where(component =>
|
||||
{
|
||||
var owner = component.GetComponentInParent<CodexControllerUI>();
|
||||
return owner == this;
|
||||
})
|
||||
.ToList();
|
||||
}
|
||||
|
||||
public void BindToWindow(CodexWindowContext ctx)
|
||||
{
|
||||
WindowContext = ctx;
|
||||
OnBindToWindow();
|
||||
}
|
||||
|
||||
public virtual void BeforeOpen()
|
||||
{
|
||||
if (!IsOpenSubscribed && LocalBus is not null)
|
||||
{
|
||||
OnOpenSubscribe(new CodexSubscriber(LocalBus, OpenSubscriptionId));
|
||||
IsOpenSubscribed = true;
|
||||
}
|
||||
|
||||
foreach (var component in Components)
|
||||
{
|
||||
if (component.IsNull()) continue;
|
||||
component.BeforeOpen();
|
||||
}
|
||||
}
|
||||
|
||||
public virtual void AfterOpen()
|
||||
{
|
||||
foreach (var component in Components)
|
||||
{
|
||||
if (component.IsNull()) continue;
|
||||
component.AfterOpen();
|
||||
}
|
||||
}
|
||||
|
||||
public virtual void BeforeClose()
|
||||
{
|
||||
foreach (var component in Components)
|
||||
{
|
||||
if (component.IsNull()) continue;
|
||||
component.BeforeClose();
|
||||
}
|
||||
|
||||
if (IsOpenSubscribed && LocalBus is not null)
|
||||
{
|
||||
LocalBus.UnSubscribe(OpenSubscriptionId);
|
||||
IsOpenSubscribed = false;
|
||||
}
|
||||
}
|
||||
|
||||
public virtual void AfterClose()
|
||||
{
|
||||
foreach (var component in Components)
|
||||
{
|
||||
if (component.IsNull()) continue;
|
||||
component.AfterClose();
|
||||
}
|
||||
}
|
||||
|
||||
public void EnableInput()
|
||||
{
|
||||
if (!IsInputSubscribed && LocalBus is not null)
|
||||
{
|
||||
OnInputSubscribe(new CodexSubscriber(LocalBus, InputSubscriptionId));
|
||||
IsInputSubscribed = true;
|
||||
}
|
||||
|
||||
foreach (var component in Components)
|
||||
{
|
||||
if (component.IsNull()) continue;
|
||||
component.EnableInput();
|
||||
}
|
||||
}
|
||||
|
||||
public void DisableInput()
|
||||
{
|
||||
foreach (var component in Components)
|
||||
{
|
||||
if (component.IsNull()) continue;
|
||||
component.DisableInput();
|
||||
}
|
||||
|
||||
if (IsInputSubscribed && LocalBus is not null)
|
||||
{
|
||||
LocalBus.UnSubscribe(InputSubscriptionId);
|
||||
IsInputSubscribed = false;
|
||||
}
|
||||
}
|
||||
|
||||
protected void Raise<T>(T anEvent) where T : IEventBase
|
||||
{
|
||||
LocalBus.Raise(anEvent);
|
||||
}
|
||||
|
||||
public void ApplyCodexVisuals(CodexVisualContext visualContext)
|
||||
{
|
||||
foreach (var component in Components)
|
||||
{
|
||||
if (component.IsNull()) continue;
|
||||
component.ApplyCodexVisuals(visualContext);
|
||||
}
|
||||
}
|
||||
|
||||
protected virtual void OnBindToWindow()
|
||||
{
|
||||
}
|
||||
|
||||
protected virtual void OnOpenSubscribe(CodexSubscriber subscriber)
|
||||
{
|
||||
}
|
||||
|
||||
protected virtual void OnInputSubscribe(CodexSubscriber subscriber)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 532ea2ec06054cc08c6300251deee0a0
|
||||
timeCreated: 1783338297
|
||||
@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using Intrepid.SimpleEvents;
|
||||
|
||||
namespace Intrepid.Gameplay.Codex.UI.Controllers
|
||||
{
|
||||
public readonly struct CodexSubscriber
|
||||
{
|
||||
private EventBus EventBus { get; }
|
||||
private string SubscriptionId { get; }
|
||||
|
||||
public CodexSubscriber(EventBus eventBus, string subscriptionId)
|
||||
{
|
||||
EventBus = eventBus;
|
||||
SubscriptionId = subscriptionId;
|
||||
}
|
||||
|
||||
public void Subscribe<T>(Action<T> action) where T: IEventBase
|
||||
{
|
||||
EventBus.Subscribe(SubscriptionId, action);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5a967f104097492792bff5c3685f921f
|
||||
timeCreated: 1783339757
|
||||
@ -0,0 +1,7 @@
|
||||
namespace Intrepid.Gameplay.Codex.UI.Controllers
|
||||
{
|
||||
public class CodexTestControllerUI : CodexControllerUI
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 968279ca1a7149f7bd4c7122ada8bbd3
|
||||
timeCreated: 1783354853
|
||||
@ -0,0 +1,13 @@
|
||||
namespace Intrepid.Gameplay.Codex.UI
|
||||
{
|
||||
public interface IWindowLifecycle
|
||||
{
|
||||
void BeforeOpen();
|
||||
void AfterOpen();
|
||||
void BeforeClose();
|
||||
void AfterClose();
|
||||
|
||||
void EnableInput();
|
||||
void DisableInput();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 84aed53c63f146b99d29642cbc1aad20
|
||||
timeCreated: 1783327106
|
||||
@ -3,7 +3,7 @@ using Intrepid.Utilities;
|
||||
using Intrepid.Window.Data;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Intrepid.Gameplay.Entities.Player.UI
|
||||
namespace Intrepid.Gameplay.Codex.UI
|
||||
{
|
||||
public abstract class ManagedWindowUI : EventListener
|
||||
{
|
||||
@ -1,10 +0,0 @@
|
||||
namespace Intrepid.Gameplay.Codex.Visual
|
||||
{
|
||||
public enum CodexVisualChangeMode
|
||||
{
|
||||
Instant,
|
||||
Preview,
|
||||
Commit,
|
||||
CancelPreview
|
||||
}
|
||||
}
|
||||
@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8f5c4907cbeb64120a1e148ea392e38f
|
||||
@ -6,14 +6,12 @@ namespace Intrepid.Gameplay.Codex.Visual
|
||||
public class CodexVisualContext
|
||||
{
|
||||
public PictorialProtocolTag Protocol { get; }
|
||||
public int Version { get; }
|
||||
public bool IsPreview { get; }
|
||||
public long Version { get; }
|
||||
|
||||
public CodexVisualContext(PictorialProtocolTag protocol, int version, bool isPreview = false)
|
||||
public CodexVisualContext(PictorialProtocolTag protocol, long version)
|
||||
{
|
||||
Protocol = protocol;
|
||||
Version = version;
|
||||
IsPreview = isPreview;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
using System;
|
||||
using Intrepid.GameManagers;
|
||||
using Intrepid.Gameplay.Codex.Visual.Events;
|
||||
using Intrepid.Utilities;
|
||||
using Sirenix.OdinInspector;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Intrepid.Gameplay.Codex.Visual
|
||||
@ -13,64 +15,36 @@ namespace Intrepid.Gameplay.Codex.Visual
|
||||
public class CodexVisualService : SingletonMonoBehaviour<CodexVisualService>
|
||||
{
|
||||
[GroupConfigurations, SerializeField] private PictorialProtocolTag defaultProtocol;
|
||||
[GroupDebug, SerializeField] private PictorialProtocolTag currentProtocol;
|
||||
[GroupConfigurations, SerializeField] private PictorialProtocolTag currentProtocol;
|
||||
|
||||
private int version;
|
||||
private PictorialProtocolTag committedProtocol;
|
||||
private CodexVisualContext currentContext;
|
||||
private long Version { get; set; }
|
||||
private CodexVisualContext _currentContext;
|
||||
|
||||
public PictorialProtocolTag CurrentPictorialProtocol => currentProtocol ?? defaultProtocol;
|
||||
public PictorialProtocolTag CurrentPictorialProtocol => currentProtocol.IsNull() ? defaultProtocol : currentProtocol;
|
||||
public CodexVisualContext CurrentContext
|
||||
{
|
||||
get
|
||||
{
|
||||
currentContext ??= new CodexVisualContext(CurrentPictorialProtocol, version);
|
||||
return currentContext;
|
||||
_currentContext ??= new CodexVisualContext(CurrentPictorialProtocol, Version);
|
||||
return _currentContext;
|
||||
}
|
||||
}
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
SingletonInstantiation(false, _ => { });
|
||||
committedProtocol = CurrentPictorialProtocol;
|
||||
currentContext = new CodexVisualContext(CurrentPictorialProtocol, version);
|
||||
_currentContext = new CodexVisualContext(CurrentPictorialProtocol, Version);
|
||||
}
|
||||
|
||||
public void ApplyTheme(PictorialProtocolTag protocol, CodexVisualChangeMode mode = CodexVisualChangeMode.Commit)
|
||||
{
|
||||
var nextProtocol = protocol ?? defaultProtocol;
|
||||
var previousProtocol = CurrentPictorialProtocol;
|
||||
|
||||
if (previousProtocol == nextProtocol && mode != CodexVisualChangeMode.CancelPreview) return;
|
||||
|
||||
currentProtocol = nextProtocol;
|
||||
if (CodexVisualChangeMode.Preview != mode)
|
||||
{
|
||||
committedProtocol = nextProtocol;
|
||||
}
|
||||
|
||||
currentContext = new CodexVisualContext(CurrentPictorialProtocol, ++version, mode == CodexVisualChangeMode.Preview);
|
||||
RaiseChanged(previousProtocol, CurrentPictorialProtocol, mode);
|
||||
}
|
||||
|
||||
public void PreviewTheme(PictorialProtocolTag protocol)
|
||||
{
|
||||
ApplyTheme(protocol, CodexVisualChangeMode.Preview);
|
||||
}
|
||||
|
||||
public void CancelPreview()
|
||||
{
|
||||
ApplyTheme(committedProtocol, CodexVisualChangeMode.CancelPreview);
|
||||
}
|
||||
|
||||
private void RaiseChanged(PictorialProtocolTag previousProtocol, PictorialProtocolTag nextProtocol, CodexVisualChangeMode mode)
|
||||
[GroupDebug, Button(ButtonSizes.Medium, ButtonStyle.FoldoutButton)]
|
||||
public void ApplyProtocol(PictorialProtocolTag protocol)
|
||||
{
|
||||
if (CurrentPictorialProtocol == protocol) return;
|
||||
currentProtocol = protocol;
|
||||
_currentContext = new CodexVisualContext(CurrentPictorialProtocol, ++Version);
|
||||
Proxy.Instance.EventBus.Raise(new CodexVisualChangedEvent
|
||||
{
|
||||
PreviousProtocol = previousProtocol,
|
||||
CurrentProtocol = nextProtocol,
|
||||
Context = CurrentContext,
|
||||
Mode = mode
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,13 +1,9 @@
|
||||
using Intrepid.Gameplay.Codex.Knowledge;
|
||||
using Intrepid.SimpleEvents;
|
||||
|
||||
namespace Intrepid.Gameplay.Codex.Visual.Events
|
||||
{
|
||||
public class CodexVisualChangedEvent : IEventBase
|
||||
{
|
||||
public PictorialProtocolTag PreviousProtocol { get; set; }
|
||||
public PictorialProtocolTag CurrentProtocol { get; set; }
|
||||
public CodexVisualContext Context { get; set; }
|
||||
public CodexVisualChangeMode Mode { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,10 @@
|
||||
namespace Intrepid.Gameplay.Codex.Visual
|
||||
{
|
||||
public enum PictorialGaugeType
|
||||
{
|
||||
Life,
|
||||
Shield,
|
||||
Cadence,
|
||||
Progress
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b6432d0026b34b31942c8db1e3937f9f
|
||||
timeCreated: 1783330707
|
||||
@ -0,0 +1,9 @@
|
||||
namespace Intrepid.Gameplay.Codex.Visual
|
||||
{
|
||||
public enum PictorialLineType
|
||||
{
|
||||
Subtle,
|
||||
Active,
|
||||
Critical
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user