private idUserInterface AddRenderGui(string name, idDict args) { idUserInterface gui = idR.UIManager.FindInterface(name, true, args.ContainsKey("gui_parm")); UpdateGuiParams(gui, args); return(gui); }
private void UpdateGuiParams(idUserInterface gui, idDict args) { if ((gui == null) || (args == null)) { return; } foreach (KeyValuePair <string, string> kvp in args.MatchPrefix("gui_parm")) { gui.State.Set(kvp.Key, kvp.Value); } gui.State.Set("noninteractive", args.GetBool("gui_noninteractive")); gui.StateChanged(idR.Game.Time); }