forked from Annosz/UIInfoSuite2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Adam Toth
committed
Jan 5, 2023
1 parent
817b285
commit c3a21d3
Showing
2 changed files
with
36 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using Microsoft.Xna.Framework; | ||
using Microsoft.Xna.Framework.Graphics; | ||
using StardewValley; | ||
|
||
namespace UIInfoSuite2.UIElements | ||
{ | ||
public class DisplayedLevelUpMessage | ||
{ | ||
public void Draw(Rectangle levelUpIconRectangle, string levelUpMessage) | ||
{ | ||
Vector2 playerLocalPosition = Game1.player.getLocalPosition(Game1.viewport); | ||
|
||
Game1.spriteBatch.Draw( | ||
Game1.mouseCursors, | ||
Utility.ModifyCoordinatesForUIScale(new Vector2( | ||
playerLocalPosition.X - 74, | ||
playerLocalPosition.Y - 130)), levelUpIconRectangle, | ||
Color.White, | ||
0, | ||
Vector2.Zero, | ||
Game1.pixelZoom, | ||
SpriteEffects.None, | ||
0.85f); | ||
|
||
Game1.drawWithBorder( | ||
levelUpMessage, | ||
Color.DarkSlateGray, | ||
Color.PaleTurquoise, | ||
Utility.ModifyCoordinatesForUIScale(new Vector2( | ||
playerLocalPosition.X - 28, | ||
playerLocalPosition.Y - 130))); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters