public override void buttonEventBase(GameObject gameObj)
    {
        base.buttonEventBase(gameObj);

        if (gameObj.name == "createButton")
        {
            finishWindow();
            EventDelegate.Add(OnHide, () => {
                if (UserManager.Instance.self.getUserLevel() < GuildManagerment.CREATEGUILDLEVEL)
                {
                    UiManager.Instance.openDialogWindow <MessageWindow> ((win) => {
                        win.initWindow(1, LanguageConfigManager.Instance.getLanguage("s0093"), null, LanguageConfigManager.Instance.getLanguage("Guild_2", GuildManagerment.CREATEGUILDLEVEL.ToString()), null);
                    });
                    return;
                }
                UiManager.Instance.openWindow <GuildCreateWindow> ();
            });
        }
        else if (gameObj.name == "applyButton")
        {
            this.finishWindow();
            UiManager.Instance.openWindow <GuildApplyWindow> ();
        }
        else if (gameObj.name == "inviteButton")
        {
            GuildGetInviteFPort fport = FPortManager.Instance.getFPort("GuildGetInviteFPort") as GuildGetInviteFPort;
            fport.access(openInviteWindow);
        }
        else if (gameObj.name == "close")
        {
            finishWindow();
        }
    }
Exemple #2
0
 //工会邀请
 void getGuildInviate()
 {
     SetLoginProgress(1, false);
     if (GuildManagerment.Instance.getGuild() == null)
     {
         GuildGetInviteFPort fport = FPortManager.Instance.getFPort("GuildGetInviteFPort") as GuildGetInviteFPort;
         fport.access(getGuildApply);
     }
     else
     {
         getGuildApply();
     }
 }