protected internal override void Render(int X, int Y) { if (!this.m_Visible) { return; } if (!GFader.m_Fade) { this.Alpha = 1f; this.m_State = FadeState.Opaque; base.Render(X, Y); } else { int X1 = X + this.X; int Y1 = Y + this.Y; this.Draw(X1, Y1); foreach (Gump gump in this.m_Children.ToArray()) { if (gump.m_ITranslucent) { ITranslucent translucent = (ITranslucent)gump; float alpha = translucent.Alpha; translucent.Alpha *= this.m_fAlpha; gump.Render(X1, Y1); translucent.Alpha = alpha; } else { gump.Render(X1, Y1); } } } }
protected internal override void Render(int X, int Y) { if (base.m_Visible) { if (!m_Fade) { base.Alpha = 1f; this.m_State = FadeState.Opaque; base.Render(X, Y); } else { int x = X + this.X; int y = Y + this.Y; this.Draw(x, y); Gump[] gumpArray = base.m_Children.ToArray(); float alpha = 0f; for (int i = 0; i < gumpArray.Length; i++) { Gump gump = gumpArray[i]; if (gump.m_ITranslucent) { ITranslucent translucent = (ITranslucent)gump; alpha = translucent.Alpha; translucent.Alpha *= base.m_fAlpha; gump.Render(x, y); translucent.Alpha = alpha; } else { gump.Render(x, y); } } } } }