Changed: display version at login

--HG--
branch : compatibility-develop
hg/compatibility-develop
Inky 6 years ago
parent 00f850f143
commit 21dfa80b73

@ -61,6 +61,7 @@
#include "game_share/bg_downloader_msg.h"
#include "misc.h"
#include "user_agent.h"
void ConnectToShard();
@ -783,6 +784,15 @@ void initLoginScreen()
ClientApp = ClientCfg.ConfigFile.getVar("Application").asString(0);
// version
std::string ext;
if (ClientApp.find("ryzom_") != ucstring::npos)
ext = " (" + ClientApp.substr(6) + ")";
CViewText *pV = dynamic_cast<CViewText*>(CWidgetManager::getInstance()->getElementFromId("ui:login:checkpass:content:ver_value"));
if (pV)
pV->setHardText(getDisplayVersion() + (ext.empty() ? "" : ext));
// give priority to login specified as argument
string l = !LoginLogin.empty() ? LoginLogin:ClientCfg.LastLogin;

Loading…
Cancel
Save