Exemplo n.º 1
0
        public void HideUI(UIname pagename, int pageid)
        {
            switch (pagename)
            {
            case UIname.main:
                break;

            case UIname.spot:
                toSpotPage(false);
                if (pageid == 0)
                {
                    lastpagename = UIname.main;
                }
                break;

            case UIname.change:
                toChangePage(pageid, false);
                if (pageid == 0)
                {
                    lastpagename = UIname.main;
                }
                break;

            case UIname.user_center:
                toUser_CenterPage(pageid, false);
                if (pageid == 0)
                {
                    lastpagename = UIname.main;
                }
                break;

            case UIname.user_editor:
                toUser_Editor(pageid, false);
                if (pageid == 0)
                {
                    lastpagename = UIname.user_center;
                }
                break;

            case UIname.user_about:
                toUser_About(pageid, false);
                if (pageid == 0)
                {
                    lastpagename = UIname.user_center;
                }
                break;

            case UIname.user_set:
                toUser_Set(pageid, false);
                if (pageid == 0)
                {
                    lastpagename = UIname.user_center;
                }
                break;

            case UIname.webpage:
                break;
            }
        }
Exemplo n.º 2
0
        private void toMainPage()
        {
            panel_mainpage.SetActive(true);

            UIname name = lastpagename;
            int    id   = lastpageid;

            HideUI(UIname.spot, 0);
            HideUI(UIname.change, 0);
            HideUI(UIname.user_center, 0);
            HideUI(UIname.user_editor, 0);
            HideUI(UIname.user_about, 0);
            HideUI(UIname.user_set, 0);
            HideUI(UIname.webpage, 0);
            lastpagename = name;
            lastpageid   = id;
        }
Exemplo n.º 3
0
        /// <summary>
        /// 显示指定界面
        /// </summary>
        /// <param name="pagename">UIname </param>
        /// <param name="id">
        ///	main 0主页
        /// spot 0列表
        /// change 0列表
        /// user_center  0 背景 1 用户 2 游客
        /// user_editor 0 主页 1 修改名称 2 修改手机 3 修改密码
        /// user_about 0 主页 1 隐私政策 2 用户协议
        /// user_set 0 主页 1 反馈
        /// webpage 0 网页
        /// </param>
        public void ShowUI(UIname pagename, int pageid)
        {
            lastpagename = pagename;
            lastpageid   = pageid;
            switch (pagename)
            {
            case UIname.main:
                toMainPage();
                break;

            case UIname.spot:
                toSpotPage(true);
                break;

            case UIname.change:
                toChangePage(pageid, true);
                break;

            case UIname.user_center:
                toUser_CenterPage(pageid, true);
                break;

            case UIname.user_editor:
                toUser_Editor(pageid, true);
                break;

            case UIname.user_about:
                toUser_About(pageid, true);
                break;

            case UIname.user_set:
                toUser_Set(pageid, true);
                break;

            case UIname.webpage:
                toLastWebpage();
                break;
            }
        }