Can now press Ctrl-G to toggle show all borders on all ComponentGrids.

This commit is contained in:
Aloshi 2014-03-25 17:46:58 -05:00
parent 98eda43bab
commit e931a51017
2 changed files with 8 additions and 2 deletions

View file

@ -29,12 +29,14 @@ void Settings::setDefaults()
mBoolMap["ParseGamelistOnly"] = false; mBoolMap["ParseGamelistOnly"] = false;
mBoolMap["DrawFramerate"] = false; mBoolMap["DrawFramerate"] = false;
mBoolMap["ShowExit"] = true; mBoolMap["ShowExit"] = true;
mBoolMap["Debug"] = false;
mBoolMap["Windowed"] = false; mBoolMap["Windowed"] = false;
mBoolMap["EnableSounds"] = true; mBoolMap["EnableSounds"] = true;
mBoolMap["ShowHelpPrompts"] = true; mBoolMap["ShowHelpPrompts"] = true;
mBoolMap["ScrapeRatings"] = true; mBoolMap["ScrapeRatings"] = true;
mBoolMap["Debug"] = false;
mBoolMap["DebugGrid"] = false;
mIntMap["DimTime"] = 120*1000; mIntMap["DimTime"] = 120*1000;
mIntMap["ScraperResizeWidth"] = 400; mIntMap["ScraperResizeWidth"] = 400;
mIntMap["ScraperResizeHeight"] = 0; mIntMap["ScraperResizeHeight"] = 0;

View file

@ -104,7 +104,11 @@ void Window::deinit()
void Window::input(InputConfig* config, Input input) void Window::input(InputConfig* config, Input input)
{ {
if(config->isMappedTo("mastervolup", input)) if(config->getDeviceId() == DEVICE_KEYBOARD && input.value && input.id == SDLK_g && SDL_GetModState() & KMOD_LCTRL && Settings::getInstance()->getBool("Debug"))
{
// toggle debug grid
Settings::getInstance()->setBool("DebugGrid", !Settings::getInstance()->getBool("DebugGrid"));
}else if(config->isMappedTo("mastervolup", input))
{ {
VolumeControl::getInstance()->setVolume(VolumeControl::getInstance()->getVolume() + 5); VolumeControl::getInstance()->setVolume(VolumeControl::getInstance()->getVolume() + 5);
} }