Пример #1
0
        /// <summary>
        /// Runs message main loop.
        /// </summary>
        public static void RunMessage(MessageSceneController controller)
        {
            // BeginMessageMainLoop

            //MessageMainLoop(controller);

            // EndMessageMainLoop
        }
Пример #2
0
        // --------------------------------------------------
        // Methods
        // --------------------------------------------------

        public static MessageResult Show(String text, String caption = "", MessageButtons messageButtons = MessageButtons.Accept,
                                         MessageIcon messageIcon     = MessageIcon.None,
                                         MessageDefaultButton messageDefaultButton = MessageDefaultButton.Button1)
        {
            MessageSceneController msc = new MessageSceneController(
                ResourceLoader.Load("res://Content/Scene/Message.tscn") as PackedScene,
                new MessageSettings {
                Text        = text, Caption = caption, MessageButtons = messageButtons,
                MessageIcon = messageIcon, MessageDefaultButton = messageDefaultButton
            }
                );

            msc.InitScene("root/Main");
            Application.RunMessage(msc);

            return(msc.MessageResult);
        }
Пример #3
0
 private static void MessageMainLoop(MessageSceneController controller)
 {
     while (!controller.HasResult())
     {
     }
 }