Exemplo n.º 1
0
        // Function from file: human.dm
        public Hud_Human(Mob_Living_Carbon_Human owner = null, string ui_style = null) : base(owner)
        {
            ui_style = ui_style ?? "icons/mob/screen_midnight.dmi";

            Obj_Screen           _using  = null;
            Obj_Screen_Inventory inv_box = null;

            // Warning: Super call was HERE! If anything above HERE is needed by the super call, it might break!;
            _using            = new Obj_Screen_ActIntent();
            _using.icon_state = this.mymob.a_intent;
            this.static_inventory.Add(_using);
            this.action_intent = _using;
            _using             = new Obj_Screen_MovIntent();
            _using.icon        = ui_style;
            _using.icon_state  = (this.mymob.m_intent == "run" ? "running" : "walking");
            _using.screen_loc  = "EAST-2:26,SOUTH:5";
            this.static_inventory.Add(_using);
            _using            = new Obj_Screen_Drop();
            _using.icon       = ui_style;
            _using.screen_loc = "EAST-1:28,SOUTH+1:7";
            this.static_inventory.Add(_using);
            inv_box            = new Obj_Screen_Inventory();
            inv_box.name       = "i_clothing";
            inv_box.icon       = ui_style;
            inv_box.slot_id    = 14;
            inv_box.icon_state = "uniform";
            inv_box.screen_loc = "WEST:6,SOUTH+1:7";
            inv_box.layer      = 19;
            this.toggleable_inventory.Add(inv_box);
            inv_box            = new Obj_Screen_Inventory();
            inv_box.name       = "o_clothing";
            inv_box.icon       = ui_style;
            inv_box.slot_id    = 13;
            inv_box.icon_state = "suit";
            inv_box.screen_loc = "WEST+1:8,SOUTH+1:7";
            inv_box.layer      = 19;
            this.toggleable_inventory.Add(inv_box);
            inv_box            = new Obj_Screen_Inventory();
            inv_box.name       = "r_hand";
            inv_box.icon       = ui_style;
            inv_box.icon_state = "hand_r_inactive";

            if (this.mymob != null && !this.mymob.hand)
            {
                inv_box.icon_state = "hand_r_active";
            }
            inv_box.screen_loc     = "CENTER:-16,SOUTH:5";
            inv_box.slot_id        = 5;
            inv_box.layer          = 19;
            this.r_hand_hud_object = inv_box;

            if (Lang13.Bool(owner.handcuffed))
            {
                inv_box.overlays.Add(new Image("icons/mob/screen_gen.dmi", null, "markus"));
            }
            this.static_inventory.Add(inv_box);
            inv_box            = new Obj_Screen_Inventory();
            inv_box.name       = "l_hand";
            inv_box.icon       = ui_style;
            inv_box.icon_state = "hand_l_inactive";

            if (this.mymob != null && this.mymob.hand)
            {
                inv_box.icon_state = "hand_l_active";
            }
            inv_box.screen_loc     = "CENTER: 16,SOUTH:5";
            inv_box.slot_id        = 4;
            inv_box.layer          = 19;
            this.l_hand_hud_object = inv_box;

            if (Lang13.Bool(owner.handcuffed))
            {
                inv_box.overlays.Add(new Image("icons/mob/screen_gen.dmi", null, "gabrielle"));
            }
            this.static_inventory.Add(inv_box);
            _using            = new Obj_Screen_Inventory();
            _using.name       = "hand";
            _using.icon       = ui_style;
            _using.icon_state = "swap_1";
            _using.screen_loc = "CENTER:-16,SOUTH+1:5";
            _using.layer      = 19;
            this.static_inventory.Add(_using);
            _using            = new Obj_Screen_Inventory();
            _using.name       = "hand";
            _using.icon       = ui_style;
            _using.icon_state = "swap_2";
            _using.screen_loc = "CENTER: 16,SOUTH+1:5";
            _using.layer      = 19;
            this.static_inventory.Add(_using);
            inv_box            = new Obj_Screen_Inventory();
            inv_box.name       = "id";
            inv_box.icon       = ui_style;
            inv_box.icon_state = "id";
            inv_box.screen_loc = "CENTER-4:12,SOUTH:5";
            inv_box.slot_id    = 7;
            inv_box.layer      = 19;
            this.static_inventory.Add(inv_box);
            inv_box            = new Obj_Screen_Inventory();
            inv_box.name       = "mask";
            inv_box.icon       = ui_style;
            inv_box.icon_state = "mask";
            inv_box.screen_loc = "WEST+1:8,SOUTH+2:9";
            inv_box.slot_id    = 2;
            inv_box.layer      = 19;
            this.toggleable_inventory.Add(inv_box);
            inv_box            = new Obj_Screen_Inventory();
            inv_box.name       = "back";
            inv_box.icon       = ui_style;
            inv_box.icon_state = "back";
            inv_box.screen_loc = "CENTER-2:14,SOUTH:5";
            inv_box.slot_id    = 1;
            inv_box.layer      = 19;
            this.static_inventory.Add(inv_box);
            inv_box            = new Obj_Screen_Inventory();
            inv_box.name       = "storage1";
            inv_box.icon       = ui_style;
            inv_box.icon_state = "pocket";
            inv_box.screen_loc = "CENTER+1:18,SOUTH:5";
            inv_box.slot_id    = 15;
            inv_box.layer      = 19;
            this.static_inventory.Add(inv_box);
            inv_box            = new Obj_Screen_Inventory();
            inv_box.name       = "storage2";
            inv_box.icon       = ui_style;
            inv_box.icon_state = "pocket";
            inv_box.screen_loc = "CENTER+2:20,SOUTH:5";
            inv_box.slot_id    = 16;
            inv_box.layer      = 19;
            this.static_inventory.Add(inv_box);
            inv_box            = new Obj_Screen_Inventory();
            inv_box.name       = "suit storage";
            inv_box.icon       = ui_style;
            inv_box.icon_state = "suit_storage";
            inv_box.screen_loc = "CENTER-5:10,SOUTH:5";
            inv_box.slot_id    = 17;
            inv_box.layer      = 19;
            this.static_inventory.Add(inv_box);
            _using            = new Obj_Screen_Resist();
            _using.icon       = ui_style;
            _using.screen_loc = "EAST-2:26,SOUTH+1:7";
            this.hotkeybuttons.Add(_using);
            _using            = new Obj_Screen_Human_Toggle();
            _using.icon       = ui_style;
            _using.screen_loc = "WEST:6,SOUTH:5";
            this.static_inventory.Add(_using);
            _using            = new Obj_Screen_Human_Equip();
            _using.icon       = ui_style;
            _using.screen_loc = "CENTER:-16,SOUTH+1:5";
            this.static_inventory.Add(_using);
            inv_box            = new Obj_Screen_Inventory();
            inv_box.name       = "gloves";
            inv_box.icon       = ui_style;
            inv_box.icon_state = "gloves";
            inv_box.screen_loc = "WEST+2:10,SOUTH+1:7";
            inv_box.slot_id    = 10;
            inv_box.layer      = 19;
            this.toggleable_inventory.Add(inv_box);
            inv_box            = new Obj_Screen_Inventory();
            inv_box.name       = "eyes";
            inv_box.icon       = ui_style;
            inv_box.icon_state = "glasses";
            inv_box.screen_loc = "WEST:6,SOUTH+2:9";
            inv_box.slot_id    = 9;
            inv_box.layer      = 19;
            this.toggleable_inventory.Add(inv_box);
            inv_box            = new Obj_Screen_Inventory();
            inv_box.name       = "ears";
            inv_box.icon       = ui_style;
            inv_box.icon_state = "ears";
            inv_box.screen_loc = "WEST+2:10,SOUTH+2:9";
            inv_box.slot_id    = 8;
            inv_box.layer      = 19;
            this.toggleable_inventory.Add(inv_box);
            inv_box            = new Obj_Screen_Inventory();
            inv_box.name       = "head";
            inv_box.icon       = ui_style;
            inv_box.icon_state = "head";
            inv_box.screen_loc = "WEST+1:8,SOUTH+3:11";
            inv_box.slot_id    = 11;
            inv_box.layer      = 19;
            this.toggleable_inventory.Add(inv_box);
            inv_box            = new Obj_Screen_Inventory();
            inv_box.name       = "shoes";
            inv_box.icon       = ui_style;
            inv_box.icon_state = "shoes";
            inv_box.screen_loc = "WEST+1:8,SOUTH:5";
            inv_box.slot_id    = 12;
            inv_box.layer      = 19;
            this.toggleable_inventory.Add(inv_box);
            inv_box            = new Obj_Screen_Inventory();
            inv_box.name       = "belt";
            inv_box.icon       = ui_style;
            inv_box.icon_state = "belt";
            inv_box.screen_loc = "CENTER-3:14,SOUTH:5";
            inv_box.slot_id    = 6;
            inv_box.layer      = 19;
            this.static_inventory.Add(inv_box);
            this.throw_icon            = new Obj_Screen_ThrowCatch();
            this.throw_icon.icon       = ui_style;
            this.throw_icon.screen_loc = "EAST-1:28,SOUTH+1:7";
            this.hotkeybuttons.Add(this.throw_icon);
            this.internals = new Obj_Screen_Internals();
            this.infodisplay.Add(this.internals);
            this.healths = new Obj_Screen_Healths();
            this.infodisplay.Add(this.healths);
            this.healthdoll = new Obj_Screen_Healthdoll();
            this.infodisplay.Add(this.healthdoll);
            this.pull_icon      = new Obj_Screen_Pull();
            this.pull_icon.icon = ui_style;
            this.pull_icon.update_icon(this.mymob);
            this.pull_icon.screen_loc = "EAST-2:26,SOUTH+1:7";
            this.static_inventory.Add(this.pull_icon);
            this.lingchemdisplay = new Obj_Screen_Ling_Chems();
            this.infodisplay.Add(this.lingchemdisplay);
            this.lingstingdisplay = new Obj_Screen_Ling_Sting();
            this.infodisplay.Add(this.lingstingdisplay);
            this.zone_select      = new Obj_Screen_ZoneSel();
            this.zone_select.icon = ui_style;
            this.zone_select.update_icon(this.mymob);
            this.static_inventory.Add(this.zone_select);
            this.inventory_shown = false;
            return;
        }
Exemplo n.º 2
0
        // Function from file: monkey.dm
        public Hud_Monkey(Mob_Living_Carbon_Monkey owner = null, string ui_style = null) : base(owner)
        {
            ui_style = ui_style ?? "icons/mob/screen_midnight.dmi";

            Obj_Screen           _using  = null;
            Obj_Screen_Inventory inv_box = null;

            // Warning: Super call was HERE! If anything above HERE is needed by the super call, it might break!;
            _using            = new Obj_Screen_ActIntent();
            _using.icon       = ui_style;
            _using.icon_state = this.mymob.a_intent;
            _using.screen_loc = "EAST-3:24,SOUTH:5";
            this.static_inventory.Add(_using);
            this.action_intent = _using;
            _using             = new Obj_Screen_MovIntent();
            _using.icon        = ui_style;
            _using.icon_state  = (this.mymob.m_intent == "run" ? "running" : "walking");
            _using.screen_loc  = "EAST-2:26,SOUTH:5";
            this.static_inventory.Add(_using);
            _using            = new Obj_Screen_Drop();
            _using.icon       = ui_style;
            _using.screen_loc = "EAST-1:28,SOUTH+1:7";
            this.static_inventory.Add(_using);
            inv_box            = new Obj_Screen_Inventory();
            inv_box.name       = "r_hand";
            inv_box.icon       = ui_style;
            inv_box.icon_state = "hand_r_inactive";

            if (this.mymob != null && !this.mymob.hand)
            {
                inv_box.icon_state = "hand_r_active";
            }
            inv_box.screen_loc     = "CENTER:-16,SOUTH:5";
            inv_box.slot_id        = 5;
            inv_box.layer          = 19;
            this.r_hand_hud_object = inv_box;

            if (Lang13.Bool(owner.handcuffed))
            {
                inv_box.overlays.Add(new Image("icons/mob/screen_gen.dmi", null, "markus"));
            }
            this.static_inventory.Add(inv_box);
            inv_box            = new Obj_Screen_Inventory();
            inv_box.name       = "l_hand";
            inv_box.icon       = ui_style;
            inv_box.icon_state = "hand_l_inactive";

            if (this.mymob != null && this.mymob.hand)
            {
                inv_box.icon_state = "hand_l_active";
            }
            inv_box.screen_loc     = "CENTER: 16,SOUTH:5";
            inv_box.slot_id        = 4;
            inv_box.layer          = 19;
            this.l_hand_hud_object = inv_box;

            if (Lang13.Bool(owner.handcuffed))
            {
                inv_box.overlays.Add(new Image("icons/mob/screen_gen.dmi", null, "gabrielle"));
            }
            this.static_inventory.Add(inv_box);
            _using            = new Obj_Screen_Inventory();
            _using.name       = "hand";
            _using.icon       = ui_style;
            _using.icon_state = "swap_1_m";
            _using.screen_loc = "CENTER:-16,SOUTH+1:5";
            _using.layer      = 19;
            this.static_inventory.Add(_using);
            _using            = new Obj_Screen_Inventory();
            _using.name       = "hand";
            _using.icon       = ui_style;
            _using.icon_state = "swap_2";
            _using.screen_loc = "CENTER: 16,SOUTH+1:5";
            _using.layer      = 19;
            this.static_inventory.Add(_using);
            inv_box            = new Obj_Screen_Inventory();
            inv_box.name       = "mask";
            inv_box.icon       = ui_style;
            inv_box.icon_state = "mask";
            inv_box.screen_loc = "CENTER-3:14,SOUTH:5";
            inv_box.slot_id    = 2;
            inv_box.layer      = 19;
            this.static_inventory.Add(inv_box);
            inv_box            = new Obj_Screen_Inventory();
            inv_box.name       = "head";
            inv_box.icon       = ui_style;
            inv_box.icon_state = "head";
            inv_box.screen_loc = "CENTER-4:13,SOUTH:5";
            inv_box.slot_id    = 11;
            inv_box.layer      = 19;
            this.static_inventory.Add(inv_box);
            inv_box            = new Obj_Screen_Inventory();
            inv_box.name       = "back";
            inv_box.icon       = ui_style;
            inv_box.icon_state = "back";
            inv_box.screen_loc = "CENTER-2:14,SOUTH:5";
            inv_box.slot_id    = 1;
            inv_box.layer      = 19;
            this.static_inventory.Add(inv_box);
            this.throw_icon            = new Obj_Screen_ThrowCatch();
            this.throw_icon.icon       = ui_style;
            this.throw_icon.screen_loc = "EAST-1:28,SOUTH+1:7";
            this.hotkeybuttons.Add(this.throw_icon);
            this.internals = new Obj_Screen_Internals();
            this.infodisplay.Add(this.internals);
            this.healths = new Obj_Screen_Healths();
            this.infodisplay.Add(this.healths);
            this.pull_icon      = new Obj_Screen_Pull();
            this.pull_icon.icon = ui_style;
            this.pull_icon.update_icon(this.mymob);
            this.pull_icon.screen_loc = "EAST-2:26,SOUTH+1:7";
            this.static_inventory.Add(this.pull_icon);
            this.lingchemdisplay = new Obj_Screen_Ling_Chems();
            this.infodisplay.Add(this.lingchemdisplay);
            this.lingstingdisplay = new Obj_Screen_Ling_Sting();
            this.infodisplay.Add(this.lingstingdisplay);
            this.zone_select      = new Obj_Screen_ZoneSel();
            this.zone_select.icon = ui_style;
            this.zone_select.update_icon(this.mymob);
            this.static_inventory.Add(this.zone_select);
            this.mymob.client.screen = new ByTable();
            _using            = new Obj_Screen_Resist();
            _using.icon       = ui_style;
            _using.screen_loc = "EAST-2:26,SOUTH+1:7";
            this.hotkeybuttons.Add(_using);
            return;
        }
Exemplo n.º 3
0
        // Function from file: alien.dm
        public Hud_Alien(Mob_Living_Carbon_Alien_Humanoid owner = null) : base(owner)
        {
            Obj_Screen           _using  = null;
            Obj_Screen_Inventory inv_box = null;
            Mob H = null;

            // Warning: Super call was HERE! If anything above HERE is needed by the super call, it might break!;
            inv_box            = new Obj_Screen_Inventory();
            inv_box.name       = "r_hand";
            inv_box.icon       = "icons/mob/screen_alien.dmi";
            inv_box.icon_state = "hand_r_inactive";

            if (this.mymob != null && !this.mymob.hand)
            {
                inv_box.icon_state = "hand_r_active";
            }
            inv_box.screen_loc     = "CENTER:-16,SOUTH:5";
            inv_box.layer          = 19;
            inv_box.slot_id        = 5;
            this.r_hand_hud_object = inv_box;

            if (Lang13.Bool(owner.handcuffed))
            {
                inv_box.overlays.Add(new Image("icons/mob/screen_gen.dmi", null, "markus"));
            }
            this.static_inventory.Add(inv_box);
            inv_box            = new Obj_Screen_Inventory();
            inv_box.name       = "l_hand";
            inv_box.icon       = "icons/mob/screen_alien.dmi";
            inv_box.icon_state = "hand_l_inactive";

            if (this.mymob != null && this.mymob.hand)
            {
                inv_box.icon_state = "hand_l_active";
            }
            inv_box.screen_loc     = "CENTER: 16,SOUTH:5";
            inv_box.layer          = 19;
            inv_box.slot_id        = 4;
            this.l_hand_hud_object = inv_box;

            if (Lang13.Bool(owner.handcuffed))
            {
                inv_box.overlays.Add(new Image("icons/mob/screen_gen.dmi", null, "gabrielle"));
            }
            this.static_inventory.Add(inv_box);
            _using            = new Obj_Screen_Inventory();
            _using.name       = "hand";
            _using.icon       = "icons/mob/screen_alien.dmi";
            _using.icon_state = "swap_1";
            _using.screen_loc = "CENTER:-16,SOUTH+1:5";
            _using.layer      = 19;
            this.static_inventory.Add(_using);
            _using            = new Obj_Screen_Inventory();
            _using.name       = "hand";
            _using.icon       = "icons/mob/screen_alien.dmi";
            _using.icon_state = "swap_2";
            _using.screen_loc = "CENTER: 16,SOUTH+1:5";
            _using.layer      = 19;
            this.static_inventory.Add(_using);
            _using            = new Obj_Screen_ActIntent_Alien();
            _using.icon_state = this.mymob.a_intent;
            this.static_inventory.Add(_using);
            this.action_intent = _using;

            if (this.mymob is Mob_Living_Carbon_Alien_Humanoid_Hunter)
            {
                H = this.mymob;
                ((dynamic)H).leap_icon            = new Obj_Screen_Alien_Leap();
                ((dynamic)H).leap_icon.screen_loc = "CENTER+1:18,SOUTH:5";
                this.static_inventory.Add(((dynamic)H).leap_icon);
            }
            _using            = new Obj_Screen_Drop();
            _using.icon       = "icons/mob/screen_alien.dmi";
            _using.screen_loc = "EAST-1:28,SOUTH+1:7";
            this.static_inventory.Add(_using);
            _using            = new Obj_Screen_Resist();
            _using.icon       = "icons/mob/screen_alien.dmi";
            _using.screen_loc = "EAST-2:26,SOUTH+1:7";
            this.hotkeybuttons.Add(_using);
            this.throw_icon            = new Obj_Screen_ThrowCatch();
            this.throw_icon.icon       = "icons/mob/screen_alien.dmi";
            this.throw_icon.screen_loc = "EAST-1:28,SOUTH+1:7";
            this.hotkeybuttons.Add(this.throw_icon);
            this.pull_icon      = new Obj_Screen_Pull();
            this.pull_icon.icon = "icons/mob/screen_alien.dmi";
            this.pull_icon.update_icon(this.mymob);
            this.pull_icon.screen_loc = "EAST-2:26,SOUTH+1:7";
            this.static_inventory.Add(this.pull_icon);
            this.healths = new Obj_Screen_Healths_Alien();
            this.infodisplay.Add(this.healths);
            this.nightvisionicon = new Obj_Screen_Alien_Nightvision();
            this.infodisplay.Add(this.nightvisionicon);
            this.alien_plasma_display = new Obj_Screen_Alien_PlasmaDisplay();
            this.infodisplay.Add(this.alien_plasma_display);
            this.zone_select = new Obj_Screen_ZoneSel_Alien();
            this.zone_select.update_icon(this.mymob);
            this.static_inventory.Add(this.zone_select);
            return;
        }