cursor442 / AATracker

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

Bug when switching from log screen to nation screen #89

Closed cursor442 closed 1 year ago

cursor442 commented 1 year ago

The log page tab appears to be hidden after the nation name is drawn. Therefore the chunk where the tabs had been is missing from the name.

cursor442 commented 1 year ago

It actually happens when drawing the phase frame?

cursor442 commented 1 year ago

Happens during the command "showButton(nextPhaseButton)"

cursor442 commented 1 year ago

When drawing a screen, or section of a screen, always draw all of the buttons first. For some reason the buttons from the last screen when you switch pop back in for 0 time when drawing the buttons on the new screen, drawing over anything that was already in that location.

cursor442 commented 1 year ago

Bug is fixed when switching to the log screen in the purchase view. But it is still there when switching in the neutral territory view.

cursor442 commented 1 year ago

Fixed by switching to the new button and tab classes. A lot of work to fix a tiny graphical bug but I'm glad I did it anyway.