UQM version # printed in main menu
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@827 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
Changes towards version 0.3:
|
Changes towards version 0.3:
|
||||||
|
- Version # is now printed in the main menu, from Nic
|
||||||
- Added PC Shipyard + Hangar power lines animation;
|
- Added PC Shipyard + Hangar power lines animation;
|
||||||
(closes #176) -fOSSiL
|
(closes #176) -fOSSiL
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "starcon.h"
|
#include "starcon.h"
|
||||||
|
#include "uqmversion.h"
|
||||||
|
|
||||||
//Added by Chris
|
//Added by Chris
|
||||||
|
|
||||||
@@ -47,6 +48,8 @@ static void
|
|||||||
DrawRestartMenu (BYTE OldState, BYTE NewState, FRAME f)
|
DrawRestartMenu (BYTE OldState, BYTE NewState, FRAME f)
|
||||||
{
|
{
|
||||||
RECT r;
|
RECT r;
|
||||||
|
TEXT t;
|
||||||
|
UNICODE buf[64];
|
||||||
|
|
||||||
SetSemaphore (GraphicsSem);
|
SetSemaphore (GraphicsSem);
|
||||||
SetContext (ScreenContext);
|
SetContext (ScreenContext);
|
||||||
@@ -57,6 +60,20 @@ DrawRestartMenu (BYTE OldState, BYTE NewState, FRAME f)
|
|||||||
r.extent.width = SCREEN_WIDTH;
|
r.extent.width = SCREEN_WIDTH;
|
||||||
r.extent.height = SCREEN_HEIGHT;
|
r.extent.height = SCREEN_HEIGHT;
|
||||||
SetFlashRect (&r, SetAbsFrameIndex (f, NewState + 1));
|
SetFlashRect (&r, SetAbsFrameIndex (f, NewState + 1));
|
||||||
|
|
||||||
|
// Put version number in the corner
|
||||||
|
SetContextFont (TinyFont);
|
||||||
|
t.pStr = buf;
|
||||||
|
t.baseline.x = SCREEN_WIDTH - 3;
|
||||||
|
t.baseline.y = SCREEN_HEIGHT - 2;
|
||||||
|
t.align = ALIGN_RIGHT;
|
||||||
|
t.valign = VALIGN_BOTTOM;
|
||||||
|
t.CharCount = (COUNT)~0;
|
||||||
|
wsprintf (buf, "v%d.%d%s", UQM_MAJOR_VERSION,
|
||||||
|
UQM_MINOR_VERSION, UQM_EXTRA_VERSION);
|
||||||
|
SetContextForeGroundColor (WHITE_COLOR);
|
||||||
|
font_DrawText (&t);
|
||||||
|
|
||||||
ClearSemaphore (GraphicsSem);
|
ClearSemaphore (GraphicsSem);
|
||||||
(void) OldState; /* Satisfying compiler (unused parameter) */
|
(void) OldState; /* Satisfying compiler (unused parameter) */
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user