mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-25 21:41:11 +00:00
Put version at the bottom of the main menu
This commit is contained in:
parent
ac71f24e78
commit
dd71a05e36
3 changed files with 22 additions and 3 deletions
|
@ -1134,7 +1134,7 @@ void Com_Init( char *commandLine ) {
|
||||||
Cmd_AddCommand ("freeze", Com_Freeze_f);
|
Cmd_AddCommand ("freeze", Com_Freeze_f);
|
||||||
}
|
}
|
||||||
|
|
||||||
s = va("%s %s %s", Q3_VERSION, PLATFORM_STRING, SOURCE_DATE );
|
s = va("%s %s", Q3_VERSION, SOURCE_DATE );
|
||||||
com_version = Cvar_Get ("version", s, CVAR_ROM | CVAR_SERVERINFO );
|
com_version = Cvar_Get ("version", s, CVAR_ROM | CVAR_SERVERINFO );
|
||||||
|
|
||||||
#ifdef JK2_MODE
|
#ifdef JK2_MODE
|
||||||
|
|
|
@ -23,10 +23,12 @@ along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
// Current version of the single player game
|
// Current version of the single player game
|
||||||
#include "../win32/AutoVersion.h"
|
#include "../win32/AutoVersion.h"
|
||||||
|
|
||||||
|
#define JKXR_VERSION "0.8.0"
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define Q3_VERSION "(debug)OpenJK: v" VERSION_STRING_DOTTED
|
#define Q3_VERSION "(debug)OpenJK: v" VERSION_STRING_DOTTED " JKXR: " JKXR_VERSION
|
||||||
#elif defined FINAL_BUILD
|
#elif defined FINAL_BUILD
|
||||||
#define Q3_VERSION "OpenJK: v" VERSION_STRING_DOTTED
|
#define Q3_VERSION "OpenJK: v" VERSION_STRING_DOTTED " JKXR: " JKXR_VERSION
|
||||||
#else
|
#else
|
||||||
#define Q3_VERSION "(internal)OpenJK: v" VERSION_STRING_DOTTED
|
#define Q3_VERSION "(internal)OpenJK: v" VERSION_STRING_DOTTED
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -779,6 +779,23 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
itemDef
|
||||||
|
{
|
||||||
|
name about
|
||||||
|
rect 105 461 500 24
|
||||||
|
type 0
|
||||||
|
cvar "version"
|
||||||
|
textalign ITEM_ALIGN_LEFT
|
||||||
|
textalignx 150
|
||||||
|
textaligny 2
|
||||||
|
textalign 1
|
||||||
|
font 2
|
||||||
|
textscale .5
|
||||||
|
forecolor 1 1 1 1
|
||||||
|
visible 1
|
||||||
|
decoration
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue