| | |
| | | protected override void AddListeners()
|
| | | {
|
| | | m_ActivityCtrl.OnRefreshCell += OnOpenServerActivityRefresh;
|
| | | m_ActivityCtrl.OnGetDynamicSize += OnGetDynamicSize;
|
| | | m_BtnClose.onClick.AddListener(CloseClick);
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | private bool OnGetDynamicSize(ScrollerDataType type, int index, out float height)
|
| | | {
|
| | | height = 74;
|
| | | var sort = index;
|
| | | if (type == ScrollerDataType.Header)
|
| | | {
|
| | | if (!m_ActivitySpreadDict.ContainsKey(sort) || !m_ActivitySpreadDict[sort]
|
| | | || (sort != 2 && sort != 0))
|
| | | {
|
| | | height = 80;
|
| | | return true;
|
| | | }
|
| | | }
|
| | | return false;
|
| | | }
|
| | |
|
| | | private void RefreshOpenActivityCell(OpenServerActivityCell _cell)
|
| | | {
|
| | | OperationBase operationBase;
|