mirror of
https://git.minecraftlegacy.com/backups/LCEMP.git
synced 2026-12-02 12:51:31 +00:00
LCEMP v1.1.0, bugfixes, multithreading server, local leaderboard, performance fixes, and more
This commit is contained in:
1 parent
fadeee4192
commit
7e7668c7fa
88 files changed
+4825
-634
No files matched your search
@@ -420,13 +420,19 @@ void UIScene_CreateWorldMenu::handlePress(F64 controlId, F64 childId)
|
||||
case eControl_EditWorldName:
|
||||
{
|
||||
m_bIgnoreInput=true;
|
||||
#ifdef _WINDOWS64
|
||||
Win64InGameKeyboard::Request(app.GetString(IDS_CREATE_NEW_WORLD), m_editWorldName.getLabel(), (DWORD)0, 25, &UIScene_CreateWorldMenu::KeyboardCompleteWorldNameCallback, this, C_4JInput::EKeyboardMode_Default);
|
||||
#else
|
||||
InputManager.RequestKeyboard(app.GetString(IDS_CREATE_NEW_WORLD),m_editWorldName.getLabel(),(DWORD)0,25,&UIScene_CreateWorldMenu::KeyboardCompleteWorldNameCallback,this,C_4JInput::EKeyboardMode_Default);
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
case eControl_EditSeed:
|
||||
{
|
||||
m_bIgnoreInput=true;
|
||||
#ifdef __PS3__
|
||||
#ifdef _WINDOWS64
|
||||
Win64InGameKeyboard::Request(app.GetString(IDS_CREATE_NEW_WORLD_SEED), m_editSeed.getLabel(), (DWORD)0, 60, &UIScene_CreateWorldMenu::KeyboardCompleteSeedCallback, this, C_4JInput::EKeyboardMode_Default);
|
||||
#elif defined(__PS3__)
|
||||
int language = XGetLanguage();
|
||||
switch(language)
|
||||
{
|
||||
@@ -761,7 +767,11 @@ int UIScene_CreateWorldMenu::KeyboardCompleteWorldNameCallback(LPVOID lpParam,bo
|
||||
{
|
||||
uint16_t pchText[128];
|
||||
ZeroMemory(pchText, 128 * sizeof(uint16_t) );
|
||||
#ifdef _WINDOWS64
|
||||
Win64InGameKeyboard::GetText(pchText);
|
||||
#else
|
||||
InputManager.GetText(pchText);
|
||||
#endif
|
||||
|
||||
if(pchText[0]!=0)
|
||||
{
|
||||
@@ -789,7 +799,11 @@ int UIScene_CreateWorldMenu::KeyboardCompleteSeedCallback(LPVOID lpParam,bool bR
|
||||
uint16_t pchText[128];
|
||||
ZeroMemory(pchText, 128 * sizeof(uint16_t) );
|
||||
#endif
|
||||
#ifdef _WINDOWS64
|
||||
Win64InGameKeyboard::GetText(pchText);
|
||||
#else
|
||||
InputManager.GetText(pchText);
|
||||
#endif
|
||||
pClass->m_editSeed.setLabel((wchar_t *)pchText);
|
||||
pClass->m_MoreOptionsParams.seed = (wchar_t *)pchText;
|
||||
}
|
||||
@@ -1095,6 +1109,7 @@ void UIScene_CreateWorldMenu::CreateGame(UIScene_CreateWorldMenu* pClass, DWORD
|
||||
StorageManager.ResetSaveData();
|
||||
// Make our next save default to the name of the level
|
||||
StorageManager.SetSaveTitle((wchar_t *)wWorldName.c_str());
|
||||
MinecraftServer::SetDeleteOnNoSaveForCurrentSession(true);
|
||||
|
||||
wstring wSeed;
|
||||
if(!pClass->m_MoreOptionsParams.seed.empty() )
|
||||
|
||||
Reference in new issue
Block a user