ScalarVector1 / DragonLens

Modern, customizable, and community-driven debugging and cheat mod for TModLoader
26 stars 14 forks source link

Browser icons scale with button size #46

Closed Jadams505 closed 1 year ago

Jadams505 commented 1 year ago

What is the feature?

Makes the browser button icons scale with button size.

Why should this be added?

It's kind of a waste to allow for the buttons to be larger if the icons don't also increase in size. Enlarging the icons makes it easier to see what the button is for. Not to mention the item browser icons already scaled with size, so this simply enables this for the other browsers as well.

What changed?

I used the same scaling numbers that the ItemButtons use except for buffs since they have a background already I made them take up the whole space. I also adjusted the draw code for the ProjectileSpawner so that instead of drawing the whole sprite sheet it just draws the first frame. This makes it a lot easier to identify projectiles with many frames. Minions/Pets for example

Obviously the numbers can be adjusted to your liking.