Beispiel #1
0
 protected internal override void OnFocusChanged(Gump g)
 {
     if (!this.m_Destroy || g != null && g.IsChildOf((Gump)this))
     {
         return;
     }
     Gumps.Destroy((Gump)this);
 }
Beispiel #2
0
        protected internal override void Draw(int X, int Y)
        {
            Renderer.SetTexture((Texture)null);
            GumpPaint.DrawRaised3D(X, Y, this.m_Width, this.m_Height);
            Gump focus = Gumps.Focus;

            if (focus == this || focus != null && focus.IsChildOf((Gump)this))
            {
                Renderer.GradientRectLR(GumpColors.ActiveCaption, GumpColors.ActiveCaptionGradient, X + 4, Y + 4, this.Width - 8, 18);
                this.m_CaptionLabel.Hue = GumpHues.ActiveCaptionText;
            }
            else
            {
                Renderer.GradientRectLR(GumpColors.InactiveCaption, GumpColors.InactiveCaptionGradient, X + 4, Y + 4, this.Width - 8, 18);
                this.m_CaptionLabel.Hue = GumpHues.InactiveCaptionText;
            }
        }