Пример #1
0
 public void AddImage(ImageObject image)
 {
     Components.Add(image);
 }
Пример #2
0
 public HUD(Torch.Scene scene, Torch.Object parent)
     : base(scene, parent)
 {
     _interactIcon = new ImageObject(Game, this, "HUD/interacticon");
 }
Пример #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);
        }