Put version at the bottom of the main menu

This commit is contained in:
Simon 2023-04-02 22:51:49 +01:00
parent ac71f24e78
commit dd71a05e36
3 changed files with 22 additions and 3 deletions

View file

@ -1134,7 +1134,7 @@ void Com_Init( char *commandLine ) {
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 );
#ifdef JK2_MODE

View file

@ -23,10 +23,12 @@ along with this program; if not, see <http://www.gnu.org/licenses/>.
// Current version of the single player game
#include "../win32/AutoVersion.h"
#define JKXR_VERSION "0.8.0"
#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
#define Q3_VERSION "OpenJK: v" VERSION_STRING_DOTTED
#define Q3_VERSION "OpenJK: v" VERSION_STRING_DOTTED " JKXR: " JKXR_VERSION
#else
#define Q3_VERSION "(internal)OpenJK: v" VERSION_STRING_DOTTED
#endif

View file

@ -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
}
}
}