Example #1
0
        public FamiliyPortrait()
        {
            Interaction
            .Create(this)
            .SetPosition(203, 251)
            .SetDirection(Directions8.Up)
            .SetGetInteractionsFn(GetInteractions);

            Sprite
            .Create(this)
            .SetImage(content.rooms.basement.familyportraitshattered)
            .SetVisible(false);

            Transform
            .Create(this)
            .SetZ(4)
            .SetPosition(202, 89);

            HotspotRectangle
            .Create(this)
            .SetCaption(Basement_Res.family_portrait)
            .AddRectangle(201, 88, 51, 40);

            Enabled = false;
        }
Example #2
0
        public ShelfRFIDBook()
        {
            Interaction
            .Create(this)
            .SetPosition(1020, 295)
            .SetDirection(Directions8.Right)
            .SetGetInteractionsFn(GetInteractions);

            HotspotRectangle
            .Create(this)
            .SetCaption(Basement_Res.book)
            .AddRectangle(1064, 113, 32, 11);

            Transform
            .Create(this)
            .SetPosition(1064, 114)
            .SetZ(Shelf.Z + 1);

            Sprite
            .Create(this)
            .SetImage(content.rooms.basement.rfidbook)
            .SetVisible(false);     // sprite is shown when taken

            Enabled = false;
        }
Example #3
0
        public DrawerLeft()
        {
            Interaction
            .Create(this)
            .SetPosition(146, 307)
            .SetDirection(Directions8.Left)
            .SetGetInteractionsFn(GetInteractions);

            HotspotRectangle
            .Create(this)
            .SetCaption(Basement_Res.drawer)
            .AddRectangle(81, 210, 21, 26);

            Sprite
            .Create(this)
            .SetImage(content.rooms.basement.drawerleft, 4, 1)
            .SetFrame(1);

            Transform
            .Create(this)
            .SetPosition(83, 212)
            .SetZ(264);

            Enabled = false;
        }
        public CabinetRightDoor()
        {
            Sprite
            .Create(this)
            .SetImage(content.rooms.basement.cabinetright, 2, 1)
            .SetFrame(1)
            .SetVisible(false);

            HotspotRectangle
            .Create(this)
            .SetCaption(Basement_Res.right_cabinet_door)
            .SetRectangle(CLOSEDHOTSPOT);

            Transform
            .Create(this)
            .SetPosition(703, 72)
            .SetZ(2);

            Interaction
            .Create(this)
            .SetPosition(703, 247)
            .SetDirection(Directions8.Up)
            .SetGetInteractionsFn(GetInteractions);

            Enabled = false;

            Open      = false;
            TookDrone = false;
        }
        public CabinetLeftDoor()
        {
            HotspotRectangle
            .Create(this)
            .SetCaption(Basement_Res.left_cabinet_door)
            .SetRectangle(CLOSEDHOTSPOT);

            Sprite
            .Create(this)
            .SetImage(content.rooms.basement.cabinetleft)
            .SetVisible(false);

            Transform
            .Create(this)
            .SetPosition(637, 73)
            .SetZ(2);

            Interaction
            .Create(this)
            .SetPosition(703, 247)
            .SetDirection(Directions8.Up)
            .SetGetInteractionsFn(GetInteractions);

            Enabled = false;
            Open    = false;
        }
Example #6
0
        public MouseHole()
        {
            Sprite
            .Create(this)
            .SetImage(content.rooms.basement.eyes, 2)
            .SetFrame(2);

            HotspotRectangle
            .Create(this)
            .SetCaption(Basement_Res.mouse_hole)
            .SetRectangle(779, 216, 11, 10);

            Transform
            .Create(this)
            .SetPosition(780, 217)
            .SetZ(1);

            Interaction
            .Create(this)
            .SetPosition(784, 243)
            .SetDirection(Directions8.Up)
            .SetGetInteractionsFn(GetInteractions);

            Enabled = false;
        }
Example #7
0
        public DrillingMachineCable()
        {
            Interaction
            .Create(this)
            .SetPosition(408, 261)
            .SetDirection(Directions8.Up)
            .SetGetInteractionsFn(GetInteractions);

            HotspotRectangle
            .Create(this)
            .SetCaption(Basement_Res.cable)
            .AddRectangle(387, 224, 28, 13);

            Transform
            .Create(this)
            .SetPosition(234, 203)
            .SetZ(-1.5f);

            Sprite
            .Create(this)
            .SetImage(content.rooms.basement.cable)
            .SetVisible(false);

            Combinable
            .Create(this);

            Enabled = false;
        }
Example #8
0
        public GuitarCase()
        {
            Sprite
            .Create(this)
            .SetImage(content.rooms.basement.guitarcaseopen)
            .SetVisible(false);

            Transform
            .Create(this)
            .SetPosition(128, 129)
            .SetZ(Z);

            Interaction
            .Create(this)
            .SetPosition(163, 243)
            .SetDirection(Directions8.Up)
            .SetGetInteractionsFn(GetInteractions);

            HotspotRectangle
            .Create(this)
            .SetCaption(Basement_Res.guitar_case)
            .AddRectangle(144, 134, 39, 93);

            Enabled = false;
        }
Example #9
0
        public DrawerRight()
        {
            Interaction
            .Create(this)
            .SetPosition(160, 281)
            .SetDirection(Directions8.Left)
            .SetGetInteractionsFn(GetInteractions);

            HotspotRectangle
            .Create(this)
            .SetCaption(Basement_Res.drawer)
            .AddRectangle(105, 196, 19, 23);

            Sprite
            .Create(this)
            .SetImage(content.rooms.basement.drawerright, 4, 2)
            .SetFrame(1);

            Transform
            .Create(this)
            .SetPosition(98, 194)
            .SetZ(263);

            Enabled = false;
        }
Example #10
0
        public Door()
        {
            Interaction
            .Create(this)
            .SetPosition(360, 239)
            .SetDirection(Directions8.Up)
            .SetGetInteractionsFn(GetInteractions);

            HotspotRectangle
            .Create(this)
            .SetCaption(Basement_Res.door)
            .AddRectangle(318, 79, 65, 150);

            Sprite
            .Create(this)
            .SetImage(content.rooms.basement.door, 3)
            .SetVisible(false);

            Transform
            .Create(this)
            .SetZ(1)
            .SetPosition(318, 80);

            Enabled = false;
        }
Example #11
0
        public WoodenPanel()
        {
            Sprite
            .Create(this)
            .SetImage(content.rooms.basement.woodenpanel, 3)
            .SetVisible(false);

            HotspotRectangle
            .Create(this)
            .SetRectangle(541, 271, 88, 9)
            .SetCaption(Basement_Res.wooden_panel);

            Transform
            .Create(this)
            .SetPosition(540, 258)
            .SetZ(Z);

            Interaction
            .Create(this)
            .SetPosition(649, 277)
            .SetWalkToClickPosition(true)
            .SetDirection(Directions8.Left)
            .SetGetInteractionsFn(GetInteractions);

            Enabled = false;
            Visible = false;
        }
Example #12
0
        public DrillingMachine()
        {
            Interaction
            .Create(this)
            .SetPosition(408, 261)
            .SetDirection(Directions8.Up)
            .SetGetInteractionsFn(GetInteractions);

            HotspotRectangle
            .Create(this)
            .SetCaption(Basement_Res.drilling_machine)
            .AddRectangle(411, 154, 21, 22);

            Transform
            .Create(this)
            .SetPosition(426, 152)
            .SetZ(Workbench.Z + 1);

            Sprite
            .Create(this)
            .SetImage(content.rooms.basement.drillholesaw)
            .SetVisible(false);

            Combinable
            .Create(this);

            Enabled = false;
        }
Example #13
0
        public InteractionBar()
        {
            HotspotRectangle
            .Create(this)
            .SetCaption(string.Empty)
            .SetRectangle(0, HEIGHT, Game.VIRTUAL_WIDTH, Game.VIRTUAL_HEIGHT - HEIGHT);

            Transform
            .Create(this)
            .SetZ(Z);
        }
Example #14
0
        public ScrollUpButton()
        {
            HotspotRectangle
            .Create(this)
            .SetCaption(string.Empty)
            .AddRectangle(ScreenRectangle);

            Transform
            .Create(this)
            .SetZ(InteractionBar.Z + 1);

            Interactive = false;
        }
Example #15
0
        public VerbButton(LockedVerb verb)
        {
            Verb = verb;

            HotspotRectangle
            .Create(this)
            .SetCaption(verb.Text)
            .AddRectangle(verb.ScreenRectangle);

            Transform
            .Create(this)
            .SetZ(InteractionBar.Z + 1);
        }
        public BoxWritingMaterials()
        {
            Interaction
            .Create(this)
            .SetPosition(205, 242)
            .SetDirection(Directions8.Up)
            .SetGetInteractionsFn(GetInteractions);

            HotspotRectangle
            .Create(this)
            .SetCaption(Basement_Res.box)
            .AddRectangle(193, 200, 33, 17);

            Enabled = false;
        }
Example #17
0
        public Cactus()
        {
            Interaction
            .Create(this)
            .SetPosition(813, 256)
            .SetDirection(Directions8.Up)
            .SetGetInteractionsFn(GetInteractions);

            HotspotRectangle
            .Create(this)
            .SetCaption(Basement_Res.cactus)
            .AddRectangle(799, 155, 31, 78);

            Enabled = false;
        }
Example #18
0
        public LightSwitch()
        {
            Interaction
            .Create(this)
            .SetPosition(289, 242)
            .SetDirection(Directions8.Up)
            .SetGetInteractionsFn(GetInteractions);

            HotspotRectangle
            .Create(this)
            .SetCaption(Basement_Res.light_switch)
            .AddRectangle(290, 136, 11, 10);

            Enabled = false;
        }
Example #19
0
        public Crates()
        {
            Interaction
            .Create(this)
            .SetPosition(908, 269)
            .SetDirection(Directions8.Up)
            .SetGetInteractionsFn(GetInteractions);

            HotspotRectangle
            .Create(this)
            .SetCaption(Basement_Res.crates)
            .AddRectangle(827, 120, 147, 134);

            Enabled = false;
        }
Example #20
0
        public Folders()
        {
            Interaction
            .Create(this)
            .SetPosition(205, 242)
            .SetDirection(Directions8.Up)
            .SetGetInteractionsFn(GetInteractions);

            HotspotRectangle
            .Create(this)
            .SetCaption(Basement_Res.folders)
            .AddRectangle(189, 148, 63, 45);

            Enabled = false;
        }
Example #21
0
        public ToDoBoard()
        {
            Interaction
            .Create(this)
            .SetPosition(127, 276)
            .SetDirection(Directions8.Left)
            .SetGetInteractionsFn(GetInteractions);

            HotspotRectangle
            .Create(this)
            .SetCaption(Basement_Res.bulletin_board)
            .AddRectangle(3, 98, 61, 69);

            Enabled = false;
        }
Example #22
0
        public Boiler()
        {
            Interaction
            .Create(this)
            .SetPosition(994, 268)
            .SetDirection(Directions8.Up)
            .SetGetInteractionsFn(GetInteractions);

            HotspotRectangle
            .Create(this)
            .SetCaption(Basement_Res.boiler)
            .AddRectangle(961, 32, 62, 131);

            Enabled = false;
        }
Example #23
0
        public SocketsLeft()
        {
            Interaction
            .Create(this)
            .SetPosition(233, 251)
            .SetDirection(Directions8.Up)
            .SetGetInteractionsFn(GetInteractions);

            HotspotRectangle
            .Create(this)
            .SetCaption(Basement_Res.sockets)
            .AddRectangle(229, 198, 11, 12);

            Enabled = false;
        }
Example #24
0
        public Window()
        {
            Interaction
            .Create(this)
            .SetPosition(GetInteractionPosition())
            .SetDirection(GetInteractionDirection())
            .SetGetInteractionsFn(GetInteractions);

            HotspotRectangle
            .Create(this)
            .SetCaption(Basement_Res.window)
            .AddRectangle(GetHotspotRectangle());

            Enabled = false;
        }
Example #25
0
        public Crumbs()
        {
            Interaction
            .Create(this)
            .SetPosition(GetInteractionPosition())
            .SetDirection(Directions8.Up)
            .SetGetInteractionsFn(GetInteractions);

            HotspotRectangle
            .Create(this)
            .SetCaption(Basement_Res.crumbs)
            .AddRectangle(GetHotspotRectangle());

            Enabled = false;
        }
Example #26
0
        public WoodenBox()
        {
            Interaction
            .Create(this)
            .SetPosition(649, 277)
            .SetDirection(Directions8.Left)
            .SetGetInteractionsFn(GetInteractions);

            HotspotRectangle
            .Create(this)
            .SetCaption(Basement_Res.wooden_box)
            .AddRectangle(615, 271, 14, 9);

            Enabled = false;
        }
Example #27
0
        public HazelnutsOnFloor()
        {
            Interaction
            .Create(this)
            .SetPosition(178, 254)
            .SetDirection(Directions8.Left)
            .SetGetInteractionsFn(GetInteractions);

            HotspotRectangle
            .Create(this)
            .SetCaption(Basement_Res.empty_bag_of_hazelnuts)
            .AddRectangle(139, 242, 27, 13);

            Enabled = false;
        }
Example #28
0
        public CabinetSupplies()
        {
            Interaction
            .Create(this)
            .SetPosition(703, 247)
            .SetDirection(Directions8.Up)
            .SetGetInteractionsFn(GetInteractions);

            Transform
            .Create(this)
            .SetZ(3);

            HotspotRectangle
            .Create(this)
            .SetCaption(Basement_Res.arts_and_crafts_supplies)
            .AddRectangle(703, 149, 44, 28);

            Enabled = false;
        }
Example #29
0
        public MissingTool()
        {
            Interaction
            .Create(this)
            .SetPosition(517, 264)
            .SetDirection(Directions8.Up)
            .SetGetInteractionsFn(GetInteractions);

            HotspotRectangle
            .Create(this)
            .SetCaption(Basement_Res.missing_tool)
            .AddRectangle(479, 95, 12, 45);

            Transform
            .Create(this)
            .SetZ(ToolBar.Z + 1);

            Enabled = false;
        }
Example #30
0
        public BoxScrews()
        {
            Interaction
            .Create(this)
            .SetPosition(573, 260)
            .SetDirection(Directions8.Up)
            .SetGetInteractionsFn(GetInteractions);

            HotspotRectangle
            .Create(this)
            .SetCaption(Basement_Res.box)
            .AddRectangle(558, 206, 37, 18);

            Transform
            .Create(this)
            .SetZ(Workbench.Z + 1);

            Enabled = false;
        }