特训信息界面修改提交
parent
a2a4c8f61f
commit
e9461ad1cc
|
@ -624,7 +624,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: 417.525, y: -314.1}
|
||||
m_AnchoredPosition: {x: 417.525, y: -334.1}
|
||||
m_SizeDelta: {x: 281.05, y: 40}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &622002768
|
||||
|
@ -1164,8 +1164,8 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 104, y: -320.33002}
|
||||
m_SizeDelta: {x: 100, y: 334.1}
|
||||
m_AnchoredPosition: {x: 104, y: -321.33002}
|
||||
m_SizeDelta: {x: 100, y: 354.1}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &365477818
|
||||
MonoBehaviour:
|
||||
|
@ -1199,7 +1199,7 @@ MonoBehaviour:
|
|||
m_Top: 63
|
||||
m_Bottom: 0
|
||||
m_ChildAlignment: 0
|
||||
m_Spacing: 0
|
||||
m_Spacing: 10
|
||||
m_ChildForceExpandWidth: 0
|
||||
m_ChildForceExpandHeight: 1
|
||||
m_ChildControlWidth: 0
|
||||
|
@ -1240,7 +1240,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: 406, y: -251.6}
|
||||
m_AnchoredPosition: {x: 406, y: -261.6}
|
||||
m_SizeDelta: {x: 258, y: 85}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &1482736901
|
||||
|
@ -2735,7 +2735,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: 35.593327, y: -31}
|
||||
m_AnchoredPosition: {x: 35.593323, y: -31}
|
||||
m_SizeDelta: {x: 40, y: 46}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &6232666570923579936
|
||||
|
@ -3440,7 +3440,7 @@ MonoBehaviour:
|
|||
m_Padding:
|
||||
m_Left: -47
|
||||
m_Right: 0
|
||||
m_Top: 0
|
||||
m_Top: -20
|
||||
m_Bottom: 0
|
||||
m_ChildAlignment: 0
|
||||
m_Spacing: -292.05
|
||||
|
@ -3720,7 +3720,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: 453.9, y: 849.5}
|
||||
m_AnchoredPosition: {x: 451.8, y: 851.1}
|
||||
m_SizeDelta: {x: 122.1, y: 121}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &3718970244135313906
|
||||
|
@ -4212,8 +4212,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: 160, y: 868}
|
||||
m_SizeDelta: {x: 68, y: 68}
|
||||
m_AnchoredPosition: {x: 160, y: 866.6}
|
||||
m_SizeDelta: {x: 50, y: 50}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &2160784463543351890
|
||||
CanvasRenderer:
|
||||
|
@ -5314,8 +5314,8 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 428.1, y: -15.5}
|
||||
m_SizeDelta: {x: 820.2, y: 69}
|
||||
m_AnchoredPosition: {x: 428.1, y: 5.5}
|
||||
m_SizeDelta: {x: 820.2, y: 27}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &4351621426385855029
|
||||
MonoBehaviour:
|
||||
|
@ -6164,7 +6164,7 @@ RectTransform:
|
|||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 412.7, y: -322.89}
|
||||
m_SizeDelta: {x: 825.4, y: 487.38}
|
||||
m_SizeDelta: {x: 825.4, y: 489.38}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &7346170022788454816
|
||||
MonoBehaviour:
|
||||
|
@ -6787,7 +6787,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: 4, y: 12}
|
||||
m_AnchoredPosition: {x: 4, y: 261}
|
||||
m_SizeDelta: {x: 924.9, y: 727.18}
|
||||
m_Pivot: {x: 0.5, y: 1}
|
||||
--- !u!222 &6674535297544090736
|
||||
|
@ -6874,7 +6874,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: 99.14, y: -108.14}
|
||||
m_AnchoredPosition: {x: 99.140015, y: -108.14}
|
||||
m_SizeDelta: {x: 90.28, y: 90.28}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &6674535297652902540
|
||||
|
@ -7397,8 +7397,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: 2.2, y: -37.3}
|
||||
m_SizeDelta: {x: 956.4, y: 1688.7}
|
||||
m_AnchoredPosition: {x: 7, y: -44.3}
|
||||
m_SizeDelta: {x: 946.8, y: 1648.7}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!1 &6674535297888432878
|
||||
GameObject:
|
||||
|
|
|
@ -74,9 +74,11 @@ function SpecailTrainingInfoPopup:OnShow()
|
|||
HeroManager.GetHeroTrainingAddPro(self._curHerodata.dynamicId)
|
||||
self.ScrollView:SetData(self.showList, function(index, go)
|
||||
self:SetSingleData(index,go,self.showList[index])
|
||||
LayoutRebuilder.ForceRebuildLayoutImmediate(go.transform)
|
||||
end)
|
||||
ForceRebuildLayout(self.GameObject.transform)
|
||||
|
||||
self.ScrollView:SetIndex(1)
|
||||
LayoutRebuilder.ForceRebuildLayoutImmediate(self.GameObject.transform)
|
||||
end
|
||||
--
|
||||
--_data=TrainingConfig
|
||||
|
@ -241,7 +243,7 @@ function SpecailTrainingInfoPopup:SetSingleData(index,_go,_data)
|
|||
Util.GetGameObject( singleAttList[i][1],"Progress/Image"):GetComponent("RectTransform").sizeDelta = Vector3.New(360*size,25,0)
|
||||
Util.GetGameObject( singleAttList[i][1],"Progress/Text"):GetComponent("Text").text = string.format("%s/%s",curExp,trainExp)
|
||||
-- ForceRebuildLayout( singleAttList[i][1].transform)
|
||||
|
||||
LayoutRebuilder.ForceRebuildLayoutImmediate(singleAttList[i][1].transform)
|
||||
singleAttList[i][1]:SetActive(true)
|
||||
end
|
||||
local activeIsOpen=false
|
||||
|
@ -541,7 +543,8 @@ function SpecailTrainingInfoPopup:SetSingleData(index,_go,_data)
|
|||
SkillContent:SetActive(false)
|
||||
end
|
||||
|
||||
ForceRebuildLayout(_go.transform)
|
||||
--ForceRebuildLayout(_go.transform)
|
||||
LayoutRebuilder.ForceRebuildLayoutImmediate(_go.transform)
|
||||
_go:SetActive(true)
|
||||
end
|
||||
function SpecailTrainingInfoPopup:SetSingleData2(index,_go,_data)
|
||||
|
|
Loading…
Reference in New Issue