Exemplo n.º 1
0
 /** button点击事件 */
 public override void buttonEventBase(GameObject gameObj)
 {
     base.buttonEventBase(gameObj);
     if (gameObj.name == "close")
     {
         finishWindow();
     }
     else if (gameObj.name == "buttonSubmit")
     {
         if (ShieldManagerment.Instance.isContainShield2(input.value))
         {
             MessageWindow.ShowAlert(LanguageConfigManager.Instance.getLanguage("s0279"));
             return;
         }
         GuildNoticeAmendFPort fport = FPortManager.Instance.getFPort("GuildNoticeAmendFPort") as GuildNoticeAmendFPort;
         fport.access(input.value, () => {
             if (fatherWindow is GuildMainWindow)
             {
                 GuildMainWindow gmw = fatherWindow as GuildMainWindow;
                 gmw.UpdateGuildContent();
                 finishWindow();
             }
             else if (fatherWindow is GuildFightMainWindow)
             {
                 GuildFightMainWindow gmw = fatherWindow as GuildFightMainWindow;
                 gmw.updateBaseInfo();
                 finishWindow();
             }
         });
     }
 }
Exemplo n.º 2
0
 /** 激活 */
 protected override void DoEnable()
 {
     base.DoEnable();
     if (fatherWindow is GuildMainWindow)
     {
         GuildMainWindow win = fatherWindow as GuildMainWindow;
         UiManager.Instance.backGround.switchSynToDynamicBackground(win.launcherPanel, "gangBG", BackGroundCtrl.gangSize);
     }
 }
Exemplo n.º 3
0
    //更新公会贡献值
    public void updateContrition(int value)
    {
        guild.contributioning = value;
        GuildMainWindow gmw = UiManager.Instance.getWindow <GuildMainWindow> ();

        if (gmw != null)
        {
            gmw.UpdateGuildContent();
        }
    }
Exemplo n.º 4
0
    /** 激活 */
    protected override void DoEnable()
    {
        base.DoEnable();
        GuildMainWindow gmw = UiManager.Instance.getWindow <GuildMainWindow> ();

        if (gmw != null)
        {
            UiManager.Instance.backGround.switchSynToDynamicBackground(gmw.launcherPanel, "gangBG", BackGroundCtrl.gangSize);
        }
    }
Exemplo n.º 5
0
    /// <summary>
    /// 回调
    /// </summary>
    private void renameCallBack(string newName)
    {
        MaskWindow.UnlockUI();
        GuildManagerment.Instance.getGuild().name        = newName;
        GuildManagerment.Instance.getGuild().isCanRename = false;
        GuildMainWindow mainWindow = UiManager.Instance.getWindow <GuildMainWindow> ();

        this.finishWindow();
        if (mainWindow != null)
        {
            mainWindow.UpdateUI();
        }
    }