Skip to content

Commit

Permalink
0.6.1.3, small ui fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JavidPack committed Mar 23, 2018
1 parent 6be360e commit 683273e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion RecipeBrowserUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ public override void OnInitialize()
favoritePanel.Top.Set(90f, 0f);
favoritePanel.Width.Set(415f, 0f);
favoritePanel.MinWidth.Set(50f, 0f);
favoritePanel.MaxWidth.Set(500f, 0f);
favoritePanel.MaxWidth.Set(600f, 0f);
favoritePanel.Height.Set(350, 0f);
favoritePanel.MinHeight.Set(50, 0f);
favoritePanel.MaxHeight.Set(300, 0f);
Expand Down
2 changes: 1 addition & 1 deletion UIElements/UITrackIngredientSlot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ protected override void DrawSelf(SpriteBatch spriteBatch)
Rectangle rectangle = dimensions.ToRectangle();
if (!item.IsAir)
{
int count = CountItemGroups(Main.player[owner], recipe, item.type, 999); // stopping at item.maxStack means you can't see if you can make multiple.
int count = CountItemGroups(Main.player[owner], recipe, item.type, targetStack > 999 ? targetStack : 999 ); // stopping at item.maxStack means you can't see if you can make multiple.
string progress = count + "/" + targetStack;
Color progressColor = count >= targetStack ? Color.LightGreen : Color.LightSalmon;
ChatManager.DrawColorCodedStringWithShadow(spriteBatch, Main.fontItemStack, progress, dimensions.Position() + new Vector2(10f, 26f) * scale + new Vector2(-4f, 0f), progressColor, 0f, Vector2.Zero, new Vector2(scale), -1f, /*scale*/1);
Expand Down
2 changes: 1 addition & 1 deletion build.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
author = jopojelly
version = 0.6.1.2
version = 0.6.1.3
displayName = Recipe Browser
homepage = https://forums.terraria.org/index.php?threads/recipe-browser.62462/
buildIgnore = .vs\*, Properties\*, *.csproj, *.user, obj\*, bin\*, *.config, unused\*, .git\*,
Expand Down

0 comments on commit 683273e

Please sign in to comment.