Esempio n. 1
0
        private void processDebugInput(string input)
        {
            Game1.exitActiveMenu();
            DebugMenu.lastDebugInput = input;

            string newInput = input.Trim();

            if (newInput == "")
            {
                return;
            }

            DebugEventArgs args = new DebugEventArgs(newInput);

            EventCommon.SafeCancellableInvoke(OnDebugInput, null, args);

            if (!args.Cancel)
            {
                Game1.game1.parseDebugInput(newInput);
            }
        }
Esempio n. 2
0
 public static bool draw([ThisBind] object @this, [InputBind(typeof(SpriteBatch), "b")] SpriteBatch b)
 {
     return(ChatBoxDraw.GetInvocationList().Length <= 1 || EventCommon.SafeCancellableInvoke(ChatBoxDraw, null, new ChatBoxDrawEventArgs((ChatBox)@this, b)));
 }