/// <summary> /// Initializes a new instance of the <see cref="HudBase<TAvatar>"/> class. /// </summary> /// <param name="aw">The aw.</param> /// <param name="id">The id.</param> /// <param name="content">The content.</param> /// <param name="type">The type.</param> /// <param name="origin">The origin.</param> /// <param name="opacity">The opacity.</param> /// <param name="position">The position.</param> /// <param name="flags">The flags.</param> /// <param name="size">The size.</param> /// <param name="color">The color.</param> protected HudBase(Instance aw, int id, string content, HudType type, HudOrigin origin, float opacity, Vector3 position, HudElementFlag flags, Vector3 size, int color) { this._aw = aw; Id = id; Content = content; Type = type; Origin = origin; Opacity = opacity; Position = position; Flags = flags; Size = size; Color = color; }
public void Hide(HudOrigin origin = HudOrigin.BottomLeft, int x = 0, int y = 0) { if (IsDisposed) { return; } IsVisible = false; AWHT.Bot.HudDestroy(Session, MainHud.Id); if (Shadowed) { AWHT.Bot.HudDestroy(Session, ShadowHud.Id); } }
public void Minimize(HudOrigin origin, int x, int y) { Log.Fine("Scene", "Minimizing scene {0} for {1}", Name, Session); if (minimizeHud != null) { minimizeHud.Show(); } AWHT.Instance.GetUser(session).Hidden = true; AWHT.Instance.GetUser(session).Save(); foreach (var panel in this) { panel.Hide(origin, x, y); } }
public Metric(int x, int y, int w, int h, HudOrigin origin) { this.Rectangle = new Rectangle(x, y, w, h); this.Origin = origin; }
public Metric(Rectangle rect, HudOrigin origin) { this.Rectangle = rect; this.Origin = origin; }