cursor442 / AATracker

Game tracker for Axis and Allies Global 1940
GNU General Public License v3.0
0 stars 0 forks source link

Only show purchase buttons when usable #93

Closed cursor442 closed 1 year ago

cursor442 commented 1 year ago

The purchase increment or decrement buttons are only usable during the purchase phase. Don't even give users the option to press them when they won't work. Also, not every nation/situation can use all of the buttons. They visibly flicker when updating the section, only showing them sometimes will reduce the number of times that happens until I can figure out how to stop that entirely.

cursor442 commented 1 year ago

Flickering is no longer an issue after creating my own button class. The draw speed is noticeable (at least when running in debug, haven't tried release yet) but I can live with that. I think it would look worse if the buttons just weren't there most of the time. Maybe I could create a faded texture for them when not in use but I'm ok with how they are now for now.