Beispiel #1
0
 static public int ClearCells(IntPtr l)
 {
     try {
         UIGridCellMgr self = (UIGridCellMgr)checkSelf(l);
         self.ClearCells();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Beispiel #2
0
    void Start()
    {
        string allUserName = _ctrl.GetAllUserName();

        if (allUserName != "")
        {
            JSONObject userList = new JSONObject(allUserName);
//            _phonePopList.Clear();
            _popList.Clear();
            _phonePopListMgr.ClearCells();
            if (userList[0].Count >= 2)
            {
                userList[0].list.Reverse();
            }
            for (int i = 0; i < userList[0].Count; i++)
            {
                if (i == 0)
                {
                    _nameLb.value = userList[0].list[i].str;
                    if (GameDataMgr.LOGIN_DATA.lastLoginAccount.Equals(_nameLb.value))
                    {
                        _passWordLb.value = GameDataMgr.LOGIN_DATA.lastLoginPassword;
                    }
                }
//                _phonePopList.AddItem(userList[0].list[i].str);
                _popList.Add(userList[0].list[i].str);
                _phonePopListMgr.NewCellsBox(_phonePopListMgr.Go);
            }
        }

        _phonePopListScrollView.ResetPosition();
        _phonePopListMgr.Grid.Reposition();
        _phonePopListMgr.UpdateCells();

        _ctrl.SetScrollViewRenderQueue(_phonePopListScrollView.gameObject);
        _phonePopList.gameObject.SetActive(false);

        _phoneLoginContainer.SetActive(true);
        _resetPassWordContainer.SetActive(false);
    }