SpriteText.drawStringWithScrollBackground rewrite

This commit is contained in:
yangzhi 2020-02-12 12:02:35 +08:00 committed by ZaneYork
parent 54516557cd
commit bdad516ee5
1 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,11 @@ namespace StardewModdingAPI.Framework.RewriteFacades
drawString(b, s, x - SpriteText.getWidthOfString(s) / 2, y, characterPosition, width, height, alpha, layerDepth, junimoText, -1, "", color);
}
public static void drawStringWithScrollBackground(SpriteBatch b, string s, int x, int y, string placeHolderWidthText = "", float alpha = 1f, int color = -1, SpriteText.ScrollTextAlignment scroll_text_alignment = SpriteText.ScrollTextAlignment.Left)
{
SpriteText.drawString(b, s, x, y, 999999, -1, 999999, alpha, 0.88f, false, 0, placeHolderWidthText, color, scroll_text_alignment);
}
public static void drawStringWithScrollBackground(SpriteBatch b, string s, int x, int y, string placeHolderWidthText, float alpha, int color)
{
drawStringWithScrollBackground(b, s, x, y, placeHolderWidthText, alpha, color, 0.088f);