#include "mainframe.h"
#include "preferences.h"
-LatchedBool g_useAlternativeTextureProjection(false, "Use alternative texture-projection");
+LatchedBool g_useAlternativeTextureProjection(false, "Use alternative texture-projection (\"brush primitives\")");
bool g_showAlternativeTextureProjectionOption = false;
bool g_brush_always_caulk;
if(g_showAlternativeTextureProjectionOption)
{
page.appendCheckBox(
- "", "Use alternative texture-projection",
+ "", "Use alternative texture-projection (\"brush primitives\")",
LatchedBoolImportCaller(g_useAlternativeTextureProjection),
BoolExportCaller(g_useAlternativeTextureProjection.m_latched)
);
{
g_showAlternativeTextureProjectionOption = true;
+ const char *value = g_pGameDescription->getKeyValue("brush_primit");
+ if(!string_empty(value))
+ g_useAlternativeTextureProjection.m_latched = atoi(value);
+
GlobalPreferenceSystem().registerPreference(
"AlternativeTextureProjection",
BoolImportStringCaller(g_useAlternativeTextureProjection.m_latched),