礼物选择列表修改

onepiece_demo_arena
wangzhenxing 2024-01-13 14:08:15 +08:00
parent c648b51f78
commit 6e346089d9
4 changed files with 36 additions and 18 deletions

View File

@ -4680,7 +4680,7 @@ 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.000015258789, y: -104.4}
m_AnchoredPosition: {x: 0.000015258789, y: -104.399994}
m_SizeDelta: {x: 64.4, y: 40.78}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &222600956484834218
@ -4811,13 +4811,14 @@ GameObject:
- component: {fileID: 224857886646455402}
- component: {fileID: 222622639373068266}
- component: {fileID: 114968595962847434}
- component: {fileID: 4864852440456619184}
m_Layer: 5
m_Name: resetLv
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
m_IsActive: 1
--- !u!224 &224857886646455402
RectTransform:
m_ObjectHideFlags: 0
@ -4834,7 +4835,7 @@ 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: -35.12, y: -50.382}
m_AnchoredPosition: {x: -36.2, y: 48.1}
m_SizeDelta: {x: 61.84, y: 27.336}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &222622639373068266
@ -4858,7 +4859,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_Color: {r: 0.8207547, g: 0.4878985, b: 0.127759, a: 1}
m_RaycastTarget: 1
m_OnCullStateChanged:
m_PersistentCalls:
@ -4866,7 +4867,7 @@ MonoBehaviour:
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_FontData:
m_Font: {fileID: 12800000, guid: 4b73e9e4512d17e4daeea351e090d33c, type: 3}
m_Font: {fileID: 12800000, guid: be22547d075a3fa439f78ce38cdb4beb, type: 3}
m_FontSize: 35
m_FontStyle: 0
m_BestFit: 0
@ -4879,6 +4880,21 @@ MonoBehaviour:
m_VerticalOverflow: 1
m_LineSpacing: 1
m_Text: +88
--- !u!114 &4864852440456619184
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1379603226461816}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: -900027084, guid: f70555f144d8491a825f0804e09c671c, type: 3}
m_Name:
m_EditorClassIdentifier:
m_EffectColor: {r: 0, g: 0, b: 0, a: 1}
m_EffectDistance: {x: 1, y: -1}
m_UseGraphicAlpha: 1
--- !u!1 &1381382228487114
GameObject:
m_ObjectHideFlags: 0
@ -54862,7 +54878,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: -20.109905, y: -15.803612}
m_AnchoredPosition: {x: -20.10991, y: -15.803612}
m_SizeDelta: {x: 150.75, y: 29.09}
m_Pivot: {x: 0, y: 0}
--- !u!1 &8317220848101987205
@ -73593,7 +73609,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 0}
m_AnchorMax: {x: 1, y: 0}
m_AnchoredPosition: {x: 11.9, y: -14.046}
m_AnchoredPosition: {x: 11.900002, y: -14.045998}
m_SizeDelta: {x: 43.54, y: 43.54}
m_Pivot: {x: 1, y: 0}
--- !u!222 &8607507955740466777
@ -74223,12 +74239,17 @@ PrefabInstance:
propertyPath: m_MaskInteraction
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8904198713310030723, guid: bd194af093bc5564ba7ae00a6f664c2d,
- target: {fileID: 8904198713800480830, guid: bd194af093bc5564ba7ae00a6f664c2d,
type: 3}
propertyPath: m_MaskInteraction
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8904198713654882537, guid: bd194af093bc5564ba7ae00a6f664c2d,
- target: {fileID: 8904198714661017609, guid: bd194af093bc5564ba7ae00a6f664c2d,
type: 3}
propertyPath: m_MaskInteraction
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8904198713310030723, guid: bd194af093bc5564ba7ae00a6f664c2d,
type: 3}
propertyPath: m_MaskInteraction
value: 1
@ -74238,12 +74259,7 @@ PrefabInstance:
propertyPath: m_MaskInteraction
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8904198713800480830, guid: bd194af093bc5564ba7ae00a6f664c2d,
type: 3}
propertyPath: m_MaskInteraction
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8904198714661017609, guid: bd194af093bc5564ba7ae00a6f664c2d,
- target: {fileID: 8904198713654882537, guid: bd194af093bc5564ba7ae00a6f664c2d,
type: 3}
propertyPath: m_MaskInteraction
value: 1

View File

@ -5197,7 +5197,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 211, y: -25}
m_AnchoredPosition: {x: 290, y: -25}
m_SizeDelta: {x: 250, y: 50}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &7321926799232025417

View File

@ -47,7 +47,7 @@ function PlayerGiftPanel:InitComponent()
this.ScrollBar = Util.GetGameObject(self.gameObject, "listObj/bg/Scrollbar"):GetComponent("Scrollbar")
local v2 = Util.GetGameObject(self.gameObject, "listObj/bg/scroll"):GetComponent("RectTransform").rect
this.ScrollView = SubUIManager.Open(SubUIConfig.ScrollCycleView, Util.GetGameObject(self.transform, "listObj/bg/scroll").transform,
this.equipPre, this.ScrollBar,Vector2.New(v2.width, v2.height),1 , 4, Vector2.New(40, 15))
this.equipPre, this.ScrollBar,Vector2.New(v2.width, v2.height),1 , 4, Vector2.New(40, 25))
this.ScrollView.moveTween.MomentumAmount = 1
this.ScrollView.moveTween.Strength = 1
@ -374,6 +374,7 @@ function this.SingleItemDataShow(_go, _itemData)
redPoint:SetActive(isHave==false)
this.equipPreList[_go].gameObject:SetActive(true)
this.equipPreList[_go].transform:SetAsFirstSibling()
this.equipPreList[_go]:ResetNameColor(Color.New(178/255,85/255,55/255,1))
--if itemConfig[_itemData.id].ItemType == ItemType.Equip then
this.equipPreList[_go]:OnOpen(false,{_itemData.id,_itemData.num}, 1.1, true, false, false, this.sortingOrder+1,_itemData.idDyn)
-- 0.查看属性 1.穿戴 2.卸下 3.交换

View File

@ -59,7 +59,7 @@ function RoleGiftPanel:InitComponent()
this.ScrollBar = Util.GetGameObject(self.gameObject, "listObj/bg/Scrollbar"):GetComponent("Scrollbar")
local v2 = Util.GetGameObject(self.gameObject, "listObj/bg/scroll"):GetComponent("RectTransform").rect
this.ScrollView = SubUIManager.Open(SubUIConfig.ScrollCycleView, Util.GetGameObject(self.transform, "listObj/bg/scroll").transform,
this.equipPre, this.ScrollBar,Vector2.New(v2.width, v2.height),1 , 4, Vector2.New(40, 15))
this.equipPre, this.ScrollBar,Vector2.New(v2.width, v2.height),1 , 4, Vector2.New(40, 25))
this.ScrollView.moveTween.MomentumAmount = 1
this.ScrollView.moveTween.Strength = 1
@ -438,6 +438,7 @@ function this.SingleItemDataShow(_go, _itemData)
redPoint:SetActive(isHave==false and curNum>#allUpIds)
this.equipPreList[_go].gameObject:SetActive(true)
this.equipPreList[_go].transform:SetAsFirstSibling()
this.equipPreList[_go]:ResetNameColor(Color.New(178/255,85/255,55/255,1))
--if itemConfig[_itemData.id].ItemType == ItemType.Equip then
this.equipPreList[_go]:OnOpen(false,{_itemData.id,_itemData.num}, 1.1, true, false, false, this.sortingOrder+1,_itemData.idDyn)
-- 0.查看属性 1.穿戴 2.卸下 3.交换