菜单列表双行显示
This commit is contained in:
parent
6bbbeb10c7
commit
0e179b9a51
@ -4606,7 +4606,7 @@ RectTransform:
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 35, y: 0}
|
||||
m_SizeDelta: {x: 215, y: 1}
|
||||
m_SizeDelta: {x: 160, y: 1}
|
||||
m_Pivot: {x: 0, y: 0.5}
|
||||
--- !u!222 &6847311756477705362
|
||||
CanvasRenderer:
|
||||
@ -8669,7 +8669,7 @@ RectTransform:
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 250, y: 25}
|
||||
m_SizeDelta: {x: 195, y: 25}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
--- !u!222 &4927377318815481668
|
||||
CanvasRenderer:
|
||||
|
||||
@ -225,11 +225,11 @@ namespace ZXK.LouDiXvMuNiu
|
||||
RectTransform stepSmallRectTran = stepSmallGeo.GetComponent<RectTransform>();
|
||||
int smallNumber = smallParent.childCount - 2;//多减掉一个隐藏的预制体
|
||||
stepSmallRectTran.anchoredPosition = new Vector2(stepSmallRectTran.anchoredPosition.x, -(_smallItemSizeY + _smallItemIntervalY) * smallNumber - extensionTxt);
|
||||
//if (CG.UTility.UtilitiesMng.GetTransCharNum(contentStr) > 25)
|
||||
//{
|
||||
// extensionTxt += _smallItemSizeY;
|
||||
// stepSmallRectTran.sizeDelta = new Vector2(stepSmallRectTran.sizeDelta.x, _smallItemSizeY + _smallItemSizeY);
|
||||
//}
|
||||
if (CG.UTility.UtilitiesMng.GetTransCharNum(contentStr) > 25)
|
||||
{
|
||||
extensionTxt += _smallItemSizeY;
|
||||
stepSmallRectTran.sizeDelta = new Vector2(stepSmallRectTran.sizeDelta.x, _smallItemSizeY + _smallItemSizeY);
|
||||
}
|
||||
stepBigRect.sizeDelta = new Vector2(stepBigRect.sizeDelta.x, -_smallParentInitPosY - _smallItemIntervalY + _smallItemSizeY + (_smallItemSizeY + _smallItemIntervalY) * smallNumber + extensionTxt);
|
||||
smallParent.sizeDelta = new Vector2(smallParent.sizeDelta.x, _smallItemSizeY + (_smallItemSizeY + _smallItemIntervalY) * smallNumber + extensionTxt);
|
||||
stepSmallGeo.SetActive(true);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user