mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-22 12:58:33 +01:00
cleaned up DrawEarly documentation references
This commit is contained in:
parent
3c4567e4a1
commit
dc6c472b84
4 changed files with 2 additions and 8 deletions
|
@ -35,7 +35,7 @@ Improvements
|
||||||
- Avoid unnecessary panel updates by using an Epsilon comparison when scrolling children
|
- Avoid unnecessary panel updates by using an Epsilon comparison when scrolling children
|
||||||
- Allow setting a default text alignment for paragraphs in UiStyle
|
- Allow setting a default text alignment for paragraphs in UiStyle
|
||||||
- Made custom values of Element.Style persist when a new ui style is set
|
- 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
|
Fixes
|
||||||
- Fixed paragraph links having incorrect hover locations when using special text alignments
|
- Fixed paragraph links having incorrect hover locations when using special text alignments
|
||||||
|
|
|
@ -22,9 +22,6 @@ protected override void Update(GameTime gameTime) {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Draw(GameTime gameTime) {
|
protected override void Draw(GameTime gameTime) {
|
||||||
// DrawEarly needs to be called before clearing your graphics context
|
|
||||||
this.UiSystem.DrawEarly(gameTime, this.SpriteBatch);
|
|
||||||
|
|
||||||
this.GraphicsDevice.Clear(Color.CornflowerBlue);
|
this.GraphicsDevice.Clear(Color.CornflowerBlue);
|
||||||
// Do your regular game drawing here
|
// Do your regular game drawing here
|
||||||
|
|
||||||
|
|
|
@ -176,8 +176,6 @@ namespace MLEM.Ui.Elements {
|
||||||
batch.Draw(this.Texture, this.DisplayArea, this.DrawColor.OrDefault(Color.White) * alpha, this.Scale);
|
batch.Draw(this.Texture, this.DisplayArea, this.DrawColor.OrDefault(Color.White) * alpha, this.Scale);
|
||||||
// if we handle overflow, draw using a scissor rectangle
|
// if we handle overflow, draw using a scissor rectangle
|
||||||
if (this.scrollOverflow) {
|
if (this.scrollOverflow) {
|
||||||
this.UpdateAreaIfDirty();
|
|
||||||
|
|
||||||
batch.End();
|
batch.End();
|
||||||
batch.GraphicsDevice.ScissorRectangle = (Rectangle) this.GetInnerArea();
|
batch.GraphicsDevice.ScissorRectangle = (Rectangle) this.GetInnerArea();
|
||||||
|
|
||||||
|
|
|
@ -281,7 +281,6 @@ namespace MLEM.Ui {
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Draws any <see cref="Element"/>s onto the screen.
|
/// 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>
|
/// </summary>
|
||||||
/// <param name="time">The game's time</param>
|
/// <param name="time">The game's time</param>
|
||||||
/// <param name="batch">The sprite batch to use for drawing</param>
|
/// <param name="batch">The sprite batch to use for drawing</param>
|
||||||
|
|
Loading…
Reference in a new issue