From 668e44d43c8811a53cbd82a622839db883c33761 Mon Sep 17 00:00:00 2001 From: Ino Date: Sat, 27 Sep 2025 17:41:58 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B1=84=ED=8C=85=20=EA=B4=80=EB=A0=A8=20?= =?UTF-8?q?=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Android/addressables_content_state.bin | Bin 1454 -> 1454 bytes Assets/Resources/VersionCode.txt | 2 +- Assets/Scenes/SampleScene.unity | 45 ++++++++++++++++- Assets/Scripts/Chat/ChatUI.cs | 11 ++++ Assets/Scripts/Title/TitleInfo.cs | 8 ++- .../Util/MobileKeyboardHandlerBottomPivot.cs | 47 ++++++++++++++++++ .../MobileKeyboardHandlerBottomPivot.cs.meta | 2 + 7 files changed, 111 insertions(+), 4 deletions(-) create mode 100644 Assets/Scripts/Util/MobileKeyboardHandlerBottomPivot.cs create mode 100644 Assets/Scripts/Util/MobileKeyboardHandlerBottomPivot.cs.meta diff --git a/Assets/AddressableAssetsData/Android/addressables_content_state.bin b/Assets/AddressableAssetsData/Android/addressables_content_state.bin index a3b9af6c703f58e1a37791489f769af407b710dd..07c2c8f00868a5d0c2c782d08eb0bb519ee4cc79 100644 GIT binary patch delta 98 zcmZ3-y^ec>C$qefg>hn9iix46QDS0Rs)1orl8L2>fvIU~Qev8^srlv%=1xWx0*Z`u X6|EH}i?a6exc_;>!~g`03=G@=Z#^0y delta 98 zcmZ3-y^ec>C$oHNqM5O=MY5TZX=18TqJ?Q(go_chatGirlCard, tf_parent); @@ -63,6 +69,11 @@ public class ChatUI : MonoBehaviour Invoke("Set_ScrollEnd", Time.deltaTime * 5f); } + void Make_Today() + { + list_chat.Add(DSUtil.Get_Clone(go_dayCard, tf_parent)); + } + void Set_ScrollEnd() { m_ScrollRect.verticalNormalizedPosition = 0; diff --git a/Assets/Scripts/Title/TitleInfo.cs b/Assets/Scripts/Title/TitleInfo.cs index a3d3991..2a14c47 100644 --- a/Assets/Scripts/Title/TitleInfo.cs +++ b/Assets/Scripts/Title/TitleInfo.cs @@ -1,3 +1,4 @@ +using OneStore.Common; // 지우면 안됨 using System.Collections; using TMPro; using UnityEngine; @@ -17,7 +18,12 @@ public class TitleInfo : MonoBehaviour IEnumerator Start() { - t_ver.text = DSUtil.Format("{0}({1})", Application.version, "E or G or O"); + t_ver.text = Application.version; +#if UNITY_EDITOR + t_ver.text += "(E)"; +#else + t_ver.text += StoreEnvironment.GetStoreType() == StoreType.ONESTORE ? "(O)" : "(G)"; +#endif label_msg.text = "게임 데이터를 읽고 있습니다."; // 테이블 로딩 기다리기 diff --git a/Assets/Scripts/Util/MobileKeyboardHandlerBottomPivot.cs b/Assets/Scripts/Util/MobileKeyboardHandlerBottomPivot.cs new file mode 100644 index 0000000..5d7810d --- /dev/null +++ b/Assets/Scripts/Util/MobileKeyboardHandlerBottomPivot.cs @@ -0,0 +1,47 @@ +using UnityEngine; +using TMPro; + +public class MobileKeyboardHandlerBottomPivot : MonoBehaviour +{ + public TMP_InputField inputField; + public RectTransform canvasRect; + + private Vector2 originalAnchoredPos; + private RectTransform inputRect; + + [Range(0.2f, 0.5f)] + public float keyboardHeightRatio = 0.35f; + + void Awake() + { + inputRect = inputField.GetComponent(); + originalAnchoredPos = inputRect.anchoredPosition; + + inputField.onSelect.AddListener(OnInputSelected); + inputField.onDeselect.AddListener(OnInputDeselected); + } + + void OnInputSelected(string text) + { + StartCoroutine(MoveInputAboveKeyboard()); + } + + void OnInputDeselected(string text) + { + // 원래 자리로 복원 + inputRect.anchoredPosition = originalAnchoredPos; + } + + System.Collections.IEnumerator MoveInputAboveKeyboard() + { + // 키보드가 뜨는 동안 잠시 대기 + yield return new WaitForSeconds(0.1f); + + float canvasHeight = canvasRect.rect.height; + float estimatedKeyboardHeight = canvasHeight * keyboardHeightRatio; + + Vector2 newPos = inputRect.anchoredPosition; + newPos.y = estimatedKeyboardHeight + inputRect.rect.height + 10; // 10px 여유 + inputRect.anchoredPosition = newPos; + } +} \ No newline at end of file diff --git a/Assets/Scripts/Util/MobileKeyboardHandlerBottomPivot.cs.meta b/Assets/Scripts/Util/MobileKeyboardHandlerBottomPivot.cs.meta new file mode 100644 index 0000000..2bea462 --- /dev/null +++ b/Assets/Scripts/Util/MobileKeyboardHandlerBottomPivot.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: e5497f1d3a4f3224fa357c49ec14d753 \ No newline at end of file