Battle-City icon indicating copy to clipboard operation
Battle-City copied to clipboard

[Question] Should the player label be on top of the GUI when moving the map?

Open rileyw opened this issue 11 years ago • 4 comments

Should the player label appear above the GUI when moving the map as shown in the attached screenshot? image

rileyw avatar Apr 11 '13 13:04 rileyw

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.

ndizazzo avatar Jul 29 '13 23:07 ndizazzo

Looks like CDrawing.cpp draws:

  1. Players
  2. Panel
  3. 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.

rileyw avatar Jul 31 '13 19:07 rileyw

Changing the draw order to the following:

  1. Players
  2. Tanks
  3. 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

rileyw avatar Jul 31 '13 20:07 rileyw

#47 was resolved with the decision to pursue the SFML framework #71

This drawing issue will be tackled in the refactoring.

rileyw avatar Sep 20 '13 14:09 rileyw