Example #1
0
 public void AddImage(ImageObject image)
 {
     Components.Add(image);
 }
Example #2
0
 public HUD(Torch.Scene scene, Torch.Object parent)
     : base(scene, parent)
 {
     _interactIcon = new ImageObject(Game, this, "HUD/interacticon");
 }
Example #3
0
        public void SetBackground(string imageName)
        {
            _bg = new ImageObject(Game, this, imageName) { DrawOrder = -1000 };
            Components.Add(_bg);

            Width = _bg.Width;
            Height = _bg.Height;

            _gui.Screen = new Screen(_bg.Width, _bg.Height);
            _gui.Screen.Desktop.Bounds = new UniRectangle(0, 0, _bg.Width, _bg.Height);
        }