Fixes by Dunk

git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@173 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
namespace
2007-06-28 17:55:42 +00:00
parent 0c07d03e26
commit 70fe5a7feb
9 changed files with 94 additions and 16 deletions

View File

@@ -36,6 +36,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
LatchedBool g_useAlternativeTextureProjection(false, "Use alternative texture-projection");
bool g_showAlternativeTextureProjectionOption = false;
bool g_brush_always_caulk;
bool getTextureLockEnabled()
{
@@ -73,6 +74,11 @@ void Brush_constructPreferences(PreferencesPage& page)
BoolExportCaller(g_useAlternativeTextureProjection.m_latched)
);
}
// d1223m
page.appendCheckBox("",
"Always use caulk for new brushes",
g_brush_always_caulk
);
}
void Brush_constructPage(PreferenceGroup& group)
{
@@ -102,6 +108,12 @@ void Brush_Construct(EBrushType type)
{
type = eBrushTypeQuake3BP;
}
// d1223m
GlobalPreferenceSystem().registerPreference(
"BrushAlwaysCaulk",
BoolImportStringCaller(g_brush_always_caulk),
BoolExportStringCaller(g_brush_always_caulk));
}
Brush_registerCommands();