MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / constructPreferences

Method constructPreferences

radiantcore/brush/BrushModule.cpp:28–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26{
27
28void BrushModuleImpl::constructPreferences()
29{
30 // Add a page to the given group
31 IPreferencePage& page = GlobalPreferenceSystem().getPage(_("Settings/Primitives"));
32
33 // Add the default texture scale preference and connect it to the according registryKey
34 // Note: this should be moved somewhere else, I think
35 page.appendEntry(_("Default texture scale"), "user/ui/textures/defaultTextureScale");
36
37 // The checkbox to enable/disable the texture lock option
38 page.appendCheckBox(_("Enable Texture Lock (for Brushes)"), "user/ui/brush/textureLock");
39}
40
41void BrushModuleImpl::construct()
42{

Callers

nothing calls this directly

Calls 4

getPageMethod · 0.80
appendEntryMethod · 0.80
appendCheckBoxMethod · 0.80
_Function · 0.50

Tested by

no test coverage detected