Example #1
0
        // Function from file: mulebot.dm
        public override int ui_interact(dynamic user = null, string ui_key = null, Tgui ui = null, bool?force_open = null, Tgui master_ui = null, UiState state = null)
        {
            ui_key     = ui_key ?? "main";
            force_open = force_open ?? false;
            state      = state ?? GlobalVars.default_state;

            ui = GlobalVars.SStgui.try_update_ui(user, this, ui_key, ui, force_open);

            if (!(ui != null))
            {
                ui = new Tgui(user, this, ui_key, "mulebot", this.name, 600, 375, master_ui, state);
                ui.open();
            }
            return(0);
        }
Example #2
0
        // Function from file: radio.dm
        public override int ui_interact(dynamic user = null, string ui_key = null, Tgui ui = null, bool?force_open = null, Tgui master_ui = null, UiState state = null)
        {
            ui_key     = ui_key ?? "main";
            force_open = force_open ?? false;
            state      = state ?? GlobalVars.inventory_state;

            ui = GlobalVars.SStgui.try_update_ui(user, this, ui_key, ui, force_open);

            if (!(ui != null))
            {
                ui = new Tgui(user, this, ui_key, "radio", this.name, 370, this.channels.len * 22 + 220, master_ui, state);
                ui.open();
            }
            return(0);
        }
Example #3
0
        // Function from file: scrubber.dm
        public override int ui_interact(dynamic user = null, string ui_key = null, Tgui ui = null, bool?force_open = null, Tgui master_ui = null, UiState state = null)
        {
            ui_key     = ui_key ?? "main";
            force_open = force_open ?? false;
            state      = state ?? GlobalVars.physical_state;

            ui = GlobalVars.SStgui.try_update_ui(user, this, ui_key, ui, force_open);

            if (!(ui != null))
            {
                ui = new Tgui(user, this, ui_key, "portable_scrubber", this.name, 420, 335, master_ui, state);
                ui.open();
            }
            return(0);
        }
Example #4
0
        // Function from file: airlock_electronics.dm
        public override int ui_interact(dynamic user = null, string ui_key = null, Tgui ui = null, bool?force_open = null, Tgui master_ui = null, UiState state = null)
        {
            ui_key     = ui_key ?? "main";
            force_open = force_open ?? false;
            state      = state ?? GlobalVars.hands_state;

            GlobalVars.SStgui.try_update_ui(user, this, ui_key, ui, force_open);

            if (!(ui != null))
            {
                ui = new Tgui(user, this, ui_key, "airlock_electronics", this.name, 975, 420, master_ui, state);
                ui.open();
            }
            return(0);
        }
Example #5
0
        // Function from file: wires.dm
        public override int ui_interact(dynamic user = null, string ui_key = null, Tgui ui = null, bool?force_open = null, Tgui master_ui = null, UiState state = null)
        {
            ui_key     = ui_key ?? "wires";
            force_open = force_open ?? false;
            state      = state ?? GlobalVars.physical_state;

            ui = GlobalVars.SStgui.try_update_ui(user, this, ui_key, ui, force_open);

            if (!(ui != null))
            {
                ui = new Tgui(user, this, ui_key, "wires", "" + this.holder.name + " wires", 350, this.wires.len * 30 + 150, master_ui, state);
                ui.open();
            }
            return(0);
        }
Example #6
0
        // Function from file: uplink.dm
        public override int ui_interact(dynamic user = null, string ui_key = null, Tgui ui = null, bool?force_open = null, Tgui master_ui = null, UiState state = null)
        {
            ui_key     = ui_key ?? "main";
            force_open = force_open ?? false;
            state      = state ?? GlobalVars.inventory_state;

            ui = GlobalVars.SStgui.try_update_ui(user, this, ui_key, ui, force_open);

            if (!(ui != null))
            {
                ui = new Tgui(user, this, ui_key, "uplink", this.name, 450, 750, master_ui, state);
                ui.set_autoupdate(GlobalVars.FALSE);
                ui.set_style("syndicate");
                ui.open();
            }
            return(0);
        }