Battle-City
Battle-City copied to clipboard
[Question] Should the player label be on top of the GUI when moving the map?
Should the player label appear above the GUI when moving the map as shown in the attached screenshot?
No it shouldn't be like that and it's a bug. I'd consider the player name text an element of the scene. GUI elements like the sidebar should be rendered last.
Looks like CDrawing.cpp draws:
- Players
- Panel
- Tanks
Players and Tanks both call drawPlayerName() which may explain why player names are displaying above the panel due to the arrangement in this method. I am going to rearrange the call order and test.
Changing the draw order to the following:
- Players
- Tanks
- Panel
resolves this issue. I may create a pull request depending on how fast we move with refactoring the project to adopt a new technology, #47
#47 was resolved with the decision to pursue the SFML framework #71
This drawing issue will be tackled in the refactoring.