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