示例#1
0
void GameManager::constructPreferencePage (PreferenceGroup& group)
{
	// Add a page to the given group
	PreferencesPage* page(group.createPage(_("Path"), _("Path Preferences")));

	// Add the sliders for the movement and angle speed and connect them to the observer
	page->appendPathEntry(GlobalGameManager().getKeyValue("name") + " " + std::string(_("Installation Path")), RKEY_ENGINE_PATH, true);
}
示例#2
0
// PreferenceConstructor implementation, add the preference settings
void MapCompiler::constructPreferencePage (PreferenceGroup& group)
{
	PreferencesPage* page(group.createPage(_("Map Compiler"), _("Map Compiler Settings")));

	page->appendPathEntry(_("Compiler binary"), RKEY_COMPILER_BINARY, false);
	page->appendEntry(_("Compile parameters"), RKEY_COMPILE_PARAMETERS);

	page->appendEntry(_("Error checking parameters"), RKEY_ERROR_CHECK_PARAMETERS);
	page->appendEntry(_("Error fixing parameters"), RKEY_ERROR_FIX_PARAMETERS);
	page->appendEntry(_("Material generation parameters"), RKEY_MATERIAL_PARAMETERS);
}
示例#3
0
void XYWndManager::constructPreferencePage(PreferenceGroup& group) {
	PreferencesPage* page(group.createPage(_("Orthographic"), _("Orthographic View Settings")));

	page->appendCheckBox("", _("View chases mouse cursor during drags"), RKEY_CHASE_MOUSE);
	page->appendCheckBox("", _("Update views on camera move"), RKEY_CAMERA_XY_UPDATE);
	page->appendCheckBox("", _("Show Crosshairs"), RKEY_SHOW_CROSSHAIRS);
	page->appendCheckBox("", _("Show Grid"), RKEY_SHOW_GRID);
	page->appendCheckBox("", _("Show Size Info"), RKEY_SHOW_SIZE_INFO);
	page->appendCheckBox("", _("Show Entity Angle Arrow"), RKEY_SHOW_ENTITY_ANGLES);
	page->appendCheckBox("", _("Show Entity Names"), RKEY_SHOW_ENTITY_NAMES);
	page->appendCheckBox("", _("Show Blocks"), RKEY_SHOW_BLOCKS);
	page->appendCheckBox("", _("Show Coordinates"), RKEY_SHOW_COORDINATES);
	page->appendCheckBox("", _("Show Axes"), RKEY_SHOW_AXES);
	page->appendCheckBox("", _("Show Window Outline"), RKEY_SHOW_OUTLINE);
	page->appendCheckBox("", _("Show Workzone"), RKEY_SHOW_WORKZONE);
	page->appendCheckBox("", _("Always caulk for new brushes"), RKEY_ALWAYS_CAULK_FOR_NEW_BRUSHES);
}
示例#4
0
void MainFrame::constructPreferencePage (PreferenceGroup& group)
{
	// Add another page for Multi-Monitor stuff
	PreferencesPage* page(group.createPage(_("Display"), _("Multi Monitor")));

	// Initialise the registry, if no key is set
	if (GlobalRegistry().get(RKEY_MULTIMON_START_MONITOR).empty()) {
		GlobalRegistry().set(RKEY_MULTIMON_START_MONITOR, "0");
	}

	ComboBoxValueList list;

	for (int i = 0; i < gtkutil::MultiMonitor::getNumMonitors(); ++i) {
		GdkRectangle rect = gtkutil::MultiMonitor::getMonitor(i);

		list.push_back(string::format("Monitor %d (%dx%d)", i, rect.width, rect.height));
	}

	page->appendCombo(_("Start UFORadiant on monitor"), RKEY_MULTIMON_START_MONITOR, list);
}
示例#5
0
void Brush_constructPage(PreferenceGroup& group)
{
  PreferencesPage page(group.createPage("Brush", "Brush Settings"));
  Brush_constructPreferences(page);
}
示例#6
0
void Entity_constructPage(PreferenceGroup& group)
{
  PreferencesPage page(group.createPage("Entities", "Entity Display Preferences"));
  Entity_constructPreferences(page);
}
示例#7
0
void Mouse_constructPage(PreferenceGroup& group)
{
  PreferencesPage page(group.createPage("Mouse", "Mouse Preferences"));
  Mouse_constructPreferences(page);
}