示例#1
0
        public HotbarTextView(Hotbar bar, Rendering2DComponentsFactory rendering)
        {
            this.bar = bar;

            textarea          = rendering.CreateTextArea();
            textarea.Position = new Vector2(600, 10);
            textarea.Size     = new Vector2(190, 400);
        }
示例#2
0
        public PrototypeUserInterface(RobotInventoryTextView inventory, Rendering2DComponentsFactory rendering, LocalPlayer player)
        {
            this.inventory = inventory;
            this.rendering = rendering;
            robot          = player.RobotPlayerPart;

            textarea = rendering.CreateTextArea();

            textarea.Position = new Vector2(5, 5);
            textarea.Size     = new Vector2(300, 300);
        }