コード例 #1
0
    private void GetGuildInfo(VoHttp vo)
    {
        if (this.view != null && this.view.parent != null)
        {
            this.visible = true;
            Dictionary <string, object> data = (Dictionary <string, object>)vo.data;
            guildModel.guildList = null;
            if (data ["my_guild_info"] != null)
            {
                guildModel.location        = ((int)(((Dictionary <string, object>)data ["my_guild_info"]) ["location"]));
                guildModel.guildHave       = true;
                guildModel.my_guild_job    = (int)(((Dictionary <string, object>)(((Dictionary <string, object>)(((Dictionary <string, object>)data ["my_guild_info"]) ["member"])) [ModelManager.inst.userModel.uid + ""])) ["gradation"]);
                guildModel.my_guild_info   = (Dictionary <string, object>)data ["my_guild_info"];
                guildModel.my_guild_member = ((Dictionary <string, object>)(((Dictionary <string, object>)data ["my_guild_info"]) ["member"]));
            }
            guildModel.word_guild_list = (object[])(data ["guild_rank"]);
            guildModel.SetGuildList((object[])(data ["guild_rank"]));

            CHAT_GUILDMODIFY();
        }
    }
コード例 #2
0
    private void GetGuildInfo(VoHttp vo)
    {
//		tab_root_0.selected = false;
//		tab_root_1.selected = true;
        ModelManager.inst.guildModel.viewData = vo;
        Dictionary <string, object> data = (Dictionary <string, object>)vo.data;

        guildModel.guildList = null;
        if (data ["my_guild_info"] != null)
        {
            haveGuild = true;
            TimerManager.inst.Add(0.3f, 1, (float ff) => { tabC1.selectedIndex = 0; });
//			this.GetChild ("n8").asGroup.visible = true;
            guildModel.location        = ((int)(((Dictionary <string, object>)data ["my_guild_info"]) ["location"]));
            guildModel.guildHave       = true;
            guildModel.my_guild_job    = (int)(((Dictionary <string, object>)(((Dictionary <string, object>)(((Dictionary <string, object>)data ["my_guild_info"]) ["member"])) [ModelManager.inst.userModel.uid + ""])) ["gradation"]);
            guildModel.my_guild_info   = (Dictionary <string, object>)data ["my_guild_info"];
            guildModel.my_guild_member = ((Dictionary <string, object>)(((Dictionary <string, object>)data ["my_guild_info"]) ["member"]));

            Dictionary <string, object> datas = (Dictionary <string, object>)(Tools.Clone(ModelManager.inst.guildModel.my_guild_info));
            this.GetChild("n14").asTextField.text = (string)(datas ["name"]);
            this.GetChild("n15").asTextField.text = Tools.GetMessageById("20102") + (datas ["id"]).ToString();
            object[] ddd = ((object[])((Dictionary <string, object>)DataManager.inst.systemSimple ["society_location"]) [ModelManager.inst.guildModel.location + ""]);
            this.GetChild("n16").asTextField.text = Tools.GetMessageById("20174") + Tools.GetMessageById(ddd [1].ToString());
            this.GetChild("n17").asButton.text    = Tools.GetMessageById("19919");
            this.GetChild("n11").asLoader.url     = Tools.GetResourceUrl("Icon:" + (string)(datas ["icon"]));
            this.GetChild("n18").visible          = true;
//			this.GetChild ("n21").visible = false;
            if (guildModel.my_guild_job < 2)
            {
                this.GetController("c1").selectedIndex = 1;
            }
            else
            {
                this.GetController("c1").selectedIndex = 0;
            }
            this.GetChild("n17").asButton.RemoveEventListeners();
            this.GetChild("n17").asButton.onClick.Add(OnGuildSetUp);
        }
        else
        {
            this.GetChild("n18").visible = false;
//			this.GetChild ("n21").visible = true;
            haveGuild            = false;
            guildModel.guildHave = false;
//			this.GetChild ("n8").asGroup.visible = false;
        }
        guildModel.word_guild_list = (object[])(data ["guild_rank"]);
        guildModel.SetGuildList((object[])(data ["guild_rank"]));
        if (jiaru)
        {
            string str = "";
            str = guildModel.my_guild_info == null ? " " : guildModel.my_guild_info["name"].ToString();
            ViewManager.inst.ShowText(Tools.GetMessageById("20168", new object[] { str }));
            jiaru = false;
        }
        if (tipSetUp)
        {
            tipSetUp = false;
            OnGuildSetUp();
        }
        Tab_1();
    }