From aab4a97c230f62dc7fdd426bc0ccba22bf8d5d85 Mon Sep 17 00:00:00 2001 From: laurids Date: Sat, 23 Oct 2021 18:38:18 +0200 Subject: [PATCH] Dropdowns in Debug UI --- Assets/GWConquest/Prefabs/UI/Dropdown.prefab | 17 +- Assets/GWConquest/Scenes/GalaxyMap.unity | 1007 ++++++++++-------- Assets/GWConquest/Scripts/UI/DebugUI.cs | 47 +- 3 files changed, 607 insertions(+), 464 deletions(-) diff --git a/Assets/GWConquest/Prefabs/UI/Dropdown.prefab b/Assets/GWConquest/Prefabs/UI/Dropdown.prefab index 9700314..ec998db 100644 --- a/Assets/GWConquest/Prefabs/UI/Dropdown.prefab +++ b/Assets/GWConquest/Prefabs/UI/Dropdown.prefab @@ -53,6 +53,7 @@ MonoBehaviour: m_EditorClassIdentifier: m_Navigation: m_Mode: 3 + m_WrapAround: 0 m_SelectOnUp: {fileID: 0} m_SelectOnDown: {fileID: 0} m_SelectOnLeft: {fileID: 0} @@ -146,6 +147,7 @@ MonoBehaviour: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 0.33333334} m_RaycastTarget: 0 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: @@ -220,6 +222,7 @@ MonoBehaviour: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 0.33333334} m_RaycastTarget: 0 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: @@ -294,6 +297,7 @@ MonoBehaviour: m_Material: {fileID: 0} m_Color: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: @@ -370,6 +374,7 @@ MonoBehaviour: 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: @@ -398,6 +403,7 @@ MonoBehaviour: m_EditorClassIdentifier: m_Navigation: m_Mode: 3 + m_WrapAround: 0 m_SelectOnUp: {fileID: 0} m_SelectOnDown: {fileID: 0} m_SelectOnLeft: {fileID: 0} @@ -492,6 +498,7 @@ MonoBehaviour: 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: @@ -570,6 +577,7 @@ MonoBehaviour: 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: @@ -644,6 +652,7 @@ MonoBehaviour: 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: @@ -718,6 +727,7 @@ MonoBehaviour: 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: @@ -801,6 +811,7 @@ MonoBehaviour: m_Material: {fileID: 0} m_Color: {r: 0.01, g: 0.01, b: 0.01, a: 1} m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: @@ -829,6 +840,7 @@ MonoBehaviour: m_EditorClassIdentifier: m_Navigation: m_Mode: 3 + m_WrapAround: 0 m_SelectOnUp: {fileID: 0} m_SelectOnDown: {fileID: 0} m_SelectOnLeft: {fileID: 0} @@ -973,6 +985,7 @@ MonoBehaviour: m_Material: {fileID: 0} m_Color: {r: 0.03, g: 0.03, b: 0.03, a: 1} m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: @@ -1006,7 +1019,7 @@ MonoBehaviour: m_Elasticity: 0.1 m_Inertia: 1 m_DecelerationRate: 0.135 - m_ScrollSensitivity: 1 + m_ScrollSensitivity: 5 m_Viewport: {fileID: 1636751272606410708} m_HorizontalScrollbar: {fileID: 0} m_VerticalScrollbar: {fileID: 4520657860803175750} @@ -1079,6 +1092,7 @@ MonoBehaviour: 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: @@ -1166,6 +1180,7 @@ MonoBehaviour: 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: diff --git a/Assets/GWConquest/Scenes/GalaxyMap.unity b/Assets/GWConquest/Scenes/GalaxyMap.unity index ffa1507..5d4a34d 100644 --- a/Assets/GWConquest/Scenes/GalaxyMap.unity +++ b/Assets/GWConquest/Scenes/GalaxyMap.unity @@ -7103,6 +7103,203 @@ Transform: type: 3} m_PrefabInstance: {fileID: 109163431} m_PrefabAsset: {fileID: 0} +--- !u!1001 &111015253 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 587515776} + m_Modifications: + - target: {fileID: 722036178700474275, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_AnchorMax.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 722036178700474275, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_Pivot.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_Pivot.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_RootOrder + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_AnchorMax.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_AnchorMin.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_SizeDelta.x + value: 271.33258 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_SizeDelta.y + value: 30 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 218.6875 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -114 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1636751272606410708, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_AnchorMax.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1636751272606410708, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1636751272606410708, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_SizeDelta.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2608069769320989592, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_Options.m_Options.Array.size + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4834862706219061902, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_Name + value: UnitNameDropdown + objectReference: {fileID: 0} + - target: {fileID: 5175204340448425826, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_Color.a + value: 0.6901961 + objectReference: {fileID: 0} + - target: {fileID: 5175204340448425826, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_Color.b + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5175204340448425826, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_Color.g + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5175204340448425826, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_Color.r + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6379601642070696065, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_IsActive + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7792441811614348474, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_Text + value: Unit + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 0f68e5d00807a6d4db70fee5ef93b993, type: 3} +--- !u!114 &111015254 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 2608069769320989592, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + m_PrefabInstance: {fileID: 111015253} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0d0b652f32a2cc243917e4028fa0f046, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!224 &111015255 stripped +RectTransform: + m_CorrespondingSourceObject: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + m_PrefabInstance: {fileID: 111015253} + m_PrefabAsset: {fileID: 0} --- !u!1001 &111218372 PrefabInstance: m_ObjectHideFlags: 0 @@ -13093,150 +13290,6 @@ MonoBehaviour: RecruitSprite: {fileID: 21300000, guid: 37886999ca665794c9a20cebe80d56cc, type: 3} AmmoSprite: {fileID: 21300000, guid: 9dd934dc01acfe443a7ff320f825e6fe, type: 3} FuelSprite: {fileID: 21300000, guid: 461b4d80f47ed85478b3c190ac7bd4ce, type: 3} ---- !u!1001 &218888188 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 587515776} - m_Modifications: - - target: {fileID: 6773398751741966316, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_Text - value: 'Planet - -' - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_Pivot.x - value: 0.5 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_Pivot.y - value: 0.5 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_RootOrder - value: 4 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_AnchorMax.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_AnchorMin.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_SizeDelta.x - value: 109.81494 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_SizeDelta.y - value: 30 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_LocalPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_LocalPosition.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_LocalPosition.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_LocalRotation.w - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_LocalRotation.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_LocalRotation.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_LocalRotation.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_AnchoredPosition.x - value: 600.71875 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_AnchoredPosition.y - value: -114 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_LocalEulerAnglesHint.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_LocalEulerAnglesHint.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_LocalEulerAnglesHint.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747757, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_Name - value: PlanetInput - objectReference: {fileID: 0} - m_RemovedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: 7753330027a692f4ea43e0e57ab3dfc0, type: 3} ---- !u!224 &218888189 stripped -RectTransform: - m_CorrespondingSourceObject: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - m_PrefabInstance: {fileID: 218888188} - m_PrefabAsset: {fileID: 0} ---- !u!114 &218888190 stripped -MonoBehaviour: - m_CorrespondingSourceObject: {fileID: 6773398751860747759, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - m_PrefabInstance: {fileID: 218888188} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: d199490a83bb2b844b9695cbf13b01ef, type: 3} - m_Name: - m_EditorClassIdentifier: --- !u!1001 &220338671 PrefabInstance: m_ObjectHideFlags: 0 @@ -15947,12 +16000,6 @@ MeshFilter: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 276098500} m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} ---- !u!224 &276111185 stripped -RectTransform: - m_CorrespondingSourceObject: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - m_PrefabInstance: {fileID: 6773398751593558717} - m_PrefabAsset: {fileID: 0} --- !u!1001 &276424147 PrefabInstance: m_ObjectHideFlags: 0 @@ -32426,11 +32473,11 @@ RectTransform: m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - - {fileID: 276111185} + - {fileID: 111015255} - {fileID: 1106155158} - {fileID: 5979238412282691983} - - {fileID: 1278702604} - - {fileID: 218888189} + - {fileID: 1468683448} + - {fileID: 1961737402} - {fileID: 7239305452121996006} - {fileID: 2046872097} - {fileID: 361889917} @@ -32457,10 +32504,10 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: cd50aa86ec1f15748b6fbd6f4220e614, type: 3} m_Name: m_EditorClassIdentifier: - UnitNameText: {fileID: 6773398751593558718} + UnitNameText: {fileID: 111015254} AmountText: {fileID: 1106155159} - PlanetText: {fileID: 218888190} - PlayerText: {fileID: 1278702605} + PlanetText: {fileID: 1961737403} + PlayerText: {fileID: 1468683449} LogBattleEventsToggle: {fileID: 7239305452121996007} ShowHiddenUnitsToggle: {fileID: 2046872096} ShowAllPlanetsToggle: {fileID: 361889916} @@ -49850,7 +49897,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: -375.26, y: 606} + m_AnchoredPosition: {x: -274.40564, y: 606} m_SizeDelta: {x: -2396.52, y: -1415.5} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &896420470 @@ -71400,165 +71447,6 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1272903228} m_CullTransparentMesh: 0 ---- !u!1001 &1278702603 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 587515776} - m_Modifications: - - target: {fileID: 6773398751741966316, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_Text - value: 'Player - -' - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_Pivot.x - value: 0.5 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_Pivot.y - value: 0.5 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_RootOrder - value: 3 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_AnchorMax.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_AnchorMin.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_SizeDelta.x - value: 69.17282 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_SizeDelta.y - value: 30 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_LocalPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_LocalPosition.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_LocalPosition.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_LocalRotation.w - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_LocalRotation.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_LocalRotation.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_LocalRotation.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_AnchoredPosition.x - value: 504.28125 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_AnchoredPosition.y - value: -114 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_LocalEulerAnglesHint.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_LocalEulerAnglesHint.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_LocalEulerAnglesHint.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747757, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_Name - value: PlayerInput - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747759, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_ContentType - value: 2 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747759, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_KeyboardType - value: 4 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747759, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_CharacterValidation - value: 1 - objectReference: {fileID: 0} - m_RemovedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: 7753330027a692f4ea43e0e57ab3dfc0, type: 3} ---- !u!224 &1278702604 stripped -RectTransform: - m_CorrespondingSourceObject: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - m_PrefabInstance: {fileID: 1278702603} - m_PrefabAsset: {fileID: 0} ---- !u!114 &1278702605 stripped -MonoBehaviour: - m_CorrespondingSourceObject: {fileID: 6773398751860747759, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - m_PrefabInstance: {fileID: 1278702603} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: d199490a83bb2b844b9695cbf13b01ef, type: 3} - m_Name: - m_EditorClassIdentifier: --- !u!1 &1278756751 GameObject: m_ObjectHideFlags: 0 @@ -84675,6 +84563,183 @@ Transform: type: 3} m_PrefabInstance: {fileID: 1467181890} m_PrefabAsset: {fileID: 0} +--- !u!1001 &1468683447 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 587515776} + m_Modifications: + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_Pivot.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_Pivot.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_RootOrder + value: 3 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_AnchorMax.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_AnchorMin.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_SizeDelta.x + value: 172.8327 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_SizeDelta.y + value: 30 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 553.27 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -114 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2608069769320989592, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_Options.m_Options.Array.size + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2608069769320989592, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_Options.m_Options.Array.data[0].m_Text + value: Option C + objectReference: {fileID: 0} + - target: {fileID: 2608069769320989592, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_Options.m_Options.Array.data[1].m_Text + value: Option C + objectReference: {fileID: 0} + - target: {fileID: 4834862706219061902, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_Name + value: PlayerDropdown + objectReference: {fileID: 0} + - target: {fileID: 5175204340448425826, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_Color.a + value: 0.6901961 + objectReference: {fileID: 0} + - target: {fileID: 5175204340448425826, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_Color.b + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5175204340448425826, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_Color.g + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5175204340448425826, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_Color.r + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7792441811614348474, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_Text + value: Faction + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 0f68e5d00807a6d4db70fee5ef93b993, type: 3} +--- !u!224 &1468683448 stripped +RectTransform: + m_CorrespondingSourceObject: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + m_PrefabInstance: {fileID: 1468683447} + m_PrefabAsset: {fileID: 0} +--- !u!114 &1468683449 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 2608069769320989592, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + m_PrefabInstance: {fileID: 1468683447} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0d0b652f32a2cc243917e4028fa0f046, type: 3} + m_Name: + m_EditorClassIdentifier: --- !u!1 &1472475329 GameObject: m_ObjectHideFlags: 0 @@ -113297,6 +113362,183 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1959603904} m_CullTransparentMesh: 0 +--- !u!1001 &1961737401 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 587515776} + m_Modifications: + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_Pivot.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_Pivot.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_RootOrder + value: 4 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_AnchorMax.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_AnchorMin.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_SizeDelta.x + value: 144.8855 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_SizeDelta.y + value: 30 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 719.1084 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_AnchoredPosition.y + value: -114 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2608069769320989592, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_Options.m_Options.Array.size + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2608069769320989592, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_Options.m_Options.Array.data[0].m_Text + value: Option C + objectReference: {fileID: 0} + - target: {fileID: 2608069769320989592, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_Options.m_Options.Array.data[1].m_Text + value: Option C + objectReference: {fileID: 0} + - target: {fileID: 4834862706219061902, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_Name + value: PlanetDropdown + objectReference: {fileID: 0} + - target: {fileID: 5175204340448425826, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_Color.a + value: 0.6901961 + objectReference: {fileID: 0} + - target: {fileID: 5175204340448425826, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_Color.b + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5175204340448425826, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_Color.g + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5175204340448425826, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_Color.r + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7792441811614348474, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + propertyPath: m_Text + value: Planet + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 0f68e5d00807a6d4db70fee5ef93b993, type: 3} +--- !u!224 &1961737402 stripped +RectTransform: + m_CorrespondingSourceObject: {fileID: 1480188894801529543, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + m_PrefabInstance: {fileID: 1961737401} + m_PrefabAsset: {fileID: 0} +--- !u!114 &1961737403 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 2608069769320989592, guid: 0f68e5d00807a6d4db70fee5ef93b993, + type: 3} + m_PrefabInstance: {fileID: 1961737401} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0d0b652f32a2cc243917e4028fa0f046, type: 3} + m_Name: + m_EditorClassIdentifier: --- !u!1 &1963037884 GameObject: m_ObjectHideFlags: 0 @@ -124387,7 +124629,7 @@ PrefabInstance: - target: {fileID: 2546910633527798616, guid: 33c4cb604a7a3db48b51a358e1d9692a, type: 3} propertyPath: m_AnchoredPosition.x - value: 712.89844 + value: 842.8544 objectReference: {fileID: 0} - target: {fileID: 2546910633527798616, guid: 33c4cb604a7a3db48b51a358e1d9692a, type: 3} @@ -125181,137 +125423,6 @@ Transform: m_Father: {fileID: 1095562662} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: -4.5940003, z: 0} ---- !u!1001 &6773398751593558717 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 587515776} - m_Modifications: - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_Pivot.x - value: 0.5 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_Pivot.y - value: 0.5 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_RootOrder - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_AnchorMax.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_AnchorMin.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_SizeDelta.x - value: 271.33258 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_SizeDelta.y - value: 30 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_LocalPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_LocalPosition.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_LocalPosition.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_LocalRotation.w - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_LocalRotation.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_LocalRotation.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_LocalRotation.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_AnchoredPosition.x - value: 218.6875 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_AnchoredPosition.y - value: -114 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_LocalEulerAnglesHint.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_LocalEulerAnglesHint.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747756, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_LocalEulerAnglesHint.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6773398751860747757, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - propertyPath: m_Name - value: UnitNameInput - objectReference: {fileID: 0} - m_RemovedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: 7753330027a692f4ea43e0e57ab3dfc0, type: 3} ---- !u!114 &6773398751593558718 stripped -MonoBehaviour: - m_CorrespondingSourceObject: {fileID: 6773398751860747759, guid: 7753330027a692f4ea43e0e57ab3dfc0, - type: 3} - m_PrefabInstance: {fileID: 6773398751593558717} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: d199490a83bb2b844b9695cbf13b01ef, type: 3} - m_Name: - m_EditorClassIdentifier: --- !u!224 &7169136398348083298 RectTransform: m_ObjectHideFlags: 0 diff --git a/Assets/GWConquest/Scripts/UI/DebugUI.cs b/Assets/GWConquest/Scripts/UI/DebugUI.cs index 029369c..10433cd 100644 --- a/Assets/GWConquest/Scripts/UI/DebugUI.cs +++ b/Assets/GWConquest/Scripts/UI/DebugUI.cs @@ -14,10 +14,10 @@ namespace GWConquest public static bool FreeBuild = false; - public InputField UnitNameText; + public Dropdown UnitNameText; public InputField AmountText; - public InputField PlanetText; - public InputField PlayerText; + public Dropdown PlanetText; + public Dropdown PlayerText; public Toggle LogBattleEventsToggle; public Toggle ShowHiddenUnitsToggle; @@ -33,20 +33,22 @@ namespace GWConquest if(!int.TryParse(AmountText.text, out int amount)) throw new ArgumentException("Amount is not an integer"); - if(!int.TryParse(PlayerText.text, out int playerID)) - throw new ArgumentException("PlayerID is not an integer"); + //if(!int.TryParse(PlayerText.text, out int playerID)) + // throw new ArgumentException("PlayerID is not an integer"); + var playerID = PlayerText.value; if(playerID < 0 || playerID >= Player.PlayerList.Count) throw new ArgumentException("Player not found"); Player player = Player.GetPlayerById(playerID); - UnitClass uc = UnitClass.FromName(UnitNameText.text); + UnitClass uc = UnitClass.FromName(UnitNameText.options[UnitNameText.value].text); if(uc == null) throw new ArgumentException("Unit Class not found"); - Planet planet = Planet.AllPlanets.FirstOrDefault(p => p.PlanetName.ToLower().Contains(PlanetText.text.ToLower())); + var planetName = PlanetText.options[PlanetText.value].text; + Planet planet = Planet.AllPlanets.FirstOrDefault(p => p.PlanetName.ToLower().Contains(planetName.ToLower())); Zone zone = planet.GetZones(uc.ZoneType).Where(z => !z.attackZone).First(); @@ -60,15 +62,30 @@ namespace GWConquest void Start() { UpdateFlags(); - } - /*void OnEnable() - { - LogBattleEventsToggle.isOn = LogBattleEvents; - ShowHiddenUnitsToggle.isOn = ShowHiddenUnits; - MoveEnemyUnitsToggle.isOn = MoveEnemyUnits; - FreeBuildToggle.isOn = FreeBuild; - }*/ + var ucs = UnitClass.AllUnitClasses.Select(uc => uc.ShortName).ToList(); + ucs.Sort(); + foreach(var uc in ucs) + { + UnitNameText.options.Add(new Dropdown.OptionData(uc)); + } + UnitNameText.value = 0; + + var planets = Planet.AllPlanets.Select(p => p.PlanetName).ToList(); + planets.Sort(); + foreach(var p in planets) + { + PlanetText.options.Add(new Dropdown.OptionData(p)); + } + PlanetText.value = 0; + + var players = Player.PlayerList; + foreach(var p in players) + { + PlayerText.options.Add(new Dropdown.OptionData(p.Faction.FactionName)); + } + PlayerText.value = 0; + } public void UpdateFlags() {