/// <summary> /// Runs message main loop. /// </summary> public static void RunMessage(MessageSceneController controller) { // BeginMessageMainLoop //MessageMainLoop(controller); // EndMessageMainLoop }
// -------------------------------------------------- // 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); }
private static void MessageMainLoop(MessageSceneController controller) { while (!controller.HasResult()) { } }