public static bool fullWindowDocumentationClickOpen(GameView.InspectionDelegate function, string toolTip = "", int buttonSize = 20) { if (toolTip.IsNullOrEmpty()) { toolTip = icon.Question.GetDescription(); } if (fullWindowDocumentationClickOpen(toolTip, buttonSize)) { PopUpService.inspectDocumentationDelegate = function; PopUpService.InitiatePopUp(); return(true); } return(false); }
public static bool fullWindowDocumentationWithLinkClickOpen(this string text, string link, string linkName = null, string tip = "", int buttonSize = 20) { if (tip.IsNullOrEmpty()) { tip = icon.Question.GetDescription(); } if (fullWindowDocumentationClickOpen(tip, buttonSize)) { PopUpService.popUpText = text; PopUpService.InitiatePopUp(); PopUpService.relatedLink = link; PopUpService.relatedLinkName = linkName.IsNullOrEmpty() ? link : linkName; return(true); } return(false); }
public static void fullWindowAreYouSureOpen(Action action, string header = "", string text = "") { if (header.IsNullOrEmpty()) { header = Msg.AreYouSure.GetText(); } if (text.IsNullOrEmpty()) { text = Msg.ClickYesToConfirm.GetText(); } PopUpService.areYouSureFunk = action; PopUpService.popUpText = text; PopUpService.popUpHeader = header; PopUpService.InitiatePopUp(); }
public static bool fullWindowDocumentationClickOpen(this string text, string toolTip = "", int buttonSize = 20, icon clickIcon = icon.Question) { bool gotHeadline = false; if (toolTip.IsNullOrEmpty()) { toolTip = Msg.ToolTip.GetDescription(); } else { gotHeadline = true; } if (fullWindowDocumentationClickOpen(toolTip, buttonSize, clickIcon)) { PopUpService.popUpText = text; PopUpService.popUpHeader = gotHeadline ? toolTip : ""; PopUpService.InitiatePopUp(); return(true); } return(false); }
public static void FullWindwDocumentationOpen(string text) { PopUpService.popUpText = text; PopUpService.InitiatePopUp(); }