From ec3f0c2d6e44f17c01648e41fc1a08cccedbde05 Mon Sep 17 00:00:00 2001 From: Luke Mirman Date: Mon, 15 May 2023 21:05:36 -0400 Subject: [PATCH] Implement proper autofill preview on developer console sample --- CHANGELOG.md | 2 +- .../Default Console Assets/Rounded.png | Bin 0 -> 405 bytes .../{Square.png.meta => Rounded.png.meta} | 18 +- .../Default Console Assets/Square.png | Bin 117 -> 0 bytes Samples~/Dev Console/DevConsoleRunner.cs | 24 +- .../Resources/VespaIO/Console.prefab | 341 +++++++++++++++--- 6 files changed, 313 insertions(+), 72 deletions(-) create mode 100644 Samples~/Dev Console/Default Console Assets/Rounded.png rename Samples~/Dev Console/Default Console Assets/{Square.png.meta => Rounded.png.meta} (90%) delete mode 100644 Samples~/Dev Console/Default Console Assets/Square.png diff --git a/CHANGELOG.md b/CHANGELOG.md index a61bfae..80c26d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ All notable changes to this package are documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). -## [2.0.0] - PENDING +## [2.0.0] - Unreleased ### Breaking Changes diff --git a/Samples~/Dev Console/Default Console Assets/Rounded.png b/Samples~/Dev Console/Default Console Assets/Rounded.png new file mode 100644 index 0000000000000000000000000000000000000000..1f50fd9be3b57cf176a6b84e58f528162c3503e7 GIT binary patch literal 405 zcmV;G0c!q@wvUP&G+556nur2_DxUM209894Ng>ry7^sK~&cpHR0l z&q5MLE`$ki1FVz;tSU``4v<+YoImI8u(@4JtBW*f#-+@o-D2qiKS}`Tt+l7 zG?F%fTjCTX+ZGrDgNEUF=J?+fr73U#G;uY{vr_lgd}DH~h^<+Fkr!%C&sELWnESnQ zo73+Q7U^eu-T~HtrILUA0X*VDJ;bGbR5bYu=l6t}F}Kf}00000NkvXXu0mjf6k4Gd literal 0 HcmV?d00001 diff --git a/Samples~/Dev Console/Default Console Assets/Square.png.meta b/Samples~/Dev Console/Default Console Assets/Rounded.png.meta similarity index 90% rename from Samples~/Dev Console/Default Console Assets/Square.png.meta rename to Samples~/Dev Console/Default Console Assets/Rounded.png.meta index 4e86319..236ba7e 100644 --- a/Samples~/Dev Console/Default Console Assets/Square.png.meta +++ b/Samples~/Dev Console/Default Console Assets/Rounded.png.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: f1195a5604bbf1f4cb18a4fc3ee3f975 +guid: 882954b77dd68fd4ba4793b3d7f9d64c TextureImporter: internalIDToNameTable: [] externalObjects: {} @@ -32,7 +32,7 @@ TextureImporter: maxTextureSize: 2048 textureSettings: serializedVersion: 2 - filterMode: 0 + filterMode: 1 aniso: 1 mipBias: 0 wrapU: 1 @@ -46,8 +46,8 @@ TextureImporter: spriteMeshType: 1 alignment: 0 spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 32 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spritePixelsToUnits: 100 + spriteBorder: {x: 12, y: 12, z: 12, w: 12} spriteGenerateFallbackPhysicsShape: 1 alphaUsage: 1 alphaIsTransparency: 1 @@ -62,14 +62,14 @@ TextureImporter: textureFormatSet: 0 ignorePngGamma: 0 applyGammaDecoding: 0 - cookieLightType: 1 + cookieLightType: 0 platformSettings: - serializedVersion: 3 buildTarget: DefaultTexturePlatform maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 - textureCompression: 0 + textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 @@ -81,7 +81,7 @@ TextureImporter: maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 - textureCompression: 0 + textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 @@ -93,7 +93,7 @@ TextureImporter: maxTextureSize: 2048 resizeAlgorithm: 0 textureFormat: -1 - textureCompression: 0 + textureCompression: 1 compressionQuality: 50 crunchedCompression: 0 allowsAlphaSplitting: 0 @@ -106,7 +106,7 @@ TextureImporter: outline: [] physicsShape: [] bones: [] - spriteID: 4bce34026d1656a4f9176d15b2c2dadd + spriteID: 5e97eb03825dee720800000000000000 internalID: 0 vertices: [] indices: diff --git a/Samples~/Dev Console/Default Console Assets/Square.png b/Samples~/Dev Console/Default Console Assets/Square.png deleted file mode 100644 index 7e085ef1f6fc5248a63b609d826d7918b0b334ff..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 117 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz#^NA%Cx&(BWL^R}`kpS1ArY-_ z&lxf@FmN2+&{%)onaw|I!OU%ElYd*X163dak4enF9V|BM&ZsnjL_J;oT-G@yGywo9 C#vL30 diff --git a/Samples~/Dev Console/DevConsoleRunner.cs b/Samples~/Dev Console/DevConsoleRunner.cs index 383c3c9..16d796d 100644 --- a/Samples~/Dev Console/DevConsoleRunner.cs +++ b/Samples~/Dev Console/DevConsoleRunner.cs @@ -21,7 +21,11 @@ public class DevConsoleRunner : MonoBehaviour [SerializeField] private TMP_InputField inputText; [SerializeField] - private TMP_Text autofillPreview; + private TMP_Text autofillText; + [SerializeField] + private RectTransform autofillContainer; + [SerializeField] + private RectTransform autofillParent; [Header("Properties")] [Tooltip("When true will require a key to be held to open/close the console.")] @@ -133,7 +137,7 @@ private void Update() UpdateAutofillPreview(); // Auto fill - if (DevConsole.ConsoleActive && Input.GetKeyDown(KeyCode.Tab) && DevConsole.console.ApplyNextAutofill(out string newInputText)) + if (DevConsole.ConsoleActive && Input.GetKeyDown(KeyCode.Tab) && DevConsole.console.TryGetNextAutofillApplied(out string newInputText)) { inputText.SetTextWithoutNotify(newInputText); inputText.caretPosition = inputText.text.Length; @@ -232,15 +236,21 @@ void UpdateAutofillPreview() } autofillPreviewValue = DevConsole.console.NextAutofill; - if (autofillPreviewValue != null) + if (autofillPreviewValue != null && DevConsole.console.VirtualText.Length > 0) { - autofillPreview.text = autofillPreviewValue.markupNewWord; - autofillPreview.enabled = true; + TMP_CharacterInfo startIndexInfo = inputText.textComponent.textInfo.characterInfo[autofillPreviewValue.globalStartIndex]; + autofillText.text = autofillPreviewValue.markupNewWord; + autofillContainer.gameObject.SetActive(true); + autofillContainer.sizeDelta = autofillText.GetPreferredValues(1024, autofillContainer.sizeDelta.y); + float parentHalfWidth = autofillParent.rect.width / 2; + float max = parentHalfWidth - autofillContainer.sizeDelta.x; + float autofillHorizontal = Mathf.Clamp(startIndexInfo.topLeft.x, -parentHalfWidth, max); + autofillContainer.anchoredPosition = new Vector2(autofillHorizontal, 32); } else { - autofillPreview.enabled = false; - autofillPreview.text = string.Empty; + autofillContainer.gameObject.SetActive(false); + autofillText.text = string.Empty; } } } diff --git a/Samples~/Dev Console/Resources/VespaIO/Console.prefab b/Samples~/Dev Console/Resources/VespaIO/Console.prefab index 6730dcc..7874985 100644 --- a/Samples~/Dev Console/Resources/VespaIO/Console.prefab +++ b/Samples~/Dev Console/Resources/VespaIO/Console.prefab @@ -92,7 +92,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 0 + m_IsActive: 1 --- !u!224 &3209357463837790051 RectTransform: m_ObjectHideFlags: 0 @@ -100,11 +100,11 @@ RectTransform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 3209357463837790050} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + 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: 3209357464626355142} + m_Father: {fileID: 7287971525887061741} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} @@ -149,8 +149,8 @@ MonoBehaviour: m_fontMaterials: [] m_fontColor32: serializedVersion: 2 - rgba: 2150773298 - m_fontColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 0.5} + rgba: 4281479730 + m_fontColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} m_enableVertexGradient: 0 m_colorMode: 3 m_fontColorGradient: @@ -242,7 +242,7 @@ RectTransform: - {fileID: 3209357464626355142} - {fileID: 8277032813909211571} m_Father: {fileID: 3209357464813702814} - m_RootOrder: 1 + m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 0} @@ -277,8 +277,8 @@ MonoBehaviour: m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_Sprite: {fileID: 21300000, guid: f1195a5604bbf1f4cb18a4fc3ee3f975, type: 3} - m_Type: 0 + m_Sprite: {fileID: 21300000, guid: 882954b77dd68fd4ba4793b3d7f9d64c, type: 3} + m_Type: 1 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 @@ -410,12 +410,12 @@ RectTransform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 3209357464163728084} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + 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: 3209357464626355142} - m_RootOrder: 2 + m_Father: {fileID: 7287971525887061741} + m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} @@ -549,7 +549,7 @@ RectTransform: m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 3209357464813702814} - m_RootOrder: 2 + m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} @@ -662,7 +662,6 @@ GameObject: serializedVersion: 6 m_Component: - component: {fileID: 3209357464626355142} - - component: {fileID: 3209357464626355143} m_Layer: 0 m_Name: Text Area m_TagString: Untagged @@ -681,9 +680,8 @@ RectTransform: m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - - {fileID: 3209357463837790051} - {fileID: 8511936693612440801} - - {fileID: 3209357464163728085} + - {fileID: 7287971525887061741} m_Father: {fileID: 3209357464157384420} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -692,20 +690,6 @@ RectTransform: m_AnchoredPosition: {x: 0, y: -0.5} m_SizeDelta: {x: -60, y: -1} m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &3209357464626355143 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 3209357464626355161} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 3312d7739989d2b4e91e6319e9a96d76, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Padding: {x: 0, y: 0, z: 0, w: 0} - m_Softness: {x: 0, y: 0} --- !u!1 &3209357464813702801 GameObject: m_ObjectHideFlags: 0 @@ -734,15 +718,15 @@ RectTransform: m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 1381218373822591221} - - {fileID: 3209357464157384420} - {fileID: 3209357464421840033} + - {fileID: 3209357464157384420} m_Father: {fileID: 3209357465723313606} - m_RootOrder: 0 + m_RootOrder: 1 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_SizeDelta: {x: -24, y: -24} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &3209357465723313626 GameObject: @@ -775,6 +759,7 @@ RectTransform: m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 0, y: 0, z: 0} m_Children: + - {fileID: 471353632466029766} - {fileID: 3209357464813702814} m_Father: {fileID: 0} m_RootOrder: 0 @@ -797,11 +782,18 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: canvas: {fileID: 3209357465723313625} - canvasScaler: {fileID: 3209357465723313627} container: {fileID: 3209357464813702801} history: {fileID: 3209357464421840046} inputText: {fileID: 3209357464157384421} - autofillPreview: {fileID: 2335734706835739743} + autofillText: {fileID: 2804176446809482093} + autofillContainer: {fileID: 8511936693612440801} + autofillParent: {fileID: 3209357464626355142} + requireHeldKeyToToggle: 0 + inputWhileHeldKeycodes: 32010000310100003601000035010000 + openConsoleKeycodes: 7e000000600000005c00000023010000 + closeEmptyConsoleKeycodes: 7e000000600000005c000000 + closeAnyConsoleKeycodes: 230100001b000000 + closeConsoleOnLeftClick: 1 --- !u!223 &3209357465723313625 Canvas: m_ObjectHideFlags: 0 @@ -837,7 +829,7 @@ MonoBehaviour: m_EditorClassIdentifier: m_UiScaleMode: 0 m_ReferencePixelsPerUnit: 32 - m_ScaleFactor: 1 + m_ScaleFactor: 1.25 m_ReferenceResolution: {x: 1280, y: 720} m_ScreenMatchMode: 0 m_MatchWidthOrHeight: 0 @@ -863,6 +855,133 @@ MonoBehaviour: m_BlockingMask: serializedVersion: 2 m_Bits: 4294967295 +--- !u!1 &3541319463602531855 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2587025897552027648} + - component: {fileID: 8878662339437450724} + - component: {fileID: 5912873726858548786} + m_Layer: 0 + m_Name: Autofill Background + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2587025897552027648 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3541319463602531855} + 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: 8511936693612440801} + 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 &8878662339437450724 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3541319463602531855} + m_CullTransparentMesh: 1 +--- !u!114 &5912873726858548786 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3541319463602531855} + 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: 0.05, g: 0.05, b: 0.05, 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: 882954b77dd68fd4ba4793b3d7f9d64c, 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!1 &3900569609650093504 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 7287971525887061741} + - component: {fileID: 8640338984502233863} + m_Layer: 0 + m_Name: Mask + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &7287971525887061741 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3900569609650093504} + 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: 3209357463837790051} + - {fileID: 3209357464163728085} + m_Father: {fileID: 3209357464626355142} + m_RootOrder: 1 + 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!114 &8640338984502233863 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3900569609650093504} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 3312d7739989d2b4e91e6319e9a96d76, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Padding: {x: 0, y: 0, z: 0, w: 0} + m_Softness: {x: 0, y: 0} --- !u!1 &6534017713887459745 GameObject: m_ObjectHideFlags: 0 @@ -921,15 +1040,15 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} - m_Color: {r: 0, g: 0, b: 0, a: 0.7490196} + m_Color: {r: 0, g: 0, b: 0, a: 0.5019608} 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: f1195a5604bbf1f4cb18a4fc3ee3f975, type: 3} - m_Type: 0 + m_Sprite: {fileID: 21300000, guid: 882954b77dd68fd4ba4793b3d7f9d64c, type: 3} + m_Type: 1 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 @@ -938,7 +1057,7 @@ MonoBehaviour: m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 ---- !u!1 &8355212521541264367 +--- !u!1 &7678838085043437518 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -946,28 +1065,28 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 8511936693612440801} - - component: {fileID: 8291396626492502875} - - component: {fileID: 2335734706835739743} + - component: {fileID: 9048567155411004196} + - component: {fileID: 2288338123952598047} + - component: {fileID: 2804176446809482093} m_Layer: 0 - m_Name: Autofill Preview + m_Name: Autofill Text m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &8511936693612440801 +--- !u!224 &9048567155411004196 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8355212521541264367} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_GameObject: {fileID: 7678838085043437518} + 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: 3209357464626355142} + m_Father: {fileID: 8511936693612440801} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} @@ -975,21 +1094,21 @@ RectTransform: m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &8291396626492502875 +--- !u!222 &2288338123952598047 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8355212521541264367} + m_GameObject: {fileID: 7678838085043437518} m_CullTransparentMesh: 0 ---- !u!114 &2335734706835739743 +--- !u!114 &2804176446809482093 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8355212521541264367} + m_GameObject: {fileID: 7678838085043437518} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} @@ -1003,7 +1122,7 @@ MonoBehaviour: m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_text: help + m_text: autofill_preview m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: ae522667b03cf5041ac09bb0e96f9bc4, type: 2} m_sharedMaterial: {fileID: 606252943989992591, guid: ae522667b03cf5041ac09bb0e96f9bc4, type: 2} @@ -1012,8 +1131,8 @@ MonoBehaviour: m_fontMaterials: [] m_fontColor32: serializedVersion: 2 - rgba: 2164260863 - m_fontColor: {r: 1, g: 1, b: 1, a: 0.5019608} + rgba: 3221225471 + m_fontColor: {r: 1, g: 1, b: 1, a: 0.7490196} m_enableVertexGradient: 0 m_colorMode: 3 m_fontColorGradient: @@ -1066,9 +1185,121 @@ MonoBehaviour: m_VertexBufferAutoSizeReduction: 1 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 - m_margin: {x: 0, y: 0, z: 0, w: 0} + m_margin: {x: 4, y: 4, z: 4, w: 4} m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 m_hasFontAssetChanged: 0 m_baseMaterial: {fileID: 0} m_maskOffset: {x: 0, y: 0, z: 0, w: 0} +--- !u!1 &8355212521541264367 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 8511936693612440801} + m_Layer: 0 + m_Name: Autofill Preview + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &8511936693612440801 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8355212521541264367} + 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: 2587025897552027648} + - {fileID: 9048567155411004196} + m_Father: {fileID: 3209357464626355142} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0} + m_AnchorMax: {x: 0.5, y: 0} + m_AnchoredPosition: {x: -400, y: 32} + m_SizeDelta: {x: 124, y: 24} + m_Pivot: {x: 0, y: 0} +--- !u!1 &8648350996791938632 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 471353632466029766} + - component: {fileID: 8215941955563400235} + - component: {fileID: 7953358613195304179} + m_Layer: 0 + m_Name: Full Background + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &471353632466029766 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8648350996791938632} + 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: 3209357465723313606} + 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 &8215941955563400235 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8648350996791938632} + m_CullTransparentMesh: 1 +--- !u!114 &7953358613195304179 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8648350996791938632} + 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: 0, g: 0, b: 0, a: 0.5019608} + 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: 882954b77dd68fd4ba4793b3d7f9d64c, 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