예제 #1
0
        private idUserInterface AddRenderGui(string name, idDict args)
        {
            idUserInterface gui = idR.UIManager.FindInterface(name, true, args.ContainsKey("gui_parm"));

            UpdateGuiParams(gui, args);

            return(gui);
        }
예제 #2
0
        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);
        }