[Change] Cosmetic GUI fixes.

This commit is contained in:
Allanis 2013-05-08 22:08:24 +01:00
parent 18b57ff29b
commit 95ee7852de

View File

@ -556,19 +556,13 @@ void player_render(void) {
if(j != 0) gui_renderPilot(pilot_stack[j]); if(j != 0) gui_renderPilot(pilot_stack[j]);
// Player. // Player.
glBegin(GL_POINTS); glBegin(GL_LINES);
// Player. -- Drawn last. // Player. -- Drawn last.
COLOUR(cRadar_player); COLOUR(cRadar_player);
glVertex2d( 0., 2. ); // We represent the player with a small '+' glVertex2d( 0., -3.);
glVertex2d( 0., 1. ); glVertex2d( 0., 3.);
glVertex2d( 0., 0. ); glVertex2d(-3., 0.);
glVertex2d( 0., -1. ); glVertex2d( 3., 0.);
glVertex2d( 0., -2. );
glVertex2d( 2., 0. );
glVertex2d( 1., 0. );
glVertex2d( -1., 0. );
glVertex2d( -2., 0. );
glEnd(); glEnd();
glPopMatrix(); // GL_PROJECTION. glPopMatrix(); // GL_PROJECTION.
@ -693,13 +687,13 @@ void player_render(void) {
for(i = 0; i < MIN(player->ncommodities,3); i++) { for(i = 0; i < MIN(player->ncommodities,3); i++) {
j -= gl_smallFont.h + 3; j -= gl_smallFont.h + 3;
if(player->commodities[i].quantity) // Quantity is over. if(player->commodities[i].quantity) // Quantity is over.
gl_print(&gl_smallFont, gl_printMax(&gl_smallFont, gui.misc.w - 15,
gui.misc.x + 13, j, gui.misc.x + 13, j,
NULL, "%d %s%s", player->commodities[i].quantity, NULL, "%d %s%s", player->commodities[i].quantity,
player->commodities[i].commodity->name, player->commodities[i].commodity->name,
(player->commodities[i].id) ? "*" : ""); (player->commodities[i].id) ? "*" : "");
else // Basically for weightless mission stuff. else // Basically for weightless mission stuff.
gl_print(&gl_smallFont, gl_printMax(&gl_smallFont, gui.misc.w - 15,
gui.misc.x + 13, j, gui.misc.x + 13, j,
NULL, "%s%s", player->commodities[i].commodity->name, NULL, "%s%s", player->commodities[i].commodity->name,
(player->commodities[i].id) ? "*" : ""); (player->commodities[i].id) ? "*" : "");