private void logoutClick()
 {
     GameEngine.Instance.playInterfaceSound("AutoSelectVillageAreaPopup_logout");
     this.m_parent.closing = true;
     GameEngine.Instance.closeNoVillagePopup(false);
     LoggingOutPopup.open(true, false, false, false, false, false, false, 0, 100, false, false, false, false, false, false, 500, 500, 500, 500, 250);
 }
 public static void open(bool manual, bool autoScout, bool autoTrade, bool autoAttack, bool autoAttackWolf, bool autoAttackBandit, bool autoAttackAI, int resourceType, int percent, bool autoRecruit, bool autoRecruitPeasant, bool autoRecruitArchers, bool autoRecruitPikemen, bool autoRecruitSwordsmen, bool autoRecruitCatapults, int autoRecruitPeasant_Cap, int autoRecruitArchers_Cap, int autoRecruitPikemen_Cap, int autoRecruitSwordsmen_Cap, int autoRecruitCatapults_Cap)
 {
     loggingOut = true;
     LoggingOutPopup popup = new LoggingOutPopup();
     popup.doOpen(manual, autoScout, autoTrade, autoAttack, autoAttackWolf, autoAttackBandit, autoAttackAI, resourceType, percent, autoRecruit, autoRecruitPeasant, autoRecruitArchers, autoRecruitPikemen, autoRecruitSwordsmen, autoRecruitCatapults, autoRecruitPeasant_Cap, autoRecruitArchers_Cap, autoRecruitPikemen_Cap, autoRecruitSwordsmen_Cap, autoRecruitCatapults_Cap);
     popup.Show();
 }
示例#3
0
        public static void open(bool manual, bool autoScout, bool autoTrade, bool autoAttack, bool autoAttackWolf, bool autoAttackBandit, bool autoAttackAI, int resourceType, int percent, bool autoRecruit, bool autoRecruitPeasant, bool autoRecruitArchers, bool autoRecruitPikemen, bool autoRecruitSwordsmen, bool autoRecruitCatapults, int autoRecruitPeasant_Cap, int autoRecruitArchers_Cap, int autoRecruitPikemen_Cap, int autoRecruitSwordsmen_Cap, int autoRecruitCatapults_Cap)
        {
            loggingOut = true;
            LoggingOutPopup popup = new LoggingOutPopup();

            popup.doOpen(manual, autoScout, autoTrade, autoAttack, autoAttackWolf, autoAttackBandit, autoAttackAI, resourceType, percent, autoRecruit, autoRecruitPeasant, autoRecruitArchers, autoRecruitPikemen, autoRecruitSwordsmen, autoRecruitCatapults, autoRecruitPeasant_Cap, autoRecruitArchers_Cap, autoRecruitPikemen_Cap, autoRecruitSwordsmen_Cap, autoRecruitCatapults_Cap);
            popup.Show();
        }
 private void NewSelectVillageAreaWindow_FormClosing(object sender, FormClosingEventArgs e)
 {
     if ((e.CloseReason == CloseReason.UserClosing) && !this.closing)
     {
         this.closing = true;
         GameEngine.Instance.closeNoVillagePopup(false);
         LoggingOutPopup.open(true, false, false, false, false, false, false, 0, 100, false, false, false, false, false, false, 500, 500, 500, 500, 250);
     }
 }