1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-12-25 01:39:23 +01:00

cleaned up DrawEarly documentation references

This commit is contained in:
Ell 2022-01-30 12:20:32 +01:00
parent 3c4567e4a1
commit dc6c472b84
4 changed files with 2 additions and 8 deletions

View file

@ -35,7 +35,7 @@ Improvements
- Avoid unnecessary panel updates by using an Epsilon comparison when scrolling children
- Allow setting a default text alignment for paragraphs in UiStyle
- Made custom values of Element.Style persist when a new ui style is set
- Use a scissor rectangle for panels in favor of a render target
- Use a scissor rectangle for panels instead of a render target
Fixes
- Fixed paragraph links having incorrect hover locations when using special text alignments

View file

@ -21,10 +21,7 @@ protected override void Update(GameTime gameTime) {
this.UiSystem.Update(gameTime);
}
protected override void Draw(GameTime gameTime) {
// DrawEarly needs to be called before clearing your graphics context
this.UiSystem.DrawEarly(gameTime, this.SpriteBatch);
protected override void Draw(GameTime gameTime) {
this.GraphicsDevice.Clear(Color.CornflowerBlue);
// Do your regular game drawing here

View file

@ -176,8 +176,6 @@ namespace MLEM.Ui.Elements {
batch.Draw(this.Texture, this.DisplayArea, this.DrawColor.OrDefault(Color.White) * alpha, this.Scale);
// if we handle overflow, draw using a scissor rectangle
if (this.scrollOverflow) {
this.UpdateAreaIfDirty();
batch.End();
batch.GraphicsDevice.ScissorRectangle = (Rectangle) this.GetInnerArea();

View file

@ -281,7 +281,6 @@ namespace MLEM.Ui {
/// <summary>
/// Draws any <see cref="Element"/>s onto the screen.
/// Note that, when using <see cref="Panel"/>s with a scroll bar, <see cref="DrawEarly"/> needs to be called as well.
/// </summary>
/// <param name="time">The game's time</param>
/// <param name="batch">The sprite batch to use for drawing</param>