神印图鉴页面优化

onepiece_demo_new
PC-202302260912\Administrator 2024-05-24 15:40:18 +08:00
parent 6f40daa7e6
commit 44d03801da
2 changed files with 15 additions and 15 deletions

View File

@ -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:

View File

@ -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