コード例 #1
0
        void OnSDKLoginFinished(QKCommand cmd)
        {
            CMaskPanel.Show(false);

            int errorCode = (int)cmd.Params["ErrorCode"];

            if (0 == errorCode)
            {
                CloseUI();
            }
            else
            {
                CTipPanel.ShowTip(CTipType.Yes, (string)cmd.Params["Msg"], null);
            }
        }
コード例 #2
0
            public CLoginUI(GameObject obj)
            {
                mUIObject = obj;

                mCloseBtn = GameObjectExtension.FindChild(obj.transform, "panel/close_btn").gameObject;

                mLoginEntry = new CLoginEntry(GameObjectExtension.FindChild(obj.transform, "panel/main_widget").gameObject);

                mAccountLogin = new CAccountLogin(GameObjectExtension.FindChild(obj.transform, "panel/idlogin_widget").gameObject);

                mRegistAccount = new CRegistLogin(GameObjectExtension.FindChild(obj.transform, "panel/register_widget").gameObject);

                mRealAuth = new CRealAuthenticate(GameObjectExtension.FindChild(obj.transform, "panel/id&phone_widget").gameObject);

                CTipPanel.AutoInit(GameObjectExtension.FindChild(obj.transform, "tips_panel").gameObject);

                UIEventListener.Get(mCloseBtn).onClick += OnClick;
            }