Adjust icon positions when no quest button is present (#28)

* Adjusted icon positions in IconHandler

Before, there would be a gap between the start of the icons and the edge of the UI/screen. The adjusted offset values give the icons a neater spacing with the rest of the game UI.

* Shifts left only when there are quests active

Sorry, my previous commit was mistaken. This is the real feature
This commit is contained in:
Samuel 2019-12-28 15:16:28 -03:00 committed by cdaragorn
parent 180c566f65
commit 1c71a7aa60
1 changed files with 5 additions and 1 deletions

View File

@ -28,7 +28,11 @@ namespace UIInfoSuite
public Point GetNewIconPosition()
{
int yPos = Game1.options.zoomButtons ? 290 : 260;
int xPosition = (int)Tools.GetWidthInPlayArea() - 134 - 46 * _amountOfVisibleIcons;
int xPosition = (int)Tools.GetWidthInPlayArea() - 70 - 48 * _amountOfVisibleIcons;
if (Game1.player.questLog.Any())
{
x -= 65;
}
++_amountOfVisibleIcons;
return new Point(xPosition, yPos);
}