Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HudBase&lt;TAvatar&gt;"/> 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;
 }
Beispiel #2
0
 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);
     }
 }
Beispiel #3
0
        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);
            }
        }
Beispiel #4
0
 public Metric(int x, int y, int w, int h, HudOrigin origin)
 {
     this.Rectangle = new Rectangle(x, y, w, h);
     this.Origin    = origin;
 }
Beispiel #5
0
 public Metric(Rectangle rect, HudOrigin origin)
 {
     this.Rectangle = rect;
     this.Origin    = origin;
 }