remance / Masendor

Open source educational and historical battle action game, All helps accepted
MIT License
143 stars 32 forks source link

Button improve #59

Closed coppermouse closed 1 year ago

coppermouse commented 1 year ago

Resolved "corner" issues with make image based on frame

If using alpha in corners it can make the button seem uneven. Implemented a "crop-like" method to deal with this. note this is just done on left/right. Since we do not have an issues on something up/down yet it felt too hard to test.

Border is red when hover

I think red should be our primary select color. It looks good to that yellow/white interface.

Does not render font every frame

I moved the render font to the method that is cached. Since it is cache based it only render once for every type of text/size