Exemplo n.º 1
0
        private void rbFollowTheLeader_CheckedChanged(object sender, EventArgs e)
        {
            if (changingInternally)
            {
                return;
            }

            if (rbFollowTheLeader.Checked)
            {
                MiniGrouperScript?.ClearLeaderMovementCache();
                UpdateMovementMode();
            }
        }
Exemplo n.º 2
0
        private void StartEditMode()
        {
            MiniGrouperScript?.ClearLeaderMovementCache();
            MiniGrouperScript?.StartEditing();
            if (MiniGrouperScript != null && !alreadyShowedDiscoverabilityHint)
            {
                alreadyShowedDiscoverabilityHint = true;
                Talespire.Minis.Speak(MiniGrouperScript.OwnerID, "Click minis to include/exclude. Move me (to position the leader).");
            }

            btnMatchAltitude.Visible = false;
            editing = true;
            PersistentEffectsManager.SuppressPersistentEffectUI = true;              // So we no longer show or hide the PE UI when selecting minis.
            lbInstructions.Text = "Click a mini to add or remove it from the group.";
            btnEdit.Text        = "Done";
            btnEdit.BackColor   = System.Drawing.Color.DarkRed;
            btnEdit.ForeColor   = System.Drawing.Color.White;
        }