From b0782ecc6207e0c1b72b4d34235aa50b382000bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Nu=C8=9Biu?= Date: Wed, 10 Jul 2019 22:01:45 +0300 Subject: [PATCH] Import PlaceBombButton sprite --- Assets/Prefabs/UI/MobileInputControls.prefab | 144 +++++------------- Assets/Scenes/SampleScene.unity | 31 +++- .../Sprites/UI/Controls/PlaceBombButton.png | Bin 0 -> 496 bytes .../UI/Controls/PlaceBombButton.png.meta | 110 +++++++++++++ ProjectSettings/GraphicsSettings.asset | 1 + 5 files changed, 176 insertions(+), 110 deletions(-) create mode 100644 Assets/Sprites/UI/Controls/PlaceBombButton.png create mode 100644 Assets/Sprites/UI/Controls/PlaceBombButton.png.meta diff --git a/Assets/Prefabs/UI/MobileInputControls.prefab b/Assets/Prefabs/UI/MobileInputControls.prefab index 60bd8c9..671ce55 100644 --- a/Assets/Prefabs/UI/MobileInputControls.prefab +++ b/Assets/Prefabs/UI/MobileInputControls.prefab @@ -19,7 +19,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 0 + m_IsActive: 1 --- !u!224 &311312840 RectTransform: m_ObjectHideFlags: 0 @@ -178,7 +178,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 0 + m_IsActive: 1 --- !u!224 &2794171661481808020 RectTransform: m_ObjectHideFlags: 0 @@ -430,7 +430,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 0 + m_IsActive: 1 --- !u!224 &2219516564235934924 RectTransform: m_ObjectHideFlags: 0 @@ -440,16 +440,15 @@ RectTransform: m_GameObject: {fileID: 2219516564249810540} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 2219516564235934926} + m_LocalScale: {x: 2, y: 2, z: 1} + m_Children: [] m_Father: {fileID: 2219516564235934920} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.78, y: 0.01} - m_AnchorMax: {x: 0.99, y: 0.15} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} + m_AnchorMin: {x: 0.87283087, y: 0.2615837} + m_AnchorMax: {x: 0.87283087, y: 0.2615837} + m_AnchoredPosition: {x: 4, y: 7} + m_SizeDelta: {x: 100, y: 100} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &2219516564236381704 CanvasRenderer: @@ -472,14 +471,14 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} - m_Color: {r: 0.36320752, g: 0.53883654, b: 1, a: 1} + 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: 3d8675433a508ec47b8f895201eacf20, type: 3} + m_Sprite: {fileID: 21300000, guid: 3463894a8b7ae417da8ab368f7f84f12, type: 3} m_Type: 0 m_PreserveAspect: 0 m_FillCenter: 1 @@ -516,6 +515,17 @@ MonoBehaviour: m_StringArgument: Jump m_BoolArgument: 0 m_CallState: 1 + - m_Target: {fileID: 2219516564236381704} + m_MethodName: SetAlpha + m_Mode: 4 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0.8 + m_StringArgument: Jump + m_BoolArgument: 0 + m_CallState: 1 m_TypeName: UnityEngine.EventSystems.EventTrigger+TriggerEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - eventID: 3 @@ -533,6 +543,17 @@ MonoBehaviour: m_StringArgument: Jump m_BoolArgument: 0 m_CallState: 1 + - m_Target: {fileID: 2219516564236381704} + m_MethodName: SetAlpha + m_Mode: 4 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 1 + m_StringArgument: Jump + m_BoolArgument: 0 + m_CallState: 2 m_TypeName: UnityEngine.EventSystems.EventTrigger+TriggerEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null delegates: @@ -583,101 +604,6 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: Name: PlaceBomb ---- !u!1 &2219516564249810542 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2219516564235934926} - - component: {fileID: 2219516564236381708} - - component: {fileID: 2219516564256383896} - - component: {fileID: 2219516564256383878} - m_Layer: 5 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &2219516564235934926 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2219516564249810542} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 2219516564235934924} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &2219516564236381708 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2219516564249810542} - m_CullTransparentMesh: 0 ---- !u!114 &2219516564256383896 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2219516564249810542} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 0.6431373} - 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: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 26 - m_FontStyle: 0 - m_BestFit: 0 - m_MinSize: 10 - m_MaxSize: 40 - m_Alignment: 4 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: Bomb ---- !u!114 &2219516564256383878 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2219516564249810542} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1573420865, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} - m_Name: - m_EditorClassIdentifier: - m_EffectColor: {r: 0, g: 0, b: 0, a: 0.1254902} - m_EffectDistance: {x: 2, y: -2} - m_UseGraphicAlpha: 1 --- !u!1 &7551096532728223647 GameObject: m_ObjectHideFlags: 0 @@ -697,7 +623,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 0 + m_IsActive: 1 --- !u!224 &6194349751570614361 RectTransform: m_ObjectHideFlags: 0 @@ -856,7 +782,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 0 + m_IsActive: 1 --- !u!224 &1067509750367631514 RectTransform: m_ObjectHideFlags: 0 diff --git a/Assets/Scenes/SampleScene.unity b/Assets/Scenes/SampleScene.unity index 9827f66..bb21ab0 100644 --- a/Assets/Scenes/SampleScene.unity +++ b/Assets/Scenes/SampleScene.unity @@ -404,7 +404,7 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 519420028} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 13.938327, y: -4.0430503, z: -10} + m_LocalPosition: {x: 11.456655, y: -4.0430503, z: -10} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 0} @@ -597,6 +597,11 @@ PrefabInstance: propertyPath: m_Pivot.y value: 0 objectReference: {fileID: 0} + - target: {fileID: 2152024136797500473, guid: 1f5ebc13237e070449ea8bc9e8b07ac8, + type: 3} + propertyPath: m_Enabled + value: 1 + objectReference: {fileID: 0} - target: {fileID: 4935993846136593301, guid: 1f5ebc13237e070449ea8bc9e8b07ac8, type: 3} propertyPath: m_Text @@ -875,6 +880,30 @@ PrefabInstance: propertyPath: m_Pivot.y value: 0 objectReference: {fileID: 0} + - target: {fileID: 311312839, guid: 4ca131020414f4b1597dac2e1d292d7f, type: 3} + propertyPath: m_IsActive + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8007755715420797612, guid: 4ca131020414f4b1597dac2e1d292d7f, + type: 3} + propertyPath: m_IsActive + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2219516564249810540, guid: 4ca131020414f4b1597dac2e1d292d7f, + type: 3} + propertyPath: m_IsActive + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1533625511004221075, guid: 4ca131020414f4b1597dac2e1d292d7f, + type: 3} + propertyPath: m_IsActive + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 7551096532728223647, guid: 4ca131020414f4b1597dac2e1d292d7f, + type: 3} + propertyPath: m_IsActive + value: 1 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 4ca131020414f4b1597dac2e1d292d7f, type: 3} --- !u!1001 &6843575829779162303 diff --git a/Assets/Sprites/UI/Controls/PlaceBombButton.png b/Assets/Sprites/UI/Controls/PlaceBombButton.png new file mode 100644 index 0000000000000000000000000000000000000000..a39e5b5c8d327a1e73ce4a1577368a3d33962aa4 GIT binary patch literal 496 zcmVPx$s!2paR9J=0m%mEHKoG{i2-Cdi8voXetsjHF zxbZA-sq9!LD++~oyWM(Dmgo2>3Z!YOu0(7P(qx|Hc@39{dhcx<)W1!LHBe=5u6YQYtAe-!AsUVS59?eFNaQsj-Ey`h*^3O!Th7xE z0G?iMf=)y``>)S|^ECWF6#(cea0d$|P4)l~H`REI#zXOgSBdNgv{m51zU%>`CzSRD z)d|OCYlFG?!A&XkdZoa=xQ(>soK$VOYf^}j;13fnfW(M)9vf``_^bqgWTV9mbE^L^ m003N^9O^$#DI;2O;7Y%w2oBiS33~_t0000