diff --git a/Assets/Animations/TabBox/Open.anim b/Assets/Animations/TabBox/Open.anim index 34872a8..6151ff5 100644 --- a/Assets/Animations/TabBox/Open.anim +++ b/Assets/Animations/TabBox/Open.anim @@ -21,13 +21,13 @@ AnimationClip: m_Curve: - serializedVersion: 2 time: 0 - value: -127.19 - inSlope: -340.85947 - outSlope: -340.85947 + value: -39.9 + inSlope: -210.07977 + outSlope: -210.07977 tangentMode: 0 - serializedVersion: 2 time: 0.41666666 - value: -153 + value: -54.350006 inSlope: 0 outSlope: 0 tangentMode: 136 @@ -65,7 +65,13 @@ AnimationClip: m_Curve: - serializedVersion: 2 time: 0 - value: -111.23 + value: -114.1 + inSlope: 0 + outSlope: 0 + tangentMode: 136 + - serializedVersion: 2 + time: 0.41666666 + value: -114.099976 inSlope: 0 outSlope: 0 tangentMode: 136 @@ -132,13 +138,13 @@ AnimationClip: m_Curve: - serializedVersion: 2 time: 0 - value: -127.19 - inSlope: -340.85947 - outSlope: -340.85947 + value: -39.9 + inSlope: -210.07977 + outSlope: -210.07977 tangentMode: 0 - serializedVersion: 2 time: 0.41666666 - value: -153 + value: -54.350006 inSlope: 0 outSlope: 0 tangentMode: 136 @@ -176,7 +182,13 @@ AnimationClip: m_Curve: - serializedVersion: 2 time: 0 - value: -111.23 + value: -114.1 + inSlope: 0 + outSlope: 0 + tangentMode: 136 + - serializedVersion: 2 + time: 0.41666666 + value: -114.099976 inSlope: 0 outSlope: 0 tangentMode: 136 diff --git a/Assets/FilesBox.cs b/Assets/FilesBox.cs new file mode 100644 index 0000000..8559eb5 --- /dev/null +++ b/Assets/FilesBox.cs @@ -0,0 +1,18 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.UI; + +public class FilesBox : MonoBehaviour { + + public GameObject fileNamePrefab; + + public void SetupTexts(List files) { + foreach (var item in files) { + GameObject go = Instantiate(fileNamePrefab, gameObject.transform.position, gameObject.transform.rotation); + go.transform.SetParent(gameObject.transform); + go.transform.localScale = go.transform.lossyScale; + go.GetComponent().text = item; + } + } +} diff --git a/Assets/FilesBox.cs.meta b/Assets/FilesBox.cs.meta new file mode 100644 index 0000000..74ca719 --- /dev/null +++ b/Assets/FilesBox.cs.meta @@ -0,0 +1,13 @@ +fileFormatVersion: 2 +guid: 3f683aedd663347b8a75d5948a641900 +timeCreated: 1532695500 +licenseType: Pro +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/MainScene.unity b/Assets/MainScene.unity index f26d73e..bb95b09 100644 --- a/Assets/MainScene.unity +++ b/Assets/MainScene.unity @@ -217,6 +217,80 @@ MonoBehaviour: m_EditorClassIdentifier: dayIfFirstMonday: Su dayIfFirstSunday: Sa +--- !u!1 &59370672 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 59370673} + - component: {fileID: 59370675} + - component: {fileID: 59370674} + m_Layer: 5 + m_Name: Text + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &59370673 +RectTransform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 59370672} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -50.23923, y: -23.23077, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 2063773715} + m_RootOrder: 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: -820.5762, y: -375.57617} + m_SizeDelta: {x: 160, y: 21.1} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &59370674 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 59370672} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 0, g: 0.7058824, b: 0.8156863, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_FontData: + m_Font: {fileID: 12800000, guid: 97c8526a1006447bbbb6f253b4e9bcc7, type: 3} + m_FontSize: 16 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 1 + m_MaxSize: 40 + m_Alignment: 0 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: Opened files +--- !u!222 &59370675 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 59370672} --- !u!1 &92483157 GameObject: m_ObjectHideFlags: 0 @@ -556,7 +630,7 @@ Prefab: - target: {fileID: 224625523562565964, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} propertyPath: m_LocalPosition.y - value: -0.0000038146973 + value: 0 objectReference: {fileID: 0} - target: {fileID: 224625523562565964, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} @@ -646,7 +720,7 @@ Prefab: - target: {fileID: 224794236505317320, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} propertyPath: m_LocalPosition.y - value: -25.399994 + value: 0 objectReference: {fileID: 0} - target: {fileID: 224186251391229476, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} @@ -910,7 +984,7 @@ RectTransform: m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 148047052} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0.5299988, y: -69.18078, z: 0} + m_LocalPosition: {x: 0.5299988, y: -168.08078, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 2083745443} @@ -1183,7 +1257,7 @@ RectTransform: m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 157423043} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: -1.1499786, y: -184.81567, z: 0} + m_LocalPosition: {x: -1.1499786, y: -184.81564, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 1764345209} @@ -2480,6 +2554,11 @@ MonoBehaviour: m_TypeName: UnityEngine.EventSystems.EventTrigger+TriggerEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null delegates: [] +--- !u!224 &388579200 stripped +RectTransform: + m_PrefabParentObject: {fileID: 224053785547310100, guid: cf433dc1494154367a29236ff6b651c3, + type: 2} + m_PrefabInternal: {fileID: 1896842817} --- !u!1 &412592544 GameObject: m_ObjectHideFlags: 0 @@ -3347,6 +3426,169 @@ CanvasRenderer: m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 490584818} +--- !u!1001 &491323783 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 565950012} + m_Modifications: + - target: {fileID: 224765645928447170, guid: 103d1f8304bdb41bea27bcf9b447795c, + type: 2} + propertyPath: m_LocalPosition.x + value: -36.580772 + objectReference: {fileID: 0} + - target: {fileID: 224765645928447170, guid: 103d1f8304bdb41bea27bcf9b447795c, + type: 2} + propertyPath: m_LocalPosition.y + value: -0.000061035156 + objectReference: {fileID: 0} + - target: {fileID: 224765645928447170, guid: 103d1f8304bdb41bea27bcf9b447795c, + type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 224765645928447170, guid: 103d1f8304bdb41bea27bcf9b447795c, + type: 2} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 224765645928447170, guid: 103d1f8304bdb41bea27bcf9b447795c, + type: 2} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 224765645928447170, guid: 103d1f8304bdb41bea27bcf9b447795c, + type: 2} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 224765645928447170, guid: 103d1f8304bdb41bea27bcf9b447795c, + type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 224765645928447170, guid: 103d1f8304bdb41bea27bcf9b447795c, + type: 2} + propertyPath: m_RootOrder + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 224765645928447170, guid: 103d1f8304bdb41bea27bcf9b447795c, + type: 2} + propertyPath: m_AnchoredPosition.x + value: 57.11145 + objectReference: {fileID: 0} + - target: {fileID: 224765645928447170, guid: 103d1f8304bdb41bea27bcf9b447795c, + type: 2} + propertyPath: m_AnchoredPosition.y + value: -0.000061035156 + objectReference: {fileID: 0} + - target: {fileID: 224765645928447170, guid: 103d1f8304bdb41bea27bcf9b447795c, + type: 2} + propertyPath: m_SizeDelta.x + value: 91.07692 + objectReference: {fileID: 0} + - target: {fileID: 224765645928447170, guid: 103d1f8304bdb41bea27bcf9b447795c, + type: 2} + propertyPath: m_SizeDelta.y + value: 37 + objectReference: {fileID: 0} + - target: {fileID: 224765645928447170, guid: 103d1f8304bdb41bea27bcf9b447795c, + type: 2} + propertyPath: m_AnchorMin.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 224765645928447170, guid: 103d1f8304bdb41bea27bcf9b447795c, + type: 2} + propertyPath: m_AnchorMin.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 224765645928447170, guid: 103d1f8304bdb41bea27bcf9b447795c, + type: 2} + propertyPath: m_AnchorMax.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 224765645928447170, guid: 103d1f8304bdb41bea27bcf9b447795c, + type: 2} + propertyPath: m_AnchorMax.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 224765645928447170, guid: 103d1f8304bdb41bea27bcf9b447795c, + type: 2} + propertyPath: m_Pivot.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 224765645928447170, guid: 103d1f8304bdb41bea27bcf9b447795c, + type: 2} + propertyPath: m_Pivot.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 224027010031595932, guid: 103d1f8304bdb41bea27bcf9b447795c, + type: 2} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 224027010031595932, guid: 103d1f8304bdb41bea27bcf9b447795c, + type: 2} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 114209058920708520, guid: 103d1f8304bdb41bea27bcf9b447795c, + type: 2} + propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target + value: + objectReference: {fileID: 565950014} + - target: {fileID: 114209058920708520, guid: 103d1f8304bdb41bea27bcf9b447795c, + type: 2} + propertyPath: m_Colors.m_HighlightedColor.r + value: 0.86764705 + objectReference: {fileID: 0} + - target: {fileID: 114209058920708520, guid: 103d1f8304bdb41bea27bcf9b447795c, + type: 2} + propertyPath: m_Colors.m_HighlightedColor.g + value: 0.86764705 + objectReference: {fileID: 0} + - target: {fileID: 114209058920708520, guid: 103d1f8304bdb41bea27bcf9b447795c, + type: 2} + propertyPath: m_Colors.m_HighlightedColor.b + value: 0.86764705 + objectReference: {fileID: 0} + - target: {fileID: 1660984752974596, guid: 103d1f8304bdb41bea27bcf9b447795c, type: 2} + propertyPath: m_IsActive + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 224765645928447170, guid: 103d1f8304bdb41bea27bcf9b447795c, + type: 2} + propertyPath: m_LocalScale.x + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 224765645928447170, guid: 103d1f8304bdb41bea27bcf9b447795c, + type: 2} + propertyPath: m_LocalScale.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 224765645928447170, guid: 103d1f8304bdb41bea27bcf9b447795c, + type: 2} + propertyPath: m_LocalScale.z + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1660984752974596, guid: 103d1f8304bdb41bea27bcf9b447795c, type: 2} + propertyPath: m_Name + value: ButtonFiles + objectReference: {fileID: 0} + - target: {fileID: 114209058920708520, guid: 103d1f8304bdb41bea27bcf9b447795c, + type: 2} + propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Arguments.m_IntArgument + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 114824166883957558, guid: 103d1f8304bdb41bea27bcf9b447795c, + type: 2} + propertyPath: m_Text + value: Files + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: 103d1f8304bdb41bea27bcf9b447795c, type: 2} + m_IsPrefabParent: 0 --- !u!224 &499370168 stripped RectTransform: m_PrefabParentObject: {fileID: 224640988348812148, guid: ba260f12d9a1d4a7e9507f0667ff1d98, @@ -3527,7 +3769,7 @@ Prefab: - target: {fileID: 224625523562565964, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} propertyPath: m_LocalPosition.y - value: -0.0000038146973 + value: 0 objectReference: {fileID: 0} - target: {fileID: 224625523562565964, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} @@ -3617,7 +3859,7 @@ Prefab: - target: {fileID: 224794236505317320, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} propertyPath: m_LocalPosition.y - value: -25.399994 + value: 0 objectReference: {fileID: 0} - target: {fileID: 224186251391229476, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} @@ -3707,7 +3949,7 @@ Prefab: - target: {fileID: 224625523562565964, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} propertyPath: m_LocalPosition.y - value: 0.000017166138 + value: 0 objectReference: {fileID: 0} - target: {fileID: 224625523562565964, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} @@ -3797,7 +4039,7 @@ Prefab: - target: {fileID: 224794236505317320, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} propertyPath: m_LocalPosition.y - value: -25.399994 + value: 0 objectReference: {fileID: 0} - target: {fileID: 224186251391229476, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} @@ -3906,9 +4148,10 @@ RectTransform: m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 565950011} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 284.92386, y: 195.49232, z: 0} + m_LocalPosition: {x: 380.30847, y: 249.33849, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: + - {fileID: 1881068476} - {fileID: 2059424200} m_Father: {fileID: 2127403382} m_RootOrder: 5 @@ -3935,7 +4178,7 @@ MonoBehaviour: m_Top: 0 m_Bottom: 0 m_ChildAlignment: 5 - m_Spacing: 0 + m_Spacing: 8 m_ChildForceExpandWidth: 0 m_ChildForceExpandHeight: 1 m_ChildControlWidth: 1 @@ -3953,8 +4196,10 @@ MonoBehaviour: m_EditorClassIdentifier: buttons: - {fileID: 2059424205} + - {fileID: 1881068471} tabs: - {fileID: 1861917361} + - {fileID: 2063773714} --- !u!1001 &573878860 Prefab: m_ObjectHideFlags: 0 @@ -4238,7 +4483,7 @@ Prefab: - target: {fileID: 224625523562565964, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} propertyPath: m_LocalPosition.y - value: -0.0000038146973 + value: 0 objectReference: {fileID: 0} - target: {fileID: 224625523562565964, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} @@ -4328,7 +4573,7 @@ Prefab: - target: {fileID: 224794236505317320, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} propertyPath: m_LocalPosition.y - value: -25.399994 + value: 0 objectReference: {fileID: 0} - target: {fileID: 224186251391229476, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} @@ -4595,7 +4840,7 @@ RectTransform: m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 614815317} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 40.71923, z: 0} + m_LocalPosition: {x: 0, y: -58.18077, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 957946971} @@ -5404,7 +5649,7 @@ Prefab: - target: {fileID: 224625523562565964, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} propertyPath: m_LocalPosition.y - value: -0.0000038146973 + value: 0 objectReference: {fileID: 0} - target: {fileID: 224625523562565964, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} @@ -5494,7 +5739,7 @@ Prefab: - target: {fileID: 224794236505317320, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} propertyPath: m_LocalPosition.y - value: -25.399994 + value: 0 objectReference: {fileID: 0} - target: {fileID: 224186251391229476, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} @@ -5801,7 +6046,7 @@ RectTransform: m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 715392269} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 18.180008, y: 68.81732, z: 0} + m_LocalPosition: {x: 18.180008, y: 122.66348, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 1202556823} @@ -5854,7 +6099,7 @@ Prefab: - target: {fileID: 224625523562565964, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} propertyPath: m_LocalPosition.y - value: -22.80001 + value: 0 objectReference: {fileID: 0} - target: {fileID: 224625523562565964, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} @@ -5944,7 +6189,7 @@ Prefab: - target: {fileID: 224794236505317320, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} propertyPath: m_LocalPosition.y - value: -25.399994 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1783968414692944, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} propertyPath: m_Name @@ -6155,7 +6400,7 @@ RectTransform: m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 803260321} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: -18.499992, z: 0} + m_LocalPosition: {x: 0, y: -18.5, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 1371052591} @@ -6758,7 +7003,7 @@ Prefab: - target: {fileID: 224350159365492842, guid: 8d31e36d99cd3470a9098165f53d0979, type: 2} propertyPath: m_LocalPosition.y - value: -494.46735 + value: -146.815 objectReference: {fileID: 0} - target: {fileID: 224350159365492842, guid: 8d31e36d99cd3470a9098165f53d0979, type: 2} @@ -7083,7 +7328,7 @@ RectTransform: m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 897516546} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0.05000305, y: 187.81732, z: 0} + m_LocalPosition: {x: 0.05000305, y: 241.66348, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 1059206952} @@ -7399,7 +7644,7 @@ RectTransform: m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 923627224} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -87.47, y: -16.46154, z: 0} + m_LocalPosition: {x: -87.47, y: -115.36154, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 669576078} @@ -7656,7 +7901,7 @@ RectTransform: m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 967983572} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: -184.81558, z: 0} + m_LocalPosition: {x: 0, y: -184.81561, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 1602435184} @@ -7765,7 +8010,7 @@ Prefab: - target: {fileID: 224765645928447170, guid: 103d1f8304bdb41bea27bcf9b447795c, type: 2} propertyPath: m_RootOrder - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 224765645928447170, guid: 103d1f8304bdb41bea27bcf9b447795c, type: 2} @@ -7825,7 +8070,7 @@ Prefab: - target: {fileID: 224027010031595932, guid: 103d1f8304bdb41bea27bcf9b447795c, type: 2} propertyPath: m_LocalPosition.y - value: -256.9231 + value: 0 objectReference: {fileID: 0} - target: {fileID: 114209058920708520, guid: 103d1f8304bdb41bea27bcf9b447795c, type: 2} @@ -7851,6 +8096,10 @@ Prefab: propertyPath: m_IsActive value: 1 objectReference: {fileID: 0} + - target: {fileID: 1660984752974596, guid: 103d1f8304bdb41bea27bcf9b447795c, type: 2} + propertyPath: m_Name + value: ButtonFilters + objectReference: {fileID: 0} m_RemovedComponents: [] m_ParentPrefab: {fileID: 100100000, guid: 103d1f8304bdb41bea27bcf9b447795c, type: 2} m_IsPrefabParent: 0 @@ -8549,7 +8798,7 @@ RectTransform: m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 1144076161} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 119.829956, y: -131.9573, z: 0} + m_LocalPosition: {x: 119.82999, y: -185.80345, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 1340324852} @@ -8758,7 +9007,7 @@ RectTransform: m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 1191064335} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: -87.47, y: -36.46154, z: 0} + m_LocalPosition: {x: -87.47, y: -135.36154, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 156510042} @@ -8881,7 +9130,7 @@ RectTransform: m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 1197122674} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0.025032043, y: 222.71478, z: 0} + m_LocalPosition: {x: 0.025032043, y: 276.54227, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 211861403} @@ -8902,7 +9151,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 119.00001, y: -0.10253906} + m_AnchoredPosition: {x: 119.00001, y: -0.12121582} m_SizeDelta: {x: 237.9, y: 498.9} m_Pivot: {x: 0.5, y: 1} --- !u!114 &1197122676 @@ -9302,7 +9551,7 @@ RectTransform: m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 1297436821} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: -38.700768, y: 5.7692337, z: 0} + m_LocalPosition: {x: -38.700768, y: -93.13077, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 1861917362} @@ -9574,7 +9823,7 @@ RectTransform: m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 1371052590} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 1.1500015, y: 222.71564, z: 0} + m_LocalPosition: {x: 1.1500015, y: 276.59286, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 1051724950} @@ -9586,7 +9835,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 1.1500001, y: -0.10168457} + m_AnchoredPosition: {x: 1.1500001, y: -0.070617676} m_SizeDelta: {x: 0, y: 449} m_Pivot: {x: 0.5, y: 1} --- !u!114 &1371052592 @@ -9864,7 +10113,7 @@ RectTransform: m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 1433522475} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 277.58182, y: 60, z: 0} + m_LocalPosition: {x: 373.00827, y: 60, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 637090571} @@ -9873,7 +10122,7 @@ RectTransform: 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: 277.58182, y: 60} + m_AnchoredPosition: {x: 373.00827, y: 60} m_SizeDelta: {x: 400, y: 150} m_Pivot: {x: 1, y: 1} --- !u!114 &1433522477 @@ -10783,7 +11032,7 @@ RectTransform: m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 1616544792} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0.000015258789, y: 189.82236, z: 0} + m_LocalPosition: {x: 0.000015258789, y: 243.66852, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 2119123834} @@ -10913,7 +11162,7 @@ RectTransform: m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 1659316460} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -45.623844, y: 75.669235, z: 0} + m_LocalPosition: {x: -45.623844, y: -23.23077, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 1861917362} @@ -10978,7 +11227,7 @@ Prefab: - target: {fileID: 224625523562565964, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} propertyPath: m_LocalPosition.y - value: -22.80001 + value: 0 objectReference: {fileID: 0} - target: {fileID: 224625523562565964, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} @@ -11068,7 +11317,7 @@ Prefab: - target: {fileID: 224794236505317320, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} propertyPath: m_LocalPosition.y - value: -25.399994 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1783968414692944, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} propertyPath: m_Name @@ -11643,7 +11892,7 @@ RectTransform: m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 1764345208} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -278.17383, y: 0.12501526, z: 0} + m_LocalPosition: {x: -373.55847, y: 0.12503052, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 157423044} @@ -12115,7 +12364,7 @@ Prefab: - target: {fileID: 224625523562565964, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} propertyPath: m_LocalPosition.y - value: -0.0000038146973 + value: 0 objectReference: {fileID: 0} - target: {fileID: 224625523562565964, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} @@ -12205,7 +12454,7 @@ Prefab: - target: {fileID: 224794236505317320, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} propertyPath: m_LocalPosition.y - value: -25.399994 + value: 0 objectReference: {fileID: 0} - target: {fileID: 224186251391229476, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} @@ -12561,7 +12810,7 @@ RectTransform: m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 1861917361} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 282.05386, y: 69.69232, z: 0} + m_LocalPosition: {x: 377.43848, y: 222.43849, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 1659316461} @@ -12576,9 +12825,9 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: -114.1, y: -153} + m_AnchoredPosition: {x: -114.1, y: -54.09999} m_SizeDelta: {x: 208.94, y: 197.8} - m_Pivot: {x: 0.5, y: 0.5} + m_Pivot: {x: 0.5, y: 1} --- !u!114 &1861917363 MonoBehaviour: m_ObjectHideFlags: 0 @@ -12776,6 +13025,17 @@ MonoBehaviour: m_ChildForceExpandHeight: 1 m_ChildControlWidth: 0 m_ChildControlHeight: 0 +--- !u!114 &1881068471 stripped +MonoBehaviour: + m_PrefabParentObject: {fileID: 114863656116577508, guid: 103d1f8304bdb41bea27bcf9b447795c, + type: 2} + m_PrefabInternal: {fileID: 491323783} + m_Script: {fileID: 11500000, guid: 4ebab3e09d845491ba1554514dc94b84, type: 3} +--- !u!224 &1881068476 stripped +RectTransform: + m_PrefabParentObject: {fileID: 224765645928447170, guid: 103d1f8304bdb41bea27bcf9b447795c, + type: 2} + m_PrefabInternal: {fileID: 491323783} --- !u!1001 &1892780522 Prefab: m_ObjectHideFlags: 0 @@ -12791,7 +13051,7 @@ Prefab: - target: {fileID: 224625523562565964, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} propertyPath: m_LocalPosition.y - value: 0.000017166138 + value: 0 objectReference: {fileID: 0} - target: {fileID: 224625523562565964, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} @@ -12881,7 +13141,7 @@ Prefab: - target: {fileID: 224794236505317320, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} propertyPath: m_LocalPosition.y - value: -25.399994 + value: 0 objectReference: {fileID: 0} - target: {fileID: 224186251391229476, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} @@ -12955,6 +13215,110 @@ Prefab: m_RemovedComponents: [] m_ParentPrefab: {fileID: 100100000, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, type: 2} m_IsPrefabParent: 0 +--- !u!1001 &1896842817 +Prefab: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 2063773715} + m_Modifications: + - target: {fileID: 224053785547310100, guid: cf433dc1494154367a29236ff6b651c3, + type: 2} + propertyPath: m_LocalPosition.x + value: -45.623905 + objectReference: {fileID: 0} + - target: {fileID: 224053785547310100, guid: cf433dc1494154367a29236ff6b651c3, + type: 2} + propertyPath: m_LocalPosition.y + value: 52.43854 + objectReference: {fileID: 0} + - target: {fileID: 224053785547310100, guid: cf433dc1494154367a29236ff6b651c3, + type: 2} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 224053785547310100, guid: cf433dc1494154367a29236ff6b651c3, + type: 2} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 224053785547310100, guid: cf433dc1494154367a29236ff6b651c3, + type: 2} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 224053785547310100, guid: cf433dc1494154367a29236ff6b651c3, + type: 2} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 224053785547310100, guid: cf433dc1494154367a29236ff6b651c3, + type: 2} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 224053785547310100, guid: cf433dc1494154367a29236ff6b651c3, + type: 2} + propertyPath: m_RootOrder + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 224053785547310100, guid: cf433dc1494154367a29236ff6b651c3, + type: 2} + propertyPath: m_AnchoredPosition.x + value: -45.6239 + objectReference: {fileID: 0} + - target: {fileID: 224053785547310100, guid: cf433dc1494154367a29236ff6b651c3, + type: 2} + propertyPath: m_AnchoredPosition.y + value: 75.66931 + objectReference: {fileID: 0} + - target: {fileID: 224053785547310100, guid: cf433dc1494154367a29236ff6b651c3, + type: 2} + propertyPath: m_SizeDelta.x + value: 97.692314 + objectReference: {fileID: 0} + - target: {fileID: 224053785547310100, guid: cf433dc1494154367a29236ff6b651c3, + type: 2} + propertyPath: m_SizeDelta.y + value: 18.461538 + objectReference: {fileID: 0} + - target: {fileID: 224053785547310100, guid: cf433dc1494154367a29236ff6b651c3, + type: 2} + propertyPath: m_AnchorMin.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 224053785547310100, guid: cf433dc1494154367a29236ff6b651c3, + type: 2} + propertyPath: m_AnchorMin.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 224053785547310100, guid: cf433dc1494154367a29236ff6b651c3, + type: 2} + propertyPath: m_AnchorMax.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 224053785547310100, guid: cf433dc1494154367a29236ff6b651c3, + type: 2} + propertyPath: m_AnchorMax.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 224053785547310100, guid: cf433dc1494154367a29236ff6b651c3, + type: 2} + propertyPath: m_Pivot.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 224053785547310100, guid: cf433dc1494154367a29236ff6b651c3, + type: 2} + propertyPath: m_Pivot.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 1486875852463554, guid: cf433dc1494154367a29236ff6b651c3, type: 2} + propertyPath: m_IsActive + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 100100000, guid: cf433dc1494154367a29236ff6b651c3, type: 2} + m_IsPrefabParent: 0 --- !u!1 &1899393205 stripped GameObject: m_PrefabParentObject: {fileID: 1783968414692944, guid: 6c102dc0946bc4b52bc63bf9f4b4af23, @@ -13596,6 +13960,157 @@ MonoBehaviour: type: 2} m_PrefabInternal: {fileID: 973820505} m_Script: {fileID: 11500000, guid: 4ebab3e09d845491ba1554514dc94b84, type: 3} +--- !u!1 &2063773714 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 2063773715} + - component: {fileID: 2063773721} + - component: {fileID: 2063773720} + - component: {fileID: 2063773719} + - component: {fileID: 2063773718} + - component: {fileID: 2063773717} + - component: {fileID: 2063773716} + - component: {fileID: 2063773722} + m_Layer: 5 + m_Name: FilesBox + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2063773715 +RectTransform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2063773714} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 377.4385, y: 222.43387, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 59370673} + - {fileID: 388579200} + m_Father: {fileID: 2127403382} + m_RootOrder: 7 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 1, y: 1} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: -114.099976, y: -54.104614} + m_SizeDelta: {x: 208.94, y: 197.8} + m_Pivot: {x: 0.5, y: 1} +--- !u!114 &2063773716 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2063773714} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 1741964061, guid: f70555f144d8491a825f0804e09c671c, type: 3} + m_Name: + m_EditorClassIdentifier: + m_HorizontalFit: 0 + m_VerticalFit: 2 +--- !u!225 &2063773717 +CanvasGroup: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2063773714} + m_Enabled: 1 + m_Alpha: 1 + m_Interactable: 1 + m_BlocksRaycasts: 1 + m_IgnoreParentGroups: 0 +--- !u!95 &2063773718 +Animator: + serializedVersion: 3 + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2063773714} + m_Enabled: 1 + m_Avatar: {fileID: 0} + m_Controller: {fileID: 9100000, guid: e3caa5e2859c24112b61a45b19c436a7, type: 2} + m_CullingMode: 0 + m_UpdateMode: 0 + m_ApplyRootMotion: 0 + m_LinearVelocityBlending: 0 + m_WarningMessage: + m_HasTransformHierarchy: 1 + m_AllowConstantClipSamplingOptimization: 1 +--- !u!114 &2063773719 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2063773714} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 1297475563, guid: f70555f144d8491a825f0804e09c671c, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Padding: + m_Left: 10 + m_Right: 10 + m_Top: 14 + m_Bottom: 14 + m_ChildAlignment: 0 + m_Spacing: 6 + m_ChildForceExpandWidth: 0 + m_ChildForceExpandHeight: 0 + m_ChildControlWidth: 1 + m_ChildControlHeight: 1 +--- !u!114 &2063773720 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2063773714} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 21300000, guid: 02ea58f7e164141a08cb0c80895993cd, type: 3} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!222 &2063773721 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2063773714} +--- !u!114 &2063773722 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2063773714} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 3f683aedd663347b8a75d5948a641900, type: 3} + m_Name: + m_EditorClassIdentifier: + fileNamePrefab: {fileID: 1486875852463554, guid: cf433dc1494154367a29236ff6b651c3, + type: 2} --- !u!1 &2078342590 GameObject: m_ObjectHideFlags: 0 @@ -13620,7 +14135,7 @@ RectTransform: m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 2078342590} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0.07500458, y: 187.81732, z: 0} + m_LocalPosition: {x: 0.07500458, y: 241.66348, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 2102326051} @@ -14068,7 +14583,7 @@ RectTransform: m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 2127403378} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 515, y: 289.5, z: 0} + m_LocalPosition: {x: 639, y: 359.5, z: 0} m_LocalScale: {x: 1.3, y: 1.3, z: 1.3} m_Children: - {fileID: 187655526} @@ -14078,6 +14593,7 @@ RectTransform: - {fileID: 829495929} - {fileID: 565950012} - {fileID: 1861917362} + - {fileID: 2063773715} m_Father: {fileID: 0} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -14120,6 +14636,8 @@ MonoBehaviour: animator: {fileID: 1410171404} summaryPrefab: {fileID: 1208275001726366, guid: 8d31e36d99cd3470a9098165f53d0979, type: 2} + uploadedFiles: [] + filesBox: {fileID: 2063773722} --- !u!114 &2127403384 MonoBehaviour: m_ObjectHideFlags: 0 @@ -14353,7 +14871,7 @@ RectTransform: m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 2142407208} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: -25.945679, y: -71.84424, z: 0} + m_LocalPosition: {x: -25.945679, y: -170.74423, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 1861917362} diff --git a/Assets/Prefabs/FileNameText.prefab b/Assets/Prefabs/FileNameText.prefab new file mode 100644 index 0000000..7496539 --- /dev/null +++ b/Assets/Prefabs/FileNameText.prefab @@ -0,0 +1,87 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: [] + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 1486875852463554} + m_IsPrefabParent: 1 +--- !u!1 &1486875852463554 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 5 + m_Component: + - component: {fileID: 224053785547310100} + - component: {fileID: 222951397623006028} + - component: {fileID: 114244393394802566} + m_Layer: 5 + m_Name: FileNameText + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &114244393394802566 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1486875852463554} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 0.2901961, g: 0.2901961, b: 0.2901961, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_FontData: + m_Font: {fileID: 12800000, guid: b83603e8e4e014b119d18d8da890cd14, type: 3} + m_FontSize: 11 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 1 + m_MaxSize: 40 + m_Alignment: 0 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: Activity filters +--- !u!222 &222951397623006028 +CanvasRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1486875852463554} +--- !u!224 &224053785547310100 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1486875852463554} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -45.623905, y: 75.66931, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 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: -45.6239, y: 75.66931} + m_SizeDelta: {x: 97.692314, y: 18.461538} + m_Pivot: {x: 0.5, y: 0.5} diff --git a/Assets/Prefabs/FileNameText.prefab.meta b/Assets/Prefabs/FileNameText.prefab.meta new file mode 100644 index 0000000..e702522 --- /dev/null +++ b/Assets/Prefabs/FileNameText.prefab.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: cf433dc1494154367a29236ff6b651c3 +timeCreated: 1532695565 +licenseType: Pro +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 100100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/ReadJson.cs b/Assets/Scripts/ReadJson.cs index 88dde17..567fdd8 100644 --- a/Assets/Scripts/ReadJson.cs +++ b/Assets/Scripts/ReadJson.cs @@ -130,6 +130,10 @@ public class ReadJson : MonoBehaviour { [Header("Summary")] public GameObject summaryPrefab; + [Header("Uploaded files")] + public List uploadedFiles; + public FilesBox filesBox; + void Awake() { instance = this; colors = activitesColor; @@ -138,7 +142,10 @@ void Awake() { void Start() { PlacesSave.Load(); OpenFileDialog(); - CheckIfCanDraw(); + if (uploadedFiles.Count > 0) { + filesBox.SetupTexts(uploadedFiles); + CheckIfCanDraw(); + } } void Update() { @@ -186,27 +193,43 @@ public void ChangeLeft() { } } + + // Opening files void OpenFileDialog() { var extensions = new[] { new ExtensionFilter("Arc app GPX or Moves json", "gpx", "json") }; - string[] paths = StandaloneFileBrowser.OpenFilePanel("Open File", "", extensions, false); + string[] paths = StandaloneFileBrowser.OpenFilePanel("Open File", "", extensions, true); foreach (var item in paths) { string tempItem = item.Replace("file://", "").Replace("%20", " "); if (item.ToLower().EndsWith("gpx")) { //Debug.Log("GPX file!\nLoading..."); //Debug.Log(Bionicl.ArcExportConverter.ConvertGpxToJson("test", 80)); + uploadedFiles.Add(GetFileName(tempItem)); string jsonData = File.ReadAllText(tempItem); LoadFiles(Bionicl.ArcExportConverter.ConvertGpxToJson(jsonData, 80)); } else if (item.ToLower().EndsWith("json")) { Debug.Log("Json file!\nLoading..."); + uploadedFiles.Add(GetFileName(tempItem)); string jsonData = File.ReadAllText(tempItem); LoadFiles(jsonData); } } } + string GetFileName(string path) { + string output = ""; + for (int i = 0; i < path.Length; i++) { + if (path[i] == '/') { + output = ""; + } else { + output += path[i]; + } + } + Debug.Log("File name: " + output); + return output; + } // Loading json files void LoadFiles(string jsonData) {