From 2b4e5cdcb29cbdc2dfcd37ddd5eaae245d6ff032 Mon Sep 17 00:00:00 2001 From: jmaniuvc Date: Thu, 22 May 2025 18:29:09 +0900 Subject: [PATCH] =?UTF-8?q?Data=20Repository=20=EB=AA=A8=EB=8B=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/TMPFolder/Panel_Repository.cs | 58 ++++- Assets/TMPFolder/Test.unity | 353 ++++++++++++++++++++++---- Assets/TMPFolder/UI_BaseDataButton.cs | 13 +- Assets/TMPFolder/UI_ProtocolLabel.cs | 2 +- 4 files changed, 363 insertions(+), 63 deletions(-) diff --git a/Assets/TMPFolder/Panel_Repository.cs b/Assets/TMPFolder/Panel_Repository.cs index 4b76f199..224e589d 100644 --- a/Assets/TMPFolder/Panel_Repository.cs +++ b/Assets/TMPFolder/Panel_Repository.cs @@ -1,15 +1,20 @@ +using Best.HTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs; using Studio; using Studio.Setting.Connect; using Studio.UI; using TMPro; using UnityEngine; using XRLib.UI; +using Newtonsoft.Json; +using Best.HTTP.JSON; +using UnityEngine.UI; namespace XED.UI { public class Panel_Repository : PanelBase { - public RectTransform BaseDataList; + RectTransform ProtocolLabels; + RectTransform BaseDataList; RectTransform Info_API; RectTransform Info_BaseInfo; @@ -25,6 +30,13 @@ namespace XED.UI TextMeshProUGUI MaximumResponsePacketAPI; TextMeshProUGUI MaximumResponseTimeAPI; + TextMeshProUGUI RawData; + RectTransform rawDataRect; + float rawDataFoldHeight; + float rawDataOriginHeight; + RectTransform RawDataFoldButton; + bool isRawDataFoldOn; + public override void AfterAwake() { UI_ProtocolLabel[] protocolLabels = GetComponentsInChildren(); @@ -36,15 +48,26 @@ namespace XED.UI StudioService.Instance.onDataLoaded += CreateAPIListButton; baseDataButtonPrefab = Resources.Load("Prefabs/UI/Button/UI_BaseDataButton"); + + rawDataRect = RawData.GetComponent(); + rawDataFoldHeight = rawDataRect.sizeDelta.y; + RawDataFoldButton.GetComponent