Exemplo n.º 1
0
 public static void PreparePopup(LMS_GuiPopup popup, string text, string title, Color c, PopupHandler handler = null)
 {
     popup.SetText(text);
     popup.SetTitle(title);
     popup.SetPopupOutlineColor(c);
     popup.SetHandle(handler);
 }
    public void ShowPopup(string name, string txt, string caption, string col, PopupHandler hnd)
    {
        LMS_GuiScreen scr = Screens[name];

        if (scr.IsPopup)
        {
            LMS_GuiPopup p = scr as LMS_GuiPopup;
            LMS_GuiBaseUtils.PreparePopup(p, txt, caption, LMS_GuiBaseUtils.StringToColor(col), hnd);
            p.ShowScreen();
        }
    }