Add a text that explains the icons in the inventory
This commit is contained in:
parent
d266155e08
commit
f43c3f837a
@ -11,6 +11,25 @@ Prefab:
|
|||||||
m_ParentPrefab: {fileID: 0}
|
m_ParentPrefab: {fileID: 0}
|
||||||
m_RootGameObject: {fileID: 1297568499365208}
|
m_RootGameObject: {fileID: 1297568499365208}
|
||||||
m_IsPrefabParent: 1
|
m_IsPrefabParent: 1
|
||||||
|
--- !u!1 &1016748625720568
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
serializedVersion: 5
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 4452496045603272}
|
||||||
|
- component: {fileID: 33017456400358314}
|
||||||
|
- component: {fileID: 64971872605337142}
|
||||||
|
- component: {fileID: 23849773850557110}
|
||||||
|
- component: {fileID: 114488421011902742}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Inventory List
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
--- !u!1 &1118036843494872
|
--- !u!1 &1118036843494872
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 1
|
m_ObjectHideFlags: 1
|
||||||
@ -220,7 +239,7 @@ GameObject:
|
|||||||
- component: {fileID: 23765266521109446}
|
- component: {fileID: 23765266521109446}
|
||||||
- component: {fileID: 114989760931913584}
|
- component: {fileID: 114989760931913584}
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: Inventory List
|
m_Name: Icon Explainer Text
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
@ -265,7 +284,7 @@ Transform:
|
|||||||
m_PrefabInternal: {fileID: 100100000}
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
m_GameObject: {fileID: 1473348076947890}
|
m_GameObject: {fileID: 1473348076947890}
|
||||||
m_LocalRotation: {x: -0, y: -0.7071056, z: -0, w: 0.7071081}
|
m_LocalRotation: {x: -0, y: -0.7071056, z: -0, w: 0.7071081}
|
||||||
m_LocalPosition: {x: 0, y: -0.6, z: 0.65}
|
m_LocalPosition: {x: 0, y: -0.6, z: 0.7}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 4236387573765288}
|
- {fileID: 4236387573765288}
|
||||||
@ -291,13 +310,13 @@ Transform:
|
|||||||
m_PrefabParentObject: {fileID: 0}
|
m_PrefabParentObject: {fileID: 0}
|
||||||
m_PrefabInternal: {fileID: 100100000}
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
m_GameObject: {fileID: 1355516313789472}
|
m_GameObject: {fileID: 1355516313789472}
|
||||||
m_LocalRotation: {x: 0.5, y: -0.5, z: 0.5, w: 0.5}
|
m_LocalRotation: {x: -0.5, y: 0.5, z: 0.5, w: 0.5}
|
||||||
m_LocalPosition: {x: -0.06, y: 0.25, z: 0.225}
|
m_LocalPosition: {x: -0.06, y: 0.25, z: 0.225}
|
||||||
m_LocalScale: {x: 0.0115, y: 1, z: 0.0115}
|
m_LocalScale: {x: 0.115, y: 1, z: 0.115}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 4236387573765288}
|
m_Father: {fileID: 4236387573765288}
|
||||||
m_RootOrder: 3
|
m_RootOrder: 3
|
||||||
m_LocalEulerAnglesHint: {x: 90, y: 0, z: 90}
|
m_LocalEulerAnglesHint: {x: -90, y: 0, z: 90}
|
||||||
--- !u!4 &4236387573765288
|
--- !u!4 &4236387573765288
|
||||||
Transform:
|
Transform:
|
||||||
m_ObjectHideFlags: 1
|
m_ObjectHideFlags: 1
|
||||||
@ -309,12 +328,13 @@ Transform:
|
|||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 4390841286282626}
|
- {fileID: 4390841286282626}
|
||||||
- {fileID: 4825258285747792}
|
- {fileID: 4452496045603272}
|
||||||
- {fileID: 4686712969109052}
|
- {fileID: 4686712969109052}
|
||||||
- {fileID: 4164543123855502}
|
- {fileID: 4164543123855502}
|
||||||
- {fileID: 4508297394169232}
|
- {fileID: 4508297394169232}
|
||||||
- {fileID: 4530634180654324}
|
- {fileID: 4530634180654324}
|
||||||
- {fileID: 4638548974480200}
|
- {fileID: 4638548974480200}
|
||||||
|
- {fileID: 4825258285747792}
|
||||||
m_Father: {fileID: 4099946104317490}
|
m_Father: {fileID: 4099946104317490}
|
||||||
m_RootOrder: 0
|
m_RootOrder: 0
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
@ -357,32 +377,45 @@ Transform:
|
|||||||
m_Father: {fileID: 4586682446228250}
|
m_Father: {fileID: 4586682446228250}
|
||||||
m_RootOrder: 0
|
m_RootOrder: 0
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!4 &4452496045603272
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
m_GameObject: {fileID: 1016748625720568}
|
||||||
|
m_LocalRotation: {x: 0.5, y: -0.5, z: 0.5, w: 0.5}
|
||||||
|
m_LocalPosition: {x: -0.035, y: 0.685, z: 0.175}
|
||||||
|
m_LocalScale: {x: 0.057, y: 0.01, z: 0.0665}
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 4236387573765288}
|
||||||
|
m_RootOrder: 1
|
||||||
|
m_LocalEulerAnglesHint: {x: 90, y: 0, z: 90}
|
||||||
--- !u!4 &4508297394169232
|
--- !u!4 &4508297394169232
|
||||||
Transform:
|
Transform:
|
||||||
m_ObjectHideFlags: 1
|
m_ObjectHideFlags: 1
|
||||||
m_PrefabParentObject: {fileID: 0}
|
m_PrefabParentObject: {fileID: 0}
|
||||||
m_PrefabInternal: {fileID: 100100000}
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
m_GameObject: {fileID: 1373682370141446}
|
m_GameObject: {fileID: 1373682370141446}
|
||||||
m_LocalRotation: {x: 0.5, y: -0.5, z: 0.5, w: 0.5}
|
m_LocalRotation: {x: -0.5, y: 0.5, z: 0.5, w: 0.5}
|
||||||
m_LocalPosition: {x: -0.06, y: 0.25, z: 0.075}
|
m_LocalPosition: {x: -0.06, y: 0.25, z: 0.075}
|
||||||
m_LocalScale: {x: 0.0115, y: 1, z: 0.0115}
|
m_LocalScale: {x: 0.115, y: 1, z: 0.115}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 4236387573765288}
|
m_Father: {fileID: 4236387573765288}
|
||||||
m_RootOrder: 4
|
m_RootOrder: 4
|
||||||
m_LocalEulerAnglesHint: {x: 90, y: 0, z: 90}
|
m_LocalEulerAnglesHint: {x: -90, y: 0, z: 90}
|
||||||
--- !u!4 &4530634180654324
|
--- !u!4 &4530634180654324
|
||||||
Transform:
|
Transform:
|
||||||
m_ObjectHideFlags: 1
|
m_ObjectHideFlags: 1
|
||||||
m_PrefabParentObject: {fileID: 0}
|
m_PrefabParentObject: {fileID: 0}
|
||||||
m_PrefabInternal: {fileID: 100100000}
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
m_GameObject: {fileID: 1822302617919868}
|
m_GameObject: {fileID: 1822302617919868}
|
||||||
m_LocalRotation: {x: 0.5, y: -0.5, z: 0.5, w: 0.5}
|
m_LocalRotation: {x: -0.5, y: 0.5, z: 0.5, w: 0.5}
|
||||||
m_LocalPosition: {x: -0.06, y: 0.25, z: -0.075}
|
m_LocalPosition: {x: -0.06, y: 0.25, z: -0.075}
|
||||||
m_LocalScale: {x: 0.0115, y: 1, z: 0.0115}
|
m_LocalScale: {x: 0.115, y: 1, z: 0.115}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 4236387573765288}
|
m_Father: {fileID: 4236387573765288}
|
||||||
m_RootOrder: 5
|
m_RootOrder: 5
|
||||||
m_LocalEulerAnglesHint: {x: 90, y: 0, z: 90}
|
m_LocalEulerAnglesHint: {x: -90, y: 0, z: 90}
|
||||||
--- !u!4 &4586682446228250
|
--- !u!4 &4586682446228250
|
||||||
Transform:
|
Transform:
|
||||||
m_ObjectHideFlags: 1
|
m_ObjectHideFlags: 1
|
||||||
@ -404,13 +437,13 @@ Transform:
|
|||||||
m_PrefabParentObject: {fileID: 0}
|
m_PrefabParentObject: {fileID: 0}
|
||||||
m_PrefabInternal: {fileID: 100100000}
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
m_GameObject: {fileID: 1660701953044296}
|
m_GameObject: {fileID: 1660701953044296}
|
||||||
m_LocalRotation: {x: 0.5, y: -0.5, z: 0.5, w: 0.5}
|
m_LocalRotation: {x: -0.5, y: 0.5, z: 0.5, w: 0.5}
|
||||||
m_LocalPosition: {x: -0.06, y: 0.25, z: -0.2250001}
|
m_LocalPosition: {x: -0.06, y: 0.25, z: -0.2250001}
|
||||||
m_LocalScale: {x: 0.0115, y: 1, z: 0.0115}
|
m_LocalScale: {x: 0.115, y: 1, z: 0.115}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 4236387573765288}
|
m_Father: {fileID: 4236387573765288}
|
||||||
m_RootOrder: 6
|
m_RootOrder: 6
|
||||||
m_LocalEulerAnglesHint: {x: 90, y: 0, z: 90}
|
m_LocalEulerAnglesHint: {x: -90, y: 0, z: 90}
|
||||||
--- !u!4 &4686712969109052
|
--- !u!4 &4686712969109052
|
||||||
Transform:
|
Transform:
|
||||||
m_ObjectHideFlags: 1
|
m_ObjectHideFlags: 1
|
||||||
@ -430,13 +463,13 @@ Transform:
|
|||||||
m_PrefabParentObject: {fileID: 0}
|
m_PrefabParentObject: {fileID: 0}
|
||||||
m_PrefabInternal: {fileID: 100100000}
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
m_GameObject: {fileID: 1892519892396820}
|
m_GameObject: {fileID: 1892519892396820}
|
||||||
m_LocalRotation: {x: 0.5, y: -0.5, z: 0.5, w: 0.5}
|
m_LocalRotation: {x: 0.41095653, y: -0.57542634, z: 0.41095573, w: 0.57542574}
|
||||||
m_LocalPosition: {x: -0.035, y: 0.685, z: 0.175}
|
m_LocalPosition: {x: -0.084, y: 0.121, z: -0}
|
||||||
m_LocalScale: {x: 0.06, y: 0.01, z: 0.07}
|
m_LocalScale: {x: 0.06, y: 0.0100000035, z: 0.01}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 4236387573765288}
|
m_Father: {fileID: 4236387573765288}
|
||||||
m_RootOrder: 1
|
m_RootOrder: 7
|
||||||
m_LocalEulerAnglesHint: {x: 90, y: 0, z: 90}
|
m_LocalEulerAnglesHint: {x: 108.933, y: 89.99999, z: 180}
|
||||||
--- !u!4 &4883048021777868
|
--- !u!4 &4883048021777868
|
||||||
Transform:
|
Transform:
|
||||||
m_ObjectHideFlags: 1
|
m_ObjectHideFlags: 1
|
||||||
@ -681,6 +714,38 @@ MeshRenderer:
|
|||||||
m_SortingLayerID: 0
|
m_SortingLayerID: 0
|
||||||
m_SortingLayer: 0
|
m_SortingLayer: 0
|
||||||
m_SortingOrder: 0
|
m_SortingOrder: 0
|
||||||
|
--- !u!23 &23849773850557110
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
m_GameObject: {fileID: 1016748625720568}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 0
|
||||||
|
m_ReceiveShadows: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: bc07ff2ef266a4661adc506da3430c31, type: 2}
|
||||||
|
m_StaticBatchInfo:
|
||||||
|
firstSubMesh: 0
|
||||||
|
subMeshCount: 0
|
||||||
|
m_StaticBatchRoot: {fileID: 0}
|
||||||
|
m_ProbeAnchor: {fileID: 0}
|
||||||
|
m_LightProbeVolumeOverride: {fileID: 0}
|
||||||
|
m_ScaleInLightmap: 1
|
||||||
|
m_PreserveUVs: 1
|
||||||
|
m_IgnoreNormalsForChartDetection: 0
|
||||||
|
m_ImportantGI: 0
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
--- !u!23 &23853909658500366
|
--- !u!23 &23853909658500366
|
||||||
MeshRenderer:
|
MeshRenderer:
|
||||||
m_ObjectHideFlags: 1
|
m_ObjectHideFlags: 1
|
||||||
@ -780,6 +845,13 @@ MeshRenderer:
|
|||||||
m_SortingLayerID: 0
|
m_SortingLayerID: 0
|
||||||
m_SortingLayer: 0
|
m_SortingLayer: 0
|
||||||
m_SortingOrder: 0
|
m_SortingOrder: 0
|
||||||
|
--- !u!33 &33017456400358314
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
m_GameObject: {fileID: 1016748625720568}
|
||||||
|
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
--- !u!33 &33067661023441796
|
--- !u!33 &33067661023441796
|
||||||
MeshFilter:
|
MeshFilter:
|
||||||
m_ObjectHideFlags: 1
|
m_ObjectHideFlags: 1
|
||||||
@ -800,28 +872,28 @@ MeshFilter:
|
|||||||
m_PrefabParentObject: {fileID: 0}
|
m_PrefabParentObject: {fileID: 0}
|
||||||
m_PrefabInternal: {fileID: 100100000}
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
m_GameObject: {fileID: 1355516313789472}
|
m_GameObject: {fileID: 1355516313789472}
|
||||||
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
m_Mesh: {fileID: 4300000, guid: 8d9188969010c44ce935ad4421c967df, type: 3}
|
||||||
--- !u!33 &33521042049071656
|
--- !u!33 &33521042049071656
|
||||||
MeshFilter:
|
MeshFilter:
|
||||||
m_ObjectHideFlags: 1
|
m_ObjectHideFlags: 1
|
||||||
m_PrefabParentObject: {fileID: 0}
|
m_PrefabParentObject: {fileID: 0}
|
||||||
m_PrefabInternal: {fileID: 100100000}
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
m_GameObject: {fileID: 1660701953044296}
|
m_GameObject: {fileID: 1660701953044296}
|
||||||
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
m_Mesh: {fileID: 4300000, guid: 8d9188969010c44ce935ad4421c967df, type: 3}
|
||||||
--- !u!33 &33540133742758052
|
--- !u!33 &33540133742758052
|
||||||
MeshFilter:
|
MeshFilter:
|
||||||
m_ObjectHideFlags: 1
|
m_ObjectHideFlags: 1
|
||||||
m_PrefabParentObject: {fileID: 0}
|
m_PrefabParentObject: {fileID: 0}
|
||||||
m_PrefabInternal: {fileID: 100100000}
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
m_GameObject: {fileID: 1373682370141446}
|
m_GameObject: {fileID: 1373682370141446}
|
||||||
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
m_Mesh: {fileID: 4300000, guid: 8d9188969010c44ce935ad4421c967df, type: 3}
|
||||||
--- !u!33 &33683376200718996
|
--- !u!33 &33683376200718996
|
||||||
MeshFilter:
|
MeshFilter:
|
||||||
m_ObjectHideFlags: 1
|
m_ObjectHideFlags: 1
|
||||||
m_PrefabParentObject: {fileID: 0}
|
m_PrefabParentObject: {fileID: 0}
|
||||||
m_PrefabInternal: {fileID: 100100000}
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
m_GameObject: {fileID: 1822302617919868}
|
m_GameObject: {fileID: 1822302617919868}
|
||||||
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
m_Mesh: {fileID: 4300000, guid: 8d9188969010c44ce935ad4421c967df, type: 3}
|
||||||
--- !u!33 &33797246170962224
|
--- !u!33 &33797246170962224
|
||||||
MeshFilter:
|
MeshFilter:
|
||||||
m_ObjectHideFlags: 1
|
m_ObjectHideFlags: 1
|
||||||
@ -856,7 +928,7 @@ MeshCollider:
|
|||||||
m_Convex: 0
|
m_Convex: 0
|
||||||
m_InflateMesh: 0
|
m_InflateMesh: 0
|
||||||
m_SkinWidth: 0.01
|
m_SkinWidth: 0.01
|
||||||
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
m_Mesh: {fileID: 4300000, guid: 8d9188969010c44ce935ad4421c967df, type: 3}
|
||||||
--- !u!64 &64094174428785204
|
--- !u!64 &64094174428785204
|
||||||
MeshCollider:
|
MeshCollider:
|
||||||
m_ObjectHideFlags: 1
|
m_ObjectHideFlags: 1
|
||||||
@ -884,7 +956,7 @@ MeshCollider:
|
|||||||
m_Convex: 0
|
m_Convex: 0
|
||||||
m_InflateMesh: 0
|
m_InflateMesh: 0
|
||||||
m_SkinWidth: 0.01
|
m_SkinWidth: 0.01
|
||||||
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
m_Mesh: {fileID: 4300000, guid: 8d9188969010c44ce935ad4421c967df, type: 3}
|
||||||
--- !u!64 &64705548599298680
|
--- !u!64 &64705548599298680
|
||||||
MeshCollider:
|
MeshCollider:
|
||||||
m_ObjectHideFlags: 1
|
m_ObjectHideFlags: 1
|
||||||
@ -898,7 +970,7 @@ MeshCollider:
|
|||||||
m_Convex: 0
|
m_Convex: 0
|
||||||
m_InflateMesh: 0
|
m_InflateMesh: 0
|
||||||
m_SkinWidth: 0.01
|
m_SkinWidth: 0.01
|
||||||
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
m_Mesh: {fileID: 4300000, guid: 8d9188969010c44ce935ad4421c967df, type: 3}
|
||||||
--- !u!64 &64730419328261050
|
--- !u!64 &64730419328261050
|
||||||
MeshCollider:
|
MeshCollider:
|
||||||
m_ObjectHideFlags: 1
|
m_ObjectHideFlags: 1
|
||||||
@ -912,7 +984,7 @@ MeshCollider:
|
|||||||
m_Convex: 0
|
m_Convex: 0
|
||||||
m_InflateMesh: 0
|
m_InflateMesh: 0
|
||||||
m_SkinWidth: 0.01
|
m_SkinWidth: 0.01
|
||||||
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
m_Mesh: {fileID: 4300000, guid: 8d9188969010c44ce935ad4421c967df, type: 3}
|
||||||
--- !u!64 &64847462003953176
|
--- !u!64 &64847462003953176
|
||||||
MeshCollider:
|
MeshCollider:
|
||||||
m_ObjectHideFlags: 1
|
m_ObjectHideFlags: 1
|
||||||
@ -927,6 +999,20 @@ MeshCollider:
|
|||||||
m_InflateMesh: 0
|
m_InflateMesh: 0
|
||||||
m_SkinWidth: 0.01
|
m_SkinWidth: 0.01
|
||||||
m_Mesh: {fileID: 4300000, guid: 8d9188969010c44ce935ad4421c967df, type: 3}
|
m_Mesh: {fileID: 4300000, guid: 8d9188969010c44ce935ad4421c967df, type: 3}
|
||||||
|
--- !u!64 &64971872605337142
|
||||||
|
MeshCollider:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
m_GameObject: {fileID: 1016748625720568}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Convex: 0
|
||||||
|
m_InflateMesh: 0
|
||||||
|
m_SkinWidth: 0.01
|
||||||
|
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
--- !u!81 &81660614106265848
|
--- !u!81 &81660614106265848
|
||||||
AudioListener:
|
AudioListener:
|
||||||
m_ObjectHideFlags: 1
|
m_ObjectHideFlags: 1
|
||||||
@ -971,8 +1057,13 @@ MonoBehaviour:
|
|||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
Camera: {fileID: 20678872378488080}
|
Camera: {fileID: 20678872378488080}
|
||||||
Hologram: {fileID: 114633016952828368}
|
Hologram: {fileID: 114633016952828368}
|
||||||
ItemListText: {fileID: 114989760931913584}
|
IconInventory: {fileID: 23114746529417128}
|
||||||
ItemsPerScreen: 8
|
IconStatus: {fileID: 23853909658500366}
|
||||||
|
IconSocial: {fileID: 23360414563318538}
|
||||||
|
IconMap: {fileID: 23512526763929976}
|
||||||
|
IconExplainerText: {fileID: 114989760931913584}
|
||||||
|
ItemListText: {fileID: 114488421011902742}
|
||||||
|
ItemsPerScreen: 10
|
||||||
--- !u!114 &114385213279389382
|
--- !u!114 &114385213279389382
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 1
|
m_ObjectHideFlags: 1
|
||||||
@ -998,6 +1089,30 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
profile: {fileID: 11400000, guid: 9b37d8da88a424e7b89894da2e5ce5b4, type: 2}
|
profile: {fileID: 11400000, guid: 9b37d8da88a424e7b89894da2e5ce5b4, type: 2}
|
||||||
|
--- !u!114 &114488421011902742
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 100100000}
|
||||||
|
m_GameObject: {fileID: 1016748625720568}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 0e0b8f69a817648969bf8ecd70b13d4d, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
TextProperties:
|
||||||
|
Text:
|
||||||
|
OffsetX: 0
|
||||||
|
OffsetY: 0
|
||||||
|
Centered: 0
|
||||||
|
Background: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
FontSize: 32
|
||||||
|
Width: 219
|
||||||
|
Height: 256
|
||||||
|
Mesh: {fileID: 23849773850557110}
|
||||||
|
MaterialIndex: 0
|
||||||
|
Emissive: 0
|
||||||
|
Brightness: 1
|
||||||
--- !u!114 &114575501420754388
|
--- !u!114 &114575501420754388
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 1
|
m_ObjectHideFlags: 1
|
||||||
@ -1025,8 +1140,10 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: b128d3bedf18c46f6b23cf529a954f59, type: 3}
|
m_Script: {fileID: 11500000, guid: b128d3bedf18c46f6b23cf529a954f59, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
|
HologramMesh: {fileID: 23929481531100956}
|
||||||
Visible: 0
|
Visible: 0
|
||||||
Text: {fileID: 114884373532918326}
|
Text: {fileID: 114884373532918326}
|
||||||
|
HologramScanlineScrollingSpeed: 1
|
||||||
--- !u!114 &114884373532918326
|
--- !u!114 &114884373532918326
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 1
|
m_ObjectHideFlags: 1
|
||||||
@ -1040,8 +1157,9 @@ MonoBehaviour:
|
|||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
TextProperties:
|
TextProperties:
|
||||||
Text: Local Storage
|
Text: Local Storage
|
||||||
OffsetX: 18
|
OffsetX: 8
|
||||||
OffsetY: 18
|
OffsetY: 8
|
||||||
|
Centered: 0
|
||||||
Background: {r: 0, g: 0, b: 0, a: 0}
|
Background: {r: 0, g: 0, b: 0, a: 0}
|
||||||
FontSize: 33
|
FontSize: 33
|
||||||
Width: 256
|
Width: 256
|
||||||
@ -1062,13 +1180,14 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
TextProperties:
|
TextProperties:
|
||||||
Text:
|
Text: Inventory
|
||||||
OffsetX: 55
|
OffsetX: 0
|
||||||
OffsetY: 10
|
OffsetY: -15
|
||||||
|
Centered: 1
|
||||||
Background: {r: 0, g: 0, b: 0, a: 0}
|
Background: {r: 0, g: 0, b: 0, a: 0}
|
||||||
FontSize: 32
|
FontSize: 48
|
||||||
Width: 219
|
Width: 256
|
||||||
Height: 256
|
Height: 43
|
||||||
Mesh: {fileID: 23765266521109446}
|
Mesh: {fileID: 23765266521109446}
|
||||||
MaterialIndex: 0
|
MaterialIndex: 0
|
||||||
Emissive: 0
|
Emissive: 0
|
||||||
|
@ -221,11 +221,6 @@ MeshFilter:
|
|||||||
m_PrefabInternal: {fileID: 0}
|
m_PrefabInternal: {fileID: 0}
|
||||||
m_GameObject: {fileID: 100803251}
|
m_GameObject: {fileID: 100803251}
|
||||||
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
--- !u!23 &122895534 stripped
|
|
||||||
MeshRenderer:
|
|
||||||
m_PrefabParentObject: {fileID: 23929481531100956, guid: e8761b9491a974d1780e60dafbd372a2,
|
|
||||||
type: 2}
|
|
||||||
m_PrefabInternal: {fileID: 2139315739}
|
|
||||||
--- !u!1 &132238581
|
--- !u!1 &132238581
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -2905,167 +2900,6 @@ Prefab:
|
|||||||
propertyPath: m_RootOrder
|
propertyPath: m_RootOrder
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 4099946104317490, guid: e8761b9491a974d1780e60dafbd372a2, type: 2}
|
|
||||||
propertyPath: m_LocalPosition.z
|
|
||||||
value: 0.7
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 114633016952828368, guid: e8761b9491a974d1780e60dafbd372a2,
|
|
||||||
type: 2}
|
|
||||||
propertyPath: HologramMesh
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 122895534}
|
|
||||||
- target: {fileID: 4164543123855502, guid: e8761b9491a974d1780e60dafbd372a2, type: 2}
|
|
||||||
propertyPath: m_LocalScale.x
|
|
||||||
value: 0.115
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4164543123855502, guid: e8761b9491a974d1780e60dafbd372a2, type: 2}
|
|
||||||
propertyPath: m_LocalScale.z
|
|
||||||
value: 0.115
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 33337063842811222, guid: e8761b9491a974d1780e60dafbd372a2,
|
|
||||||
type: 2}
|
|
||||||
propertyPath: m_Mesh
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 4300000, guid: 8d9188969010c44ce935ad4421c967df, type: 3}
|
|
||||||
- target: {fileID: 64730419328261050, guid: e8761b9491a974d1780e60dafbd372a2,
|
|
||||||
type: 2}
|
|
||||||
propertyPath: m_Mesh
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 4300000, guid: 8d9188969010c44ce935ad4421c967df, type: 3}
|
|
||||||
- target: {fileID: 4508297394169232, guid: e8761b9491a974d1780e60dafbd372a2, type: 2}
|
|
||||||
propertyPath: m_LocalScale.x
|
|
||||||
value: 0.115
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4508297394169232, guid: e8761b9491a974d1780e60dafbd372a2, type: 2}
|
|
||||||
propertyPath: m_LocalScale.z
|
|
||||||
value: 0.115
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 33540133742758052, guid: e8761b9491a974d1780e60dafbd372a2,
|
|
||||||
type: 2}
|
|
||||||
propertyPath: m_Mesh
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 4300000, guid: 8d9188969010c44ce935ad4421c967df, type: 3}
|
|
||||||
- target: {fileID: 64705548599298680, guid: e8761b9491a974d1780e60dafbd372a2,
|
|
||||||
type: 2}
|
|
||||||
propertyPath: m_Mesh
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 4300000, guid: 8d9188969010c44ce935ad4421c967df, type: 3}
|
|
||||||
- target: {fileID: 4530634180654324, guid: e8761b9491a974d1780e60dafbd372a2, type: 2}
|
|
||||||
propertyPath: m_LocalScale.x
|
|
||||||
value: 0.115
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4530634180654324, guid: e8761b9491a974d1780e60dafbd372a2, type: 2}
|
|
||||||
propertyPath: m_LocalScale.z
|
|
||||||
value: 0.115
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 64013687062017004, guid: e8761b9491a974d1780e60dafbd372a2,
|
|
||||||
type: 2}
|
|
||||||
propertyPath: m_Mesh
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 4300000, guid: 8d9188969010c44ce935ad4421c967df, type: 3}
|
|
||||||
- target: {fileID: 33683376200718996, guid: e8761b9491a974d1780e60dafbd372a2,
|
|
||||||
type: 2}
|
|
||||||
propertyPath: m_Mesh
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 4300000, guid: 8d9188969010c44ce935ad4421c967df, type: 3}
|
|
||||||
- target: {fileID: 4638548974480200, guid: e8761b9491a974d1780e60dafbd372a2, type: 2}
|
|
||||||
propertyPath: m_LocalScale.x
|
|
||||||
value: 0.115
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4638548974480200, guid: e8761b9491a974d1780e60dafbd372a2, type: 2}
|
|
||||||
propertyPath: m_LocalScale.z
|
|
||||||
value: 0.115
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 33521042049071656, guid: e8761b9491a974d1780e60dafbd372a2,
|
|
||||||
type: 2}
|
|
||||||
propertyPath: m_Mesh
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 4300000, guid: 8d9188969010c44ce935ad4421c967df, type: 3}
|
|
||||||
- target: {fileID: 64624223168060348, guid: e8761b9491a974d1780e60dafbd372a2,
|
|
||||||
type: 2}
|
|
||||||
propertyPath: m_Mesh
|
|
||||||
value:
|
|
||||||
objectReference: {fileID: 4300000, guid: 8d9188969010c44ce935ad4421c967df, type: 3}
|
|
||||||
- target: {fileID: 4508297394169232, guid: e8761b9491a974d1780e60dafbd372a2, type: 2}
|
|
||||||
propertyPath: m_LocalRotation.x
|
|
||||||
value: -0.5
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4508297394169232, guid: e8761b9491a974d1780e60dafbd372a2, type: 2}
|
|
||||||
propertyPath: m_LocalRotation.y
|
|
||||||
value: 0.5
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4508297394169232, guid: e8761b9491a974d1780e60dafbd372a2, type: 2}
|
|
||||||
propertyPath: m_LocalRotation.z
|
|
||||||
value: 0.5
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4508297394169232, guid: e8761b9491a974d1780e60dafbd372a2, type: 2}
|
|
||||||
propertyPath: m_LocalRotation.w
|
|
||||||
value: 0.5
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4508297394169232, guid: e8761b9491a974d1780e60dafbd372a2, type: 2}
|
|
||||||
propertyPath: m_LocalEulerAnglesHint.x
|
|
||||||
value: -90
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4530634180654324, guid: e8761b9491a974d1780e60dafbd372a2, type: 2}
|
|
||||||
propertyPath: m_LocalRotation.x
|
|
||||||
value: -0.5
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4530634180654324, guid: e8761b9491a974d1780e60dafbd372a2, type: 2}
|
|
||||||
propertyPath: m_LocalRotation.y
|
|
||||||
value: 0.5
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4530634180654324, guid: e8761b9491a974d1780e60dafbd372a2, type: 2}
|
|
||||||
propertyPath: m_LocalRotation.z
|
|
||||||
value: 0.5
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4530634180654324, guid: e8761b9491a974d1780e60dafbd372a2, type: 2}
|
|
||||||
propertyPath: m_LocalRotation.w
|
|
||||||
value: 0.5
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4530634180654324, guid: e8761b9491a974d1780e60dafbd372a2, type: 2}
|
|
||||||
propertyPath: m_LocalEulerAnglesHint.x
|
|
||||||
value: -90
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4164543123855502, guid: e8761b9491a974d1780e60dafbd372a2, type: 2}
|
|
||||||
propertyPath: m_LocalRotation.x
|
|
||||||
value: -0.5
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4164543123855502, guid: e8761b9491a974d1780e60dafbd372a2, type: 2}
|
|
||||||
propertyPath: m_LocalRotation.y
|
|
||||||
value: 0.5
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4164543123855502, guid: e8761b9491a974d1780e60dafbd372a2, type: 2}
|
|
||||||
propertyPath: m_LocalRotation.z
|
|
||||||
value: 0.5
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4164543123855502, guid: e8761b9491a974d1780e60dafbd372a2, type: 2}
|
|
||||||
propertyPath: m_LocalRotation.w
|
|
||||||
value: 0.5
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4164543123855502, guid: e8761b9491a974d1780e60dafbd372a2, type: 2}
|
|
||||||
propertyPath: m_LocalEulerAnglesHint.x
|
|
||||||
value: -90
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4638548974480200, guid: e8761b9491a974d1780e60dafbd372a2, type: 2}
|
|
||||||
propertyPath: m_LocalRotation.x
|
|
||||||
value: -0.5
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4638548974480200, guid: e8761b9491a974d1780e60dafbd372a2, type: 2}
|
|
||||||
propertyPath: m_LocalRotation.y
|
|
||||||
value: 0.5
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4638548974480200, guid: e8761b9491a974d1780e60dafbd372a2, type: 2}
|
|
||||||
propertyPath: m_LocalRotation.z
|
|
||||||
value: 0.5
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4638548974480200, guid: e8761b9491a974d1780e60dafbd372a2, type: 2}
|
|
||||||
propertyPath: m_LocalRotation.w
|
|
||||||
value: 0.5
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4638548974480200, guid: e8761b9491a974d1780e60dafbd372a2, type: 2}
|
|
||||||
propertyPath: m_LocalEulerAnglesHint.x
|
|
||||||
value: -90
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
m_RemovedComponents: []
|
m_RemovedComponents: []
|
||||||
m_ParentPrefab: {fileID: 100100000, guid: e8761b9491a974d1780e60dafbd372a2, type: 2}
|
m_ParentPrefab: {fileID: 100100000, guid: e8761b9491a974d1780e60dafbd372a2, type: 2}
|
||||||
m_IsPrefabParent: 0
|
m_IsPrefabParent: 0
|
||||||
|
@ -20,6 +20,31 @@ namespace Cyber.Controls {
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public Hologram Hologram;
|
public Hologram Hologram;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The icon for the inventory.
|
||||||
|
/// </summary>
|
||||||
|
public MeshRenderer IconInventory;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The icon for the status.
|
||||||
|
/// </summary>
|
||||||
|
public MeshRenderer IconStatus;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The icon for the social.
|
||||||
|
/// </summary>
|
||||||
|
public MeshRenderer IconSocial;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The icon for the map.
|
||||||
|
/// </summary>
|
||||||
|
public MeshRenderer IconMap;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The text that describes the selected icon.
|
||||||
|
/// </summary>
|
||||||
|
public TextTextureApplier IconExplainerText;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The text that contains the item list.
|
/// The text that contains the item list.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -28,7 +53,7 @@ namespace Cyber.Controls {
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// How many items can be shown on the screen at the same time.
|
/// How many items can be shown on the screen at the same time.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int ItemsPerScreen;
|
public float ItemsPerScreen;
|
||||||
|
|
||||||
private CursorHandler CursorHandler;
|
private CursorHandler CursorHandler;
|
||||||
private bool InventoryOpen = false;
|
private bool InventoryOpen = false;
|
||||||
@ -36,9 +61,19 @@ namespace Cyber.Controls {
|
|||||||
private int ScrollingIndex = 0;
|
private int ScrollingIndex = 0;
|
||||||
private int SelectedIndex = -1;
|
private int SelectedIndex = -1;
|
||||||
|
|
||||||
|
private Color IconInventoryColor;
|
||||||
|
private Color IconStatusColor;
|
||||||
|
private Color IconSocialColor;
|
||||||
|
private Color IconMapColor;
|
||||||
|
|
||||||
private void Start() {
|
private void Start() {
|
||||||
CursorHandler = GameObject.Find("/Systems/CursorHandler").GetComponent<CursorHandler>();
|
CursorHandler = GameObject.Find("/Systems/CursorHandler").GetComponent<CursorHandler>();
|
||||||
RebuildItemList(-1);
|
RebuildItemList(-1);
|
||||||
|
|
||||||
|
IconInventoryColor = IconInventory.material.GetColor("_EmissionColor");
|
||||||
|
IconStatusColor = IconStatus.material.GetColor("_EmissionColor");
|
||||||
|
IconSocialColor = IconSocial.material.GetColor("_EmissionColor");
|
||||||
|
IconMapColor = IconMap.material.GetColor("_EmissionColor");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Update() {
|
private void Update() {
|
||||||
@ -51,6 +86,7 @@ namespace Cyber.Controls {
|
|||||||
RaycastHit LookedAt = CameraUtil.GetLookedAtHit(Camera, 1f, true);
|
RaycastHit LookedAt = CameraUtil.GetLookedAtHit(Camera, 1f, true);
|
||||||
if (LookedAt.collider != null) {
|
if (LookedAt.collider != null) {
|
||||||
TextTextureApplier Text = LookedAt.collider.GetComponent<TextTextureApplier>();
|
TextTextureApplier Text = LookedAt.collider.GetComponent<TextTextureApplier>();
|
||||||
|
MeshRenderer Mesh = LookedAt.collider.GetComponent<MeshRenderer>();
|
||||||
if (Text != null && Text == ItemListText) {
|
if (Text != null && Text == ItemListText) {
|
||||||
// Interacting with the item list
|
// Interacting with the item list
|
||||||
// Calculate the index
|
// Calculate the index
|
||||||
@ -70,6 +106,35 @@ namespace Cyber.Controls {
|
|||||||
|
|
||||||
// Rebuild the list
|
// Rebuild the list
|
||||||
RebuildItemList(CurrentIndex);
|
RebuildItemList(CurrentIndex);
|
||||||
|
} else if (Mesh != null) {
|
||||||
|
float InvBrightness = 1f;
|
||||||
|
float StsBrightness = 1f;
|
||||||
|
float SclBrightness = 1f;
|
||||||
|
float MapBrightness = 1f;
|
||||||
|
string SelectedIcon = "";
|
||||||
|
|
||||||
|
if (Mesh == IconInventory) {
|
||||||
|
InvBrightness = 1.2f;
|
||||||
|
SelectedIcon = "Inventory";
|
||||||
|
} else if (Mesh == IconStatus) {
|
||||||
|
StsBrightness = 1.2f;
|
||||||
|
SelectedIcon = "Status";
|
||||||
|
} else if (Mesh == IconSocial) {
|
||||||
|
SclBrightness = 1.2f;
|
||||||
|
SelectedIcon = "Social";
|
||||||
|
} else if (Mesh == IconMap) {
|
||||||
|
MapBrightness = 1.2f;
|
||||||
|
SelectedIcon = "Map";
|
||||||
|
}
|
||||||
|
|
||||||
|
TextTextureProperties Props = IconExplainerText.TextProperties;
|
||||||
|
Props.Text = SelectedIcon;
|
||||||
|
IconExplainerText.SetTextProperties(Props);
|
||||||
|
|
||||||
|
IconInventory.material.SetColor("_EmissionColor", IconInventoryColor * InvBrightness);
|
||||||
|
IconStatus.material.SetColor("_EmissionColor", IconStatusColor * StsBrightness);
|
||||||
|
IconSocial.material.SetColor("_EmissionColor", IconSocialColor * SclBrightness);
|
||||||
|
IconMap.material.SetColor("_EmissionColor", IconMapColor * MapBrightness);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Outside of the inventory, clicking will unselect
|
// Outside of the inventory, clicking will unselect
|
||||||
|
@ -25,6 +25,11 @@ namespace Cyber.Util {
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public int OffsetY;
|
public int OffsetY;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Whether the text is centered or not.
|
||||||
|
/// </summary>
|
||||||
|
public bool Centered;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The offset on the y-axis in pixels.
|
/// The offset on the y-axis in pixels.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -50,18 +55,21 @@ namespace Cyber.Util {
|
|||||||
/// <see cref="TextTextureRenderer"/> for usage.
|
/// <see cref="TextTextureRenderer"/> for usage.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="text">Text.</param>
|
/// <param name="text">Text.</param>
|
||||||
/// <param name="offsetX">X offset.</param>
|
/// <param name="offsetX">Offset x.</param>
|
||||||
/// <param name="offsetY">Y offset.</param>
|
/// <param name="offsetY">Offset y.</param>
|
||||||
|
/// <param name="centered">If set to <c>true</c> centered.</param>
|
||||||
/// <param name="background">Background.</param>
|
/// <param name="background">Background.</param>
|
||||||
/// <param name="fontSize">Font size.</param>
|
/// <param name="fontSize">Font size.</param>
|
||||||
/// <param name="width">Width.</param>
|
/// <param name="width">Width.</param>
|
||||||
/// <param name="height">Height.</param>
|
/// <param name="height">Height.</param>
|
||||||
public TextTextureProperties(string text, int offsetX = 0,
|
public TextTextureProperties(string text, int offsetX = 0,
|
||||||
int offsetY = 0, Color background = new Color(),
|
int offsetY = 0, bool centered = false,
|
||||||
int fontSize = 32, int width = 256, int height = 256) {
|
Color background = new Color(), int fontSize = 32,
|
||||||
|
int width = 256, int height = 256) {
|
||||||
Text = text;
|
Text = text;
|
||||||
OffsetX = offsetX;
|
OffsetX = offsetX;
|
||||||
OffsetY = offsetY;
|
OffsetY = offsetY;
|
||||||
|
Centered = centered;
|
||||||
Background = background;
|
Background = background;
|
||||||
FontSize = fontSize;
|
FontSize = fontSize;
|
||||||
Width = width;
|
Width = width;
|
||||||
|
@ -41,6 +41,12 @@ namespace Cyber.Util {
|
|||||||
|
|
||||||
float OffsetX = -text.Width / 2f;
|
float OffsetX = -text.Width / 2f;
|
||||||
float OffsetY = -text.Height / 2f;
|
float OffsetY = -text.Height / 2f;
|
||||||
|
if (text.Centered) {
|
||||||
|
OffsetX = 0;
|
||||||
|
Text.anchor = TextAnchor.UpperCenter;
|
||||||
|
} else {
|
||||||
|
Text.anchor = TextAnchor.UpperLeft;
|
||||||
|
}
|
||||||
Camera.orthographicSize = 1.0f * text.Height / text.Width;
|
Camera.orthographicSize = 1.0f * text.Height / text.Width;
|
||||||
Camera.targetTexture = TextTexture;
|
Camera.targetTexture = TextTexture;
|
||||||
Camera.backgroundColor = text.Background;
|
Camera.backgroundColor = text.Background;
|
||||||
|
Loading…
Reference in New Issue
Block a user