cdaragorn / Ui-Info-Suite

Mod for Stardew Valley.
87 stars 360 forks source link

ShowItemHoverInformation Update #2

Closed Juice805 closed 6 years ago

Juice805 commented 6 years ago

Now more OOP, Added more details including seasons, weather, times, final crop prices.

Redid some logic for bounds collisions. To really be accurate it may be useful to reimplement the removal of the original tooltip, and calling an exact copy of the in game one, with the exception of saving the size. I made the edit in the current DrawHoverText but it is never called.

Also, couldn't decide whether to hide all season icons if the fish occurs every season or to just show them all. It's an easy change if you have a preference. It gets a bit too wide for my liking.

This pull request includes my StardewValleyConfig edits.

Heres a gif of the new tooltip

Juice805 commented 6 years ago

I've added Location data to the tooltip for fish with custom artwork from the very nice 4SlicePizza from the SDV discord.

I've also added the full unedited drawHoverText and drawToolTip from the game assembly and added a variable to store the default tooltip size. It is inactive currently.

You can try the mod here. UI Info Suite.zip

Images: fishtooltip fishtooltip2 fishtooltip3 croptooltip

Juice805 commented 6 years ago

This one is far more work, I will think about implementing these improvements later.