Exemplo n.º 1
0
 //公会解散
 public void onGuildReadyDismiss(object val)
 {
     GuildMainMediator.mMyGuild.dismissTime = GameConvert.LongConvert(val);
     if (GUIManager.HasView("guildmainpanel"))
     {
         GuildMainMediator.guildmainMediator.SetDismissTime();
     }
 }
Exemplo n.º 2
0
    /// <summary>
    /// 设置升星装备
    /// </summary>
    public void SetEquip()
    {
        cur_equip_data = EquipMediator.cur_equip;
        cur_equip_info = EquipConfig.GetEquipInfo(int.Parse(cur_equip_data.itemID));

        select_equip_id = EquipMediator.cur_select_player_id == 0 ? GameConvert.LongConvert(cur_equip_data.uuid) : GameConvert.LongConvert(cur_equip_data.itemID);


        ServerCustom.instance.SendClientMethods(EquipProxy.CLIENT_EQUIP_STAR, EquipMediator.cur_select_player_id, select_equip_id);
    }
Exemplo n.º 3
0
    /// <summary>
    /// 设置升星装备
    /// </summary>
    public void SetEquip()
    {
        select_equip_data = null;

        cur_equip_data = EquipMediator.cur_equip;
        cur_equip_info = EquipConfig.GetEquipInfo(int.Parse(cur_equip_data.itemID));

        select_equip_id = EquipMediator.cur_select_player_id == 0 ? GameConvert.LongConvert(cur_equip_data.uuid) : GameConvert.LongConvert(cur_equip_data.itemID);

        SetInfo();
    }
Exemplo n.º 4
0
    //返回公会建筑信息
    public void onClientGuildBuildInfo(Dictionary <string, object> data)
    {
        int            id   = GameConvert.IntConvert(data["id"]);
        GuildBuildInfo info = GuildBuildConfig.GetGuildBuildInfo(id);

        info.id       = id;
        info.level    = GameConvert.IntConvert(data["level"]);
        info.state    = GameConvert.IntConvert(data["state"]);
        info.endTimes = GameConvert.LongConvert(data["endTime"]);

        if (GUIManager.HasView("guildmainpanel"))
        {
            GuildMainMediator.guildmainMediator.SetBuildInfo(info);
        }
    }
Exemplo n.º 5
0
    /// <summary>
    /// 界面显示
    /// </summary>
    protected override void OnShow(INotification notification)
    {
        if (gemChooseMediator == null)
        {
            gemChooseMediator = Facade.RetrieveMediator("GemChooseMediator") as GemChooseMediator;
        }
        player_id       = GameConvert.IntConvert((notification.Body as List <object>)[0]);
        select_equip_id = GameConvert.LongConvert((notification.Body as List <object>)[1]);
        m_index         = GameConvert.IntConvert((notification.Body as List <object>)[2]);

        panel.chooseGrid.enabled = true;
        panel.chooseGrid.BindCustomCallBack(ChooseGrid_UpdateItem);
        panel.chooseGrid.StartCustom();

        SetInfo();
    }
Exemplo n.º 6
0
    private void OnClick(GameObject go)
    {
        if (select_gem == null)
        {
            GUIManager.SetPromptInfo(TextManager.GetUIString("UI2066"), null);
            return;
        }
        GemCompound gem = GemCompoundConfig.GetGemCompound(int.Parse(select_gem.itemID));

        if (gem == null)
        {
            return;
        }

        ServerCustom.instance.SendClientMethods(EquipProxy.CLIENT_COMPOUND_GEM, GameConvert.LongConvert(select_gem.uuid));
    }
Exemplo n.º 7
0
    private void OnClick(GameObject go)
    {
        switch (go.transform.name)
        {
        case "inheritBtn":
            if (select_equip_data == null)
            {
                return;
            }

            long inherit_id = GameConvert.LongConvert(select_equip_data.uuid);

            int need_euro = GetNeedEuro();
            if (PlayerMediator.playerInfo.euro < need_euro)
            {
                GUIManager.SetPromptInfo(TextManager.GetUIString("equip_error_6"), null);

                return;
            }

            ServerCustom.instance.SendClientMethods(EquipProxy.CLIENT_EQUIP_INHERIT, EquipMediator.cur_select_player_id, select_equip_id, inherit_id);
            break;

        case "selectbg":

            List <EquipItemInfo> equip_list = EquipConfig.GetEquipDataListByLv(cur_strong_lv + 10);
            if (equip_list.Count <= 0)
            {
                GUIManager.SetPromptInfo(TextManager.GetSystemString("ui_system_24"), null);
                return;
            }
            EquipChooseMediator.SelectItem = new EquipChooseMediator.SelectItemHandle(SelectEquip);

            List <object> list = new List <object>();

            EquipChooseData data = new EquipChooseData(EquipMediator.cur_select_player_id, Equip_Select_Type.Level, Equip_Pos.Null, cur_strong_lv + 10);
            list.Add(data);

            Facade.SendNotification(NotificationID.EquipChoose_Show, list);

            break;
        }
    }
Exemplo n.º 8
0
    //公会信息
    public void onGetGuildInfo(object val, object val1, object val2, object val3, object val4, object val5, object val6, object val7, object val8, object val9, object val10, List <object> list)
    {
        Facade.SendNotification(NotificationID.GuildList_Hide);

        MyGuildInfo info = GuildMainMediator.mMyGuild;

        info.level        = GameConvert.IntConvert(val);
        info.name         = GameConvert.StringConvert(val1);
        info.memberNum    = GameConvert.IntConvert(val2);
        info.guildFunds   = GameConvert.IntConvert(val3);
        info.reputation   = GameConvert.IntConvert(val4);
        info.notice       = GameConvert.StringConvert(val5);
        info.dismissTime  = GameConvert.LongConvert(val6);
        info.id           = GameConvert.IntConvert(val7);
        info.introduction = GameConvert.StringConvert(val8);
        info.protectTime  = GameConvert.IntConvert(val9);
        info.ropleTime    = GameConvert.IntConvert(val10);


        for (int i = 0; i < list.Count; i++)
        {
            Dictionary <string, object> data = list[i] as Dictionary <string, object>;
            int            id    = GameConvert.IntConvert(data["id"]);
            GuildBuildInfo build = GuildBuildConfig.GetGuildBuildInfo(id);
            build.id       = id;
            build.level    = GameConvert.IntConvert(data["level"]);
            build.state    = GameConvert.IntConvert(data["state"]);
            build.endTimes = GameConvert.LongConvert(data["endTime"]);
        }
        Facade.SendNotification(NotificationID.GuildMain_Show);

        //if (GUIManager.HasView("guildmainpanel"))
        //{
        //    GuildMainMediator.guildmainMediator.SetBuild();
        //}
    }
Exemplo n.º 9
0
 /// <summary>
 /// 点击装备
 /// </summary>
 /// <param name="data"></param>
 /// <param name="go"></param>
 private void ClickEquipItem(object data, GameObject go)
 {
     //MyUIToggle toggle = go.GetComponent<MyUIToggle>();
     //if (toggle.Value == true)
     //    return;
     select_equip = data as EquipItemInfo;
     ServerCustom.instance.SendClientMethods(EquipProxy.CLIENT_EQUIP_PUT_ON, player_id, GameConvert.LongConvert(select_equip.uuid));
 }
Exemplo n.º 10
0
    /// <summary>
    /// 点击装备
    /// </summary>
    /// <param name="data"></param>
    /// <param name="go"></param>
    private void ClickEquipItem(UIGridItem data)
    {
        select_equip = data.oData as EquipItemInfo;
        if (SelectItem != null)
        {
            SelectItem(select_equip);
        }
        else
        {
            ServerCustom.instance.SendClientMethods(EquipProxy.CLIENT_EQUIP_PUT_ON, player_id, GameConvert.LongConvert(select_equip.uuid));
        }

        ClosePanel(null);
    }