TombEngine 1.6 scripting interface
+TombEngine 1.7 scripting interface
Welcome to the TombEngine scripting API. This is a work in progress and some information might be wrong or outdated. Please also note that this is primarily a reference document, not a tutorial, so expect descriptions to be fairly sparse.
At the time of writing, there is a tutorial describing the basics of Lua, as well as a number of example scripts, on the TombEngine website.
diff --git a/TombEngine/Renderer/RendererDrawMenu.cpp b/TombEngine/Renderer/RendererDrawMenu.cpp index 168ff42ff..1da3c1df4 100644 --- a/TombEngine/Renderer/RendererDrawMenu.cpp +++ b/TombEngine/Renderer/RendererDrawMenu.cpp @@ -34,6 +34,7 @@ namespace TEN::Renderer constexpr auto MenuLoadNumberLeftSide = 80; constexpr auto MenuLoadNameLeftSide = 150; + constexpr auto MenuLoadTimestampRightSide = 600; // Vertical spacing templates constexpr auto MenuVerticalLineSpacing = 30; @@ -657,7 +658,7 @@ namespace TEN::Renderer // Timestamp sprintf(stringBuffer, g_GameFlow->GetString(STRING_SAVEGAME_TIMESTAMP), save.Hours, save.Minutes, save.Seconds); - AddString(MenuRightSideEntry, y, stringBuffer, PRINTSTRING_COLOR_WHITE, SF(selection == n)); + AddString(MenuLoadTimestampRightSide, y, stringBuffer, PRINTSTRING_COLOR_WHITE, SF(selection == n)); } GetNextLinePosition(&y); @@ -1225,7 +1226,7 @@ namespace TEN::Renderer void Renderer::DrawDebugInfo(RenderView& view) { -#ifdef TEST_BUILD +#if TEST_BUILD if (CurrentLevel == 0) { AddString("TombEngine " + std::string(TEN_VERSION_STRING) + " test build - not for distribution", diff --git a/TombEngine/version.h b/TombEngine/version.h index df869bf50..040d8d685 100644 --- a/TombEngine/version.h +++ b/TombEngine/version.h @@ -6,11 +6,11 @@ #define TE_REVISION_NUMBER 0 #define TEN_MAJOR_VERSION 1 -#define TEN_MINOR_VERSION 6 +#define TEN_MINOR_VERSION 7 #define TEN_BUILD_NUMBER 0 -#define TEN_REVISION_NUMBER 7 +#define TEN_REVISION_NUMBER 0 -#define TEST_BUILD 1 +#define TEST_BUILD 0 #define TOSTR(x) #x #define MAKE_VERSION_STRING(major, minor, build, revision) TOSTR(major) "." TOSTR(minor) "." TOSTR(build) "." TOSTR(revision)