Commit 63d4bfa0 authored by Byurrrer's avatar Byurrrer

поправил ошибку в редакторе уровней, при которой не все элементы интерфейса...

поправил ошибку в редакторе уровней, при которой не все элементы интерфейса игровых объектов обновлялись, добавил bat файлы в build директорию для запуска exe
parent 7547f714
......@@ -248,7 +248,9 @@ void CLevel::save(const char *szName)
file = fopen(szPathLevel, "w");
fprintf(file, "%s", "[level]\n");
fprintf(file, "local_name = %s\n", m_sLocalName.c_str());
if (m_sLocalName.length() > 0)
fprintf(file, "local_name = %s\n", m_sLocalName.c_str());
if (SGeom_GetCountModels() > 0)
{
......
......@@ -462,33 +462,43 @@ void SkyXEngine_InitPaths()
sprintf(szPath, "%s%s/", Core_RStringGet(G_RI_STRING_PATH_GAMESOURCE), "config");
Core_RStringSet(G_RI_STRING_PATH_GS_CONFIGS, szPath);
FileCreateDir(szPath);
sprintf(szPath, "%s%s/", Core_RStringGet(G_RI_STRING_PATH_GAMESOURCE), "levels");
Core_RStringSet(G_RI_STRING_PATH_GS_LEVELS, szPath);
FileCreateDir(szPath);
sprintf(szPath, "%s%s/", Core_RStringGet(G_RI_STRING_PATH_GAMESOURCE), "meshes");
Core_RStringSet(G_RI_STRING_PATH_GS_MESHES, szPath);
FileCreateDir(szPath);
sprintf(szPath, "%s%s/", Core_RStringGet(G_RI_STRING_PATH_GAMESOURCE), "models");
Core_RStringSet(G_RI_STRING_PATH_GS_MODELS, szPath);
FileCreateDir(szPath);
sprintf(szPath, "%s%s/", Core_RStringGet(G_RI_STRING_PATH_GAMESOURCE), "shaders");
Core_RStringSet(G_RI_STRING_PATH_GS_SHADERS, szPath);
FileCreateDir(szPath);
sprintf(szPath, "%s%s/", Core_RStringGet(G_RI_STRING_PATH_GAMESOURCE), "sounds");
Core_RStringSet(G_RI_STRING_PATH_GS_SOUNDS, szPath);
FileCreateDir(szPath);
sprintf(szPath, "%s%s/", Core_RStringGet(G_RI_STRING_PATH_GAMESOURCE), "scripts");
Core_RStringSet(G_RI_STRING_PATH_GS_SCRIPTS, szPath);
FileCreateDir(szPath);
sprintf(szPath, "%s%s/", Core_RStringGet(G_RI_STRING_PATH_GAMESOURCE), "textures");
Core_RStringSet(G_RI_STRING_PATH_GS_TEXTURES, szPath);
FileCreateDir(szPath);
sprintf(szPath, "%s%s/", Core_RStringGet(G_RI_STRING_PATH_GAMESOURCE), "materials");
Core_RStringSet(G_RI_STRING_PATH_GS_MTRLS, szPath);
FileCreateDir(szPath);
sprintf(szPath, "%s%s/", Core_RStringGet(G_RI_STRING_PATH_GAMESOURCE), "resource");
sprintf(szPath, "%s%s/", Core_RStringGet(G_RI_STRING_PATH_GAMESOURCE), "gui");
Core_RStringSet(G_RI_STRING_PATH_GS_GUI, szPath);
FileCreateDir(szPath);
}
void SkyXEngine_CreateLoadCVar()
......
......@@ -62,6 +62,7 @@ void level_editor::GameSel(int iSelected)
level_editor::pComboBoxGameValue->clear();
level_editor::pEditGameValue->setVisible(false);
level_editor::pEditGameValue->setText("");
level_editor::pButtonGameValue->setVisible(false);
level_editor::pButtonGameCreate->setVisible(false);
level_editor::pListViewGameClass->setEnable(true);
level_editor::pListViewGameClass->clearStrings();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment