Example #1
0
        // Function from file: html_interface.dm
        public virtual dynamic createWindow(dynamic hclient = null)
        {
            ByTable _params = null;

            Interface13.WindowClone(hclient.client, "window", new Txt("browser_").Ref(this).ToString());
            _params = new ByTable()
                      .Set("size", "" + this.width + "x" + this.height)
                      .Set("statusbar", "false")
                      .Set("on-close", new Txt("byond://?src=").Ref(this).str("&html_interface_action=onclose").ToString())
            ;

            if (Lang13.Bool(hclient.client.hi_last_pos))
            {
                _params["pos"] = "" + hclient.client.hi_last_pos;
            }
            Interface13.WindowSet(hclient.client, new Txt("browser_").Ref(this).ToString(), String13.MakeUrlParams(_params));
            Interface13.WindowSet(hclient.client, new Txt("browser_").Ref(this).str(".browser").ToString(), String13.MakeUrlParams(new ByTable()
                                                                                                                                   .Set("parent", new Txt("browser_").Ref(this).ToString())
                                                                                                                                   .Set("type", "browser")
                                                                                                                                   .Set("pos", "0,0")
                                                                                                                                   .Set("size", "" + this.width + "x" + this.height)
                                                                                                                                   .Set("anchor1", "0,0")
                                                                                                                                   .Set("anchor2", "100,100")
                                                                                                                                   .Set("use-title", "true")
                                                                                                                                   .Set("auto-format", "false")
                                                                                                                                   ));
            return(null);
        }