Пример #1
0
 private void action_TestDash()
 {
     if (!GameModeDash.ValidateIngame())
     {
         if (LocalizedMessageBox.Show(MainForm.Instance, Localizer.LocalizeCommon("MSG_DESC_DASH_TEST_INVALID"), Localizer.Localize("ERROR"), Localizer.Localize("Generic", "GENERIC_YES"), Localizer.Localize("Generic", "GENERIC_NO"), null, MessageBoxIcon.Hand, MessageBoxDefaultButton.Button1) == DialogResult.Yes)
         {
             MainForm.Instance.CurrentTool = ToolValidation.Instance;
         }
         return;
     }
     Editor.EnterIngame("FCXDash");
 }
Пример #2
0
 private void UpdateNodeUI(int nodeIndex)
 {
     GameModeDash.SetDebugMode(nodeIndex);
     if (nodeIndex == -1)
     {
         this.m_nodeParams = null;
         this.EnableNodeUI(false);
         return;
     }
     this.m_nodeParams             = GameModeDash.GetNodeParams(nodeIndex);
     this.m_paramAssaultTime.Value = this.m_nodeParams.AssaultTime;
     this.EnableNodeUI(true);
 }