示例#1
0
文件: Application.cs 项目: Neriok/RC
        /// <summary>
        /// Runs message main loop.
        /// </summary>
        public static void RunMessage(MessageSceneController controller)
        {
            // BeginMessageMainLoop

            //MessageMainLoop(controller);

            // EndMessageMainLoop
        }
示例#2
0
文件: Message.cs 项目: Neriok/RC
        // --------------------------------------------------
        // 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
文件: Application.cs 项目: Neriok/RC
 private static void MessageMainLoop(MessageSceneController controller)
 {
     while (!controller.HasResult())
     {
     }
 }