示例#1
0
        private void FinishButtonClicked(UIMouseEvent evt, UIElement listeningElement)
        {
            Monitor.Log($"Attaching mouse, ShouldLock={ShouldLockMouse}");

            //miceManager.RegisterMice();
            miceManager.AttachMouseButtonClicked();


            if (ShouldLockMouse)
            {
                miceManager.LockMouse();
            }

            Terraria.Main.PlaySound(10);

            Monitor.Log("Please click again", LogLevel.ChatBox);

            IsActive = false;
        }