From f8f446112f02e112b5ffe9eca8ef8c62bed0714d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=88=92=E8=8D=A3=E6=A3=AE?= <7716842+shurongsen@user.noreply.gitee.com> Date: Mon, 25 Nov 2024 23:31:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E5=85=B1=E5=BC=B9=E7=AA=97=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TheStrongestSnail/Assets/Resources/base.meta | 8 + .../Assets/Resources/base/EventPopUp.prefab | 232 ++++++++++++++++++ .../Resources/base/EventPopUp.prefab.meta | 7 + .../Assets/Scripts/Conversion.meta | 8 + .../Scripts/Conversion/ConversionItem.cs | 54 ++++ .../Scripts/Conversion/ConversionItem.cs.meta | 11 + .../Assets/Scripts/Scene_shop/BaseUIPanel.cs | 2 +- TheStrongestSnail/Assets/common.meta | 8 + TheStrongestSnail/Assets/common/base.meta | 8 + .../Assets/common/base/EventPopUp.cs | 32 +++ .../Assets/common/base/EventPopUp.cs.meta | 11 + TheStrongestSnail/Assets/common/base/base.cs | 30 +++ .../Assets/common/base/base.cs.meta | 11 + .../Assets/prefabs/Convert2Panel.prefab | 209 ++-------------- .../Assets/res/AllUI/ui_8.png.meta | 16 +- 15 files changed, 462 insertions(+), 185 deletions(-) create mode 100644 TheStrongestSnail/Assets/Resources/base.meta create mode 100644 TheStrongestSnail/Assets/Resources/base/EventPopUp.prefab create mode 100644 TheStrongestSnail/Assets/Resources/base/EventPopUp.prefab.meta create mode 100644 TheStrongestSnail/Assets/Scripts/Conversion.meta create mode 100644 TheStrongestSnail/Assets/Scripts/Conversion/ConversionItem.cs create mode 100644 TheStrongestSnail/Assets/Scripts/Conversion/ConversionItem.cs.meta create mode 100644 TheStrongestSnail/Assets/common.meta create mode 100644 TheStrongestSnail/Assets/common/base.meta create mode 100644 TheStrongestSnail/Assets/common/base/EventPopUp.cs create mode 100644 TheStrongestSnail/Assets/common/base/EventPopUp.cs.meta create mode 100644 TheStrongestSnail/Assets/common/base/base.cs create mode 100644 TheStrongestSnail/Assets/common/base/base.cs.meta diff --git a/TheStrongestSnail/Assets/Resources/base.meta b/TheStrongestSnail/Assets/Resources/base.meta new file mode 100644 index 0000000..73d8e6f --- /dev/null +++ b/TheStrongestSnail/Assets/Resources/base.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 18becfb767e45ff4d9c0ce557ece6afd +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/TheStrongestSnail/Assets/Resources/base/EventPopUp.prefab b/TheStrongestSnail/Assets/Resources/base/EventPopUp.prefab new file mode 100644 index 0000000..8dc18db --- /dev/null +++ b/TheStrongestSnail/Assets/Resources/base/EventPopUp.prefab @@ -0,0 +1,232 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &8863640474186537825 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 8863640474186537824} + - component: {fileID: 8863640474186537823} + - component: {fileID: 8863640474186537820} + - component: {fileID: 8863640474186537821} + - component: {fileID: 8863640474186537826} + - component: {fileID: 8863640474186537827} + m_Layer: 5 + m_Name: EventPopUp + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &8863640474186537824 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8863640474186537825} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 8863640474304724865} + 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: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &8863640474186537823 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8863640474186537825} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 58e836951d7e1724db6a078984a9b193, type: 3} + m_Name: + m_EditorClassIdentifier: + text: + Image: {fileID: 8863640474186537821} + textobg: {fileID: 8863640474304724867} +--- !u!222 &8863640474186537820 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8863640474186537825} + m_CullTransparentMesh: 1 +--- !u!114 &8863640474186537821 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8863640474186537825} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 21300000, guid: 207e9cfa3fab803499a66f15eb8a9b10, type: 3} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!114 &8863640474186537826 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8863640474186537825} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Padding: + m_Left: 30 + m_Right: 30 + m_Top: 20 + m_Bottom: 20 + m_ChildAlignment: 0 + m_Spacing: 0 + m_ChildForceExpandWidth: 1 + m_ChildForceExpandHeight: 1 + m_ChildControlWidth: 1 + m_ChildControlHeight: 1 + m_ChildScaleWidth: 0 + m_ChildScaleHeight: 0 + m_ReverseArrangement: 0 +--- !u!114 &8863640474186537827 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8863640474186537825} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} + m_Name: + m_EditorClassIdentifier: + m_HorizontalFit: 2 + m_VerticalFit: 2 +--- !u!1 &8863640474304724870 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 8863640474304724865} + - component: {fileID: 8863640474304724866} + - component: {fileID: 8863640474304724867} + - component: {fileID: 8863640474304724864} + m_Layer: 5 + m_Name: Text (Legacy) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &8863640474304724865 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8863640474304724870} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 8863640474186537824} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 30, y: -50} + m_SizeDelta: {x: 0, y: 60} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &8863640474304724866 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8863640474304724870} + m_CullTransparentMesh: 1 +--- !u!114 &8863640474304724867 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8863640474304724870} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 54 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 10 + m_MaxSize: 300 + m_Alignment: 4 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: +--- !u!114 &8863640474304724864 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8863640474304724870} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} + m_Name: + m_EditorClassIdentifier: + m_HorizontalFit: 0 + m_VerticalFit: 0 diff --git a/TheStrongestSnail/Assets/Resources/base/EventPopUp.prefab.meta b/TheStrongestSnail/Assets/Resources/base/EventPopUp.prefab.meta new file mode 100644 index 0000000..96981ac --- /dev/null +++ b/TheStrongestSnail/Assets/Resources/base/EventPopUp.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 058228f572bbabe46ab42f4993eb571c +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/TheStrongestSnail/Assets/Scripts/Conversion.meta b/TheStrongestSnail/Assets/Scripts/Conversion.meta new file mode 100644 index 0000000..7c2804d --- /dev/null +++ b/TheStrongestSnail/Assets/Scripts/Conversion.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c0bb57d0f2e903f47aaef814b02bdec5 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/TheStrongestSnail/Assets/Scripts/Conversion/ConversionItem.cs b/TheStrongestSnail/Assets/Scripts/Conversion/ConversionItem.cs new file mode 100644 index 0000000..6376736 --- /dev/null +++ b/TheStrongestSnail/Assets/Scripts/Conversion/ConversionItem.cs @@ -0,0 +1,54 @@ +using DG.Tweening; +using System.Collections; +using System.Collections.Generic; +using System.Text.RegularExpressions; +using TMPro; +using UnityEngine; +using UnityEngine.UI; +using System.Text.RegularExpressions; + +public class ConversionItem : BaseUIPanel +{ + public TMP_InputField inputField; + public TextMeshProUGUI TextMeshProUGUI; + + public Button button1; + public Button button2; + public mode mymode = mode.ShellToEgg; + private void Start() + { + inputField.onValueChanged.AddListener(GetInputData); + button1.onClick.AddListener(() => CancelOnClick(button1)); + button2.onClick.AddListener(() => ConfirmOnClick(button2)); + TextMeshProUGUI.text = "0"; + } + public enum mode + { + ShellToEgg, + EggToShell + } + public async void CancelOnClick(Button button)//取消按钮 + { + await ButtonClickAnimationAsync(button.gameObject); + Destroy(gameObject); + } + public async void ConfirmOnClick(Button button)//确定按钮 + { + await ButtonClickAnimationAsync(button.gameObject); + Regex.IsMatch(inputField.text, @"^[1-9]\d*$"); + addEventPopUp("测试弹窗"); + } + + public void GetInputData(string userInput) + { + if (string.IsNullOrWhiteSpace(userInput)) { + userInput = "0"; + } + TextMeshProUGUI.text = "0"; + if (mymode == mode.ShellToEgg) + TextMeshProUGUI.text = (int.Parse(userInput) * 3).ToString(); + if (mymode == mode.EggToShell) + TextMeshProUGUI.text = (int.Parse(userInput) / 3).ToString(); + ButtonClickAnimationAsync(TextMeshProUGUI.gameObject); + } +} diff --git a/TheStrongestSnail/Assets/Scripts/Conversion/ConversionItem.cs.meta b/TheStrongestSnail/Assets/Scripts/Conversion/ConversionItem.cs.meta new file mode 100644 index 0000000..865b643 --- /dev/null +++ b/TheStrongestSnail/Assets/Scripts/Conversion/ConversionItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ee75c61d57c722e468ed4011fa66bea8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/TheStrongestSnail/Assets/Scripts/Scene_shop/BaseUIPanel.cs b/TheStrongestSnail/Assets/Scripts/Scene_shop/BaseUIPanel.cs index 401fda4..d5c6a90 100644 --- a/TheStrongestSnail/Assets/Scripts/Scene_shop/BaseUIPanel.cs +++ b/TheStrongestSnail/Assets/Scripts/Scene_shop/BaseUIPanel.cs @@ -7,7 +7,7 @@ using DG.Tweening; //panel基类,主要用于panel的显示和隐藏 //初始化会隐藏Panel //请将panel挂载一个空节点上,将这个脚本放空节点 -public class BaseUIPanel : MonoBehaviour +public class BaseUIPanel : Base { [Header("变化的面板")] public GameObject Panel; diff --git a/TheStrongestSnail/Assets/common.meta b/TheStrongestSnail/Assets/common.meta new file mode 100644 index 0000000..e634c4b --- /dev/null +++ b/TheStrongestSnail/Assets/common.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1b54481a2f1f71049808c2ef33a007a0 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/TheStrongestSnail/Assets/common/base.meta b/TheStrongestSnail/Assets/common/base.meta new file mode 100644 index 0000000..a32d5f7 --- /dev/null +++ b/TheStrongestSnail/Assets/common/base.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a7ecaeb120769bd4c98162eaf5a5c215 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/TheStrongestSnail/Assets/common/base/EventPopUp.cs b/TheStrongestSnail/Assets/common/base/EventPopUp.cs new file mode 100644 index 0000000..ef74adf --- /dev/null +++ b/TheStrongestSnail/Assets/common/base/EventPopUp.cs @@ -0,0 +1,32 @@ +using DG.Tweening; +using System.Collections; +using System.Collections.Generic; +using System.Threading.Tasks; +using UnityEngine; +using UnityEngine.UI; + +public class EventPopUp : MonoBehaviour +{ + public string text = ""; + public Image Image; + public Text textobg; + async void Start() + { + Canvas canvas = GetComponentInParent(); + float canvasHeight = canvas.GetComponent().rect.height; + transform.DOMoveY(canvasHeight - 200f, 1.5f); + await Task.Delay(500); + Image.DOColor(new Color(1f, 1f, 1f, 0f), 5f); + await Task.Delay(5000); + Destroy(gameObject); + } + + // Update is called once per frame + void Update() + { + if (textobg != null) + { + textobg.text = text; + } + } +} diff --git a/TheStrongestSnail/Assets/common/base/EventPopUp.cs.meta b/TheStrongestSnail/Assets/common/base/EventPopUp.cs.meta new file mode 100644 index 0000000..fd8aa14 --- /dev/null +++ b/TheStrongestSnail/Assets/common/base/EventPopUp.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 58e836951d7e1724db6a078984a9b193 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/TheStrongestSnail/Assets/common/base/base.cs b/TheStrongestSnail/Assets/common/base/base.cs new file mode 100644 index 0000000..92a3e05 --- /dev/null +++ b/TheStrongestSnail/Assets/common/base/base.cs @@ -0,0 +1,30 @@ +using DG.Tweening; +using System.Collections; +using System.Collections.Generic; +using System.Threading.Tasks; +using UnityEngine; +using UnityEngine.UI; + +public class Base : MonoBehaviour +{ + public async Task ButtonClickAnimationAsync(GameObject button) + { + TaskCompletionSource tcs = new TaskCompletionSource(); + Sequence mySequence = DOTween.Sequence(); + mySequence.Append(button.transform.DOScale(1.25f, 0.1f)) // 第一个动画 + .Append(button.transform.DOScale(1f, 0.2f)).OnComplete(() => { + // 动画播放完成后执行的代码 + tcs.SetResult(true); + }); // 第二个动画 + await tcs.Task; + } + + public void addEventPopUp(string Details) + { + GameObject prefab = Resources.Load("base/EventPopUp"); + Canvas canvas = GetComponentInParent(); + prefab.GetComponent().text = Details; + Instantiate(prefab, canvas.transform); + } + +} diff --git a/TheStrongestSnail/Assets/common/base/base.cs.meta b/TheStrongestSnail/Assets/common/base/base.cs.meta new file mode 100644 index 0000000..ddf28e4 --- /dev/null +++ b/TheStrongestSnail/Assets/common/base/base.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 00712f61a0d6af941877575b41fae4cb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/TheStrongestSnail/Assets/prefabs/Convert2Panel.prefab b/TheStrongestSnail/Assets/prefabs/Convert2Panel.prefab index cf32be4..ba8fc5a 100644 --- a/TheStrongestSnail/Assets/prefabs/Convert2Panel.prefab +++ b/TheStrongestSnail/Assets/prefabs/Convert2Panel.prefab @@ -87,6 +87,7 @@ GameObject: - component: {fileID: 158567708259785438} - component: {fileID: 158567708259785432} - component: {fileID: 158567708259785439} + - component: {fileID: 4508901763993370782} m_Layer: 5 m_Name: Convert2Panel m_TagString: Untagged @@ -107,8 +108,6 @@ RectTransform: m_ConstrainProportionsScale: 0 m_Children: - {fileID: 158567709692854182} - - {fileID: 1134106571757909445} - - {fileID: 5529835401203012903} m_Father: {fileID: 0} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -155,6 +154,25 @@ MonoBehaviour: m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 +--- !u!114 &4508901763993370782 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 158567708259785437} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: ee75c61d57c722e468ed4011fa66bea8, type: 3} + m_Name: + m_EditorClassIdentifier: + Panel: {fileID: 158567709692854181} + CloseBTN: {fileID: 0} + inputField: {fileID: 6168167768698745100} + TextMeshProUGUI: {fileID: 6168167767892025330} + button1: {fileID: 6168167767913328819} + button2: {fileID: 6168167768765007194} + mymode: 1 --- !u!1 &158567709028972020 GameObject: m_ObjectHideFlags: 0 @@ -343,7 +361,6 @@ GameObject: - component: {fileID: 158567709692854177} - component: {fileID: 158567709692854176} - component: {fileID: 158567709692854183} - - component: {fileID: 6226545393597074379} m_Layer: 5 m_Name: Panel m_TagString: Untagged @@ -451,26 +468,6 @@ MonoBehaviour: m_EditorClassIdentifier: m_HorizontalFit: 2 m_VerticalFit: 2 ---- !u!114 &6226545393597074379 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 158567709692854181} - m_Enabled: 0 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreLayout: 0 - m_MinWidth: 1150 - m_MinHeight: 1263.75 - m_PreferredWidth: -1 - m_PreferredHeight: -1 - m_FlexibleWidth: -1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 --- !u!1 &2363538876214571453 GameObject: m_ObjectHideFlags: 0 @@ -1010,82 +1007,6 @@ MonoBehaviour: m_EditorClassIdentifier: m_HorizontalFit: 2 m_VerticalFit: 2 ---- !u!1 &4937769007383311707 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 5529835401203012903} - - component: {fileID: 478682510122100427} - - component: {fileID: 7048891995319746881} - m_Layer: 5 - m_Name: Image (1) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 0 ---- !u!224 &5529835401203012903 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4937769007383311707} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 158567708259785438} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 0.5} - m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 1372, y: 2439} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &478682510122100427 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4937769007383311707} - m_CullTransparentMesh: 1 ---- !u!114 &7048891995319746881 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4937769007383311707} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 0.25490198} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 21300000, guid: 7e8c29ab3ed35de4daec391ef275706a, type: 3} - m_Type: 0 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 --- !u!1 &5259836880146400879 GameObject: m_ObjectHideFlags: 0 @@ -1434,7 +1355,7 @@ MonoBehaviour: m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_text: 100 + m_text: 0 m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: ab450ed2780f72e458a23fcff2be6239, type: 2} m_sharedMaterial: {fileID: 3660030240429272659, guid: ab450ed2780f72e458a23fcff2be6239, type: 2} @@ -1755,7 +1676,7 @@ MonoBehaviour: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6168167768014679986} - m_Enabled: 1 + m_Enabled: 0 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} m_Name: @@ -2059,14 +1980,14 @@ MonoBehaviour: m_VerticalScrollbarEventHandler: {fileID: 0} m_LayoutGroup: {fileID: 0} m_ScrollSensitivity: 1 - m_ContentType: 0 + m_ContentType: 2 m_InputType: 0 m_AsteriskChar: 42 - m_KeyboardType: 0 + m_KeyboardType: 4 m_LineType: 0 m_HideMobileInput: 0 m_HideSoftKeyboard: 0 - m_CharacterValidation: 0 + m_CharacterValidation: 2 m_RegexValue: m_GlobalPointSize: 14 m_CharacterLimit: 0 @@ -2097,7 +2018,7 @@ MonoBehaviour: m_CaretColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} m_CustomCaretColor: 0 m_SelectionColor: {r: 0.65882355, g: 0.80784315, b: 1, a: 0.7529412} - m_Text: + m_Text: 0 m_CaretBlinkRate: 0.85 m_CaretWidth: 1 m_ReadOnly: 0 @@ -2784,7 +2705,7 @@ MonoBehaviour: m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_text: "\u200B" + m_text: "0\u200B" m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: ab450ed2780f72e458a23fcff2be6239, type: 2} m_sharedMaterial: {fileID: 3660030240429272659, guid: ab450ed2780f72e458a23fcff2be6239, type: 2} @@ -3392,79 +3313,3 @@ MonoBehaviour: m_FlexibleWidth: -1 m_FlexibleHeight: -1 m_LayoutPriority: 1 ---- !u!1 &8635039347100022174 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1134106571757909445} - - component: {fileID: 8655448441973220794} - - component: {fileID: 1150453742143693870} - m_Layer: 5 - m_Name: Image - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1134106571757909445 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8635039347100022174} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 158567708259785438} - m_RootOrder: 1 - 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: -1392, y: 0} - m_SizeDelta: {x: 1372, y: 2439} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &8655448441973220794 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8635039347100022174} - m_CullTransparentMesh: 1 ---- !u!114 &1150453742143693870 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8635039347100022174} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 21300000, guid: 7e8c29ab3ed35de4daec391ef275706a, type: 3} - m_Type: 0 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 diff --git a/TheStrongestSnail/Assets/res/AllUI/ui_8.png.meta b/TheStrongestSnail/Assets/res/AllUI/ui_8.png.meta index 93e3e00..116f4c5 100644 --- a/TheStrongestSnail/Assets/res/AllUI/ui_8.png.meta +++ b/TheStrongestSnail/Assets/res/AllUI/ui_8.png.meta @@ -48,7 +48,7 @@ TextureImporter: alignment: 0 spritePivot: {x: 0.5, y: 0.5} spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteBorder: {x: 25, y: 22, z: 27, w: 21} spriteGenerateFallbackPhysicsShape: 1 alphaUsage: 1 alphaIsTransparency: 1 @@ -113,6 +113,18 @@ TextureImporter: overridden: 0 androidETC2FallbackOverride: 0 forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: iPhone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 spriteSheet: serializedVersion: 2 sprites: [] @@ -120,7 +132,7 @@ TextureImporter: physicsShape: [] bones: [] spriteID: 5e97eb03825dee720800000000000000 - internalID: 0 + internalID: 1537655665 vertices: [] indices: edges: []