Пример #1
0
        private static void InspectMenhirActionClick(object sender, EventArgs e)
        {
            var l = LocationsHelper.GetLCControl(((LocationSelectionButton)sender).LocationNumber);

            if (MessageBox.Show(MenhirHelper.GetMenhirActivationDescription(l), "", MessageBoxButtons.YesNo) == DialogResult.Yes)
            {
                //_MainForm.Instance.LocationCardsPanel.ActivateMenhir(l,l.men
            }
        }
Пример #2
0
        public static void DisableMoveMode()
        {
            IsTravelModeEnabled = !IsTravelModeEnabled;

            mainActionButtons.ForEach(_ => _.Enable());
            var b = mainActionButtons.First(_ => _.ActionType == ActionType.Travel);

            b.Text = "Travel";

            foreach (var item in _MainForm.Instance.LocationCardsPanel.LocationCards)
            {
                var l = LocationsHelper.GetLCControl(item.LocationNumber);
                if (l.LocationActionBtn.Visible)
                {
                    l.LocationActionBtn.Hide();
                    l.LocationActionBtn.Click -= MoveClick;
                }
            }

            _MainForm.Instance.Refresh();
        }
Пример #3
0
 public void AddLocationCardToMap(int locationNumber, int alsoActivateMenhirWithValue = -1)
 {
     AddLocationCardToMap(LocationsHelper.GetLCControl(locationNumber), alsoActivateMenhirWithValue);
 }