Example #1
0
    // 모든 elememnt 들 생성하기
    public void Creat_Element()
    {
        //소식 생성-> 공지는 공지데이터 따로 있음 / 알림및선물 은 선물아이템있으면 선물 ,없으면 알림임 / 초대는 클랜 초대 데이터로 이용
        //알림및선물 구분
        foreach (var item in Dic_userPosts)
        {
            UIItem_newsElement _newsEle = ui_mgr.CreatUI(UIITEM.ITEM_NEWSELEMENT, RectTr_content) as UIItem_newsElement;

            _newsEle.Set_ElementInfo(item.Value);
            lst_newsElemnet.Add(_newsEle);
        }

        //공지 구분

        foreach (var noti in Dic_infosNotice)
        {
            if (noti.Value.LggCd == (byte)OptionSetting.instance.usingLangueage)             //공지사항의 국가코드가 현재 국가코드랑 같으면
            {
                if (noti.Value.Noticetime > TimeManager.Instance.Get_nowTime())
                {
                    UIItem_newsElement _newsEle = ui_mgr.CreatUI(UIITEM.ITEM_NEWSELEMENT, RectTr_content) as UIItem_newsElement;
                    _newsEle.Set_ElementInfo(noti.Value);

                    lst_newsElemnet.Add(_newsEle);
                }
            }
        }
    }
Example #2
0
    //생성할 element 생성및 정보설정
    void CreateEleInfo(Infos_Shop shopinfo, STOREMODE_TYPE _storemode)
    {
        UIItem_StoreElement storeEle = ui_Mgr.CreatUI(UIITEM.ITEM_STOREELEMENT, Tr_Content) as UIItem_StoreElement;

        BonusInfo bouns = new BonusInfo(0, 0, (int)shopinfo.BnsItNum, (ITEMTYPE)shopinfo.BnsItTp, (int)shopinfo.BnsIdx);

        storeEle.Set_info(shopinfo, bouns, _storemode);
        Lst_storeElement.Add(storeEle);
    }
Example #3
0
    //채팅UI 띄우기
    public void Create_ChatUI()
    {
        UI_Manager _ui_mgr = UI_Manager.Getsingleton;

        //인게임 canvas 찾기
        _ui_mgr.Find_UICanvasTr();

        //결과창 UI 생성
        //_ui_mgr.Dic_UILst.Clear();
        _ui_mgr.CreatUI(UI.CHAT, _ui_mgr.CanvasTr);
    }
    // 친구UI안의 element들 생성
    public void Creat_friendElement()
    {
        if (Dic_userFriends.Count > 0)
        {
            foreach (var fr in Dic_userFriends)
            {
                //ui_Mgr.CreatUI(UIITEM.ITEM_FRIENDELEMENT, RectTr_content);
                //UIItem_FriendElement _friendEle = ui_Mgr.Lst_UiItem[ui_Mgr.Lst_UiItem.Count - 1] as UIItem_FriendElement;
                UIItem_FriendElement _friendEle = ui_Mgr.CreatUI(UIITEM.ITEM_FRIENDELEMENT, RectTr_content) as UIItem_FriendElement;
                _friendEle.Set_friendInfo(fr.Value);

                lst_friendEle.Add(_friendEle);
            }

            //시간정렬 후 접속중 정렬
            Sort_Friends(lst_friendEle, FRIENDSORTING_TYPE.LOGIN);
        }
    }
Example #5
0
    /// <summary>
    /// 결과화면 UI 보여주기 (매개변수 : 승리flag => 승  = 0 , 패 = 1 ,무승부 = 2)
    /// </summary>
    public void Create_ResultUI(byte winFlag)
    {
        UI_Manager _ui_mgr = UI_Manager.Getsingleton;

        //인게임 canvas 찾기
        _ui_mgr.Find_UICanvasTr();

        //결과창 UI 생성
        //_ui_mgr.Dic_UILst.Clear();
        _ui_mgr.CreatUI(UI.INGAME_RESULT, _ui_mgr.CanvasTr);

        // 결과창 UI의 컴포넌트가져오기
        UI_Ingame_result ingame_result = _ui_mgr.Dic_UILst[UI.INGAME_RESULT] as UI_Ingame_result;

        ingame_result.showResult(winFlag);

        ingame_result.transform.SetAsFirstSibling();
    }
    //로그아웃 처리
    void Process_LogOut()
    {
        //로그아웃하므로 변수 값 변경
        UserDataManager.instance.user.LogInState = Login_State.LogOut;

        //기존 연동된 계정 로그아웃
        PlatformManager.Getsingleton.Platform_LogOut();

        //채팅서버 연결 끊기
        Network_MainMenuSoketManager.Getsingleton.Disconnect(DISCONNECT_STATE.NORMALITY, "로그아웃 의한 서버끊기");

        //webReseponse 변수값 초기화
        webResponse.Init();


        //모든유저정보 초기화
        UserDataManager.instance.user.Init();


        UI_Manager ui_manager = UI_Manager.Getsingleton;

        ui_manager.CreatUI(UI.TITLE, ui_manager.CanvasTr);
    }
    public void ResponseButton_Back()
    {
        UI_Manager ui_manager = UI_Manager.Getsingleton;

        ui_manager.CreatUI(UI.LOBBY, ui_manager.CanvasTr);
    }