From 44d03801dae5ad381aec4509a057fa672e8a7989 Mon Sep 17 00:00:00 2001 From: "PC-202302260912\\Administrator" <419983115@qq.com> Date: Fri, 24 May 2024 15:40:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A5=9E=E5=8D=B0=E5=9B=BE=E9=89=B4=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UI/GodPrint/GodPrintHandBook.prefab | 26 +++++++++---------- .../Modules/GodPrint/GodPrintHandBook.lua | 4 +-- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Assets/ManagedResources/Prefabs/UI/GodPrint/GodPrintHandBook.prefab b/Assets/ManagedResources/Prefabs/UI/GodPrint/GodPrintHandBook.prefab index 7ed92674fa..bd0c3b759f 100644 --- a/Assets/ManagedResources/Prefabs/UI/GodPrint/GodPrintHandBook.prefab +++ b/Assets/ManagedResources/Prefabs/UI/GodPrint/GodPrintHandBook.prefab @@ -362,7 +362,7 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Color: {r: 0.9150943, g: 0.9150943, b: 0.9150943, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: @@ -5208,8 +5208,8 @@ RectTransform: 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: -313, y: -1.8600159} - m_SizeDelta: {x: 154.54, y: 105.82} + m_AnchoredPosition: {x: -313, y: 0} + m_SizeDelta: {x: 140, y: 100} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &6971853995272584511 CanvasRenderer: @@ -15410,8 +15410,8 @@ RectTransform: 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: -157, y: -1.8600159} - m_SizeDelta: {x: 154.54, y: 105.82} + m_AnchoredPosition: {x: -157, y: 0} + m_SizeDelta: {x: 140, y: 100} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &6693549748562183846 CanvasRenderer: @@ -20554,8 +20554,8 @@ RectTransform: 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: -281, y: -0.11992} - m_SizeDelta: {x: 155.66, y: 106.02} + m_AnchoredPosition: {x: -281, y: 0} + m_SizeDelta: {x: 140, y: 100} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &8046027451725426981 CanvasRenderer: @@ -26114,8 +26114,8 @@ RectTransform: 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.99999666, y: -1.8600159} - m_SizeDelta: {x: 154.54, y: 105.82} + m_AnchoredPosition: {x: 0.99999666, y: 0} + m_SizeDelta: {x: 140, y: 100} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &765660993270669847 CanvasRenderer: @@ -27204,8 +27204,8 @@ RectTransform: 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: 313, y: -1.8600159} - m_SizeDelta: {x: 154.54, y: 105.82} + m_AnchoredPosition: {x: 313, y: 0} + m_SizeDelta: {x: 140, y: 100} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &5506972779571193887 CanvasRenderer: @@ -27322,8 +27322,8 @@ RectTransform: 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: 157, y: -1.8600159} - m_SizeDelta: {x: 154.54, y: 105.82} + m_AnchoredPosition: {x: 157, y: 0} + m_SizeDelta: {x: 140, y: 100} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &896749683061997054 CanvasRenderer: diff --git a/Assets/ManagedResources/~Lua/Modules/GodPrint/GodPrintHandBook.lua b/Assets/ManagedResources/~Lua/Modules/GodPrint/GodPrintHandBook.lua index a883e37052..e404a164b0 100644 --- a/Assets/ManagedResources/~Lua/Modules/GodPrint/GodPrintHandBook.lua +++ b/Assets/ManagedResources/~Lua/Modules/GodPrint/GodPrintHandBook.lua @@ -30,7 +30,7 @@ function GodPrintHandBook:InitComponent() this.scrollRoot=Util.GetGameObject(this.gameObject,"ScrollRoot") this.pre=Util.GetGameObject(this.scrollRoot,"Pre") this.scrollView=SubUIManager.Open(SubUIConfig.ScrollCycleView,this.scrollRoot.transform,this.pre, nil,-- - Vector2.New(this.scrollRoot.transform.rect.width,this.scrollRoot.transform.rect.height),1,4,Vector2.New(50,15)) + Vector2.New(this.scrollRoot.transform.rect.width,this.scrollRoot.transform.rect.height),1,4,Vector2.New(60,15)) this.scrollView.gameObject:GetComponent("RectTransform").anchoredPosition= Vector2.New(0,0) this.scrollView.gameObject:GetComponent("RectTransform").anchorMin = Vector2.New(0.5, 0.5) this.scrollView.gameObject:GetComponent("RectTransform").anchorMax = Vector2.New(0.5, 0.5) @@ -191,7 +191,7 @@ function this.SetScrollPre(root,data) Util.GetGameObject(root,"circleFrameBg/circleFrame"):GetComponent("Image").sprite=this.spLoader:LoadSprite(SoulPrintSpriteByQuantity[itemConfig[data.Id].Quantity].circle) local str = data.Name if GetCurLanguage() == 0 and LengthString(data.Name)>=5 then - str = SubString(data.Name,4).."..." + str = SubString(data.Name,5)..".." end name.text = str--SubString2(GetLanguageStrById(data.Name),10) end