From 5571ec70fa190bb24c11f19ddea79875067daceb Mon Sep 17 00:00:00 2001 From: GreYFoX Date: Wed, 23 Feb 2011 08:36:14 +0200 Subject: [PATCH] More Settings in the Settings tab --- src/game/client/components/menus_settings.cpp | 36 +++++++++++++++++-- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/src/game/client/components/menus_settings.cpp b/src/game/client/components/menus_settings.cpp index c7402dac1..3a9940235 100644 --- a/src/game/client/components/menus_settings.cpp +++ b/src/game/client/components/menus_settings.cpp @@ -682,22 +682,52 @@ void CMenus::RenderSettingsDDRace(CUIRect MainView) } MainView.HSplitTop(20.0f, &Button, &MainView); - if(DoButton_CheckBox(&g_Config.m_ClShowIDs, Localize("Show Client IDs in Scoreboard"), g_Config.m_ClShowIDs, &Button)) + if(DoButton_CheckBox(&g_Config.m_ClShowIDs, Localize("Show client IDs in Scoreboard"), g_Config.m_ClShowIDs, &Button)) { g_Config.m_ClShowIDs ^= 1; } MainView.HSplitTop(20.0f, &Button, &MainView); - if(DoButton_CheckBox(&g_Config.m_ClDDRaceCheats, Localize("Enable DDRace Cheats Like Zoom"), g_Config.m_ClDDRaceCheats, &Button)) + if(DoButton_CheckBox(&g_Config.m_ClDDRaceCheats, Localize("Enable DDRace cheats like zoom"), g_Config.m_ClDDRaceCheats, &Button)) { g_Config.m_ClDDRaceCheats ^= 1; } MainView.HSplitTop(20.0f, &Button, &MainView); - if(DoButton_CheckBox(&g_Config.m_ClDDRaceBinds, Localize("Enable DDRace Binds when pressing Reset Controls"), g_Config.m_ClDDRaceBinds, &Button)) + if(DoButton_CheckBox(&g_Config.m_ClDDRaceBinds, Localize("Enable DDRace binds when pressing Reset Controls"), g_Config.m_ClDDRaceBinds, &Button)) { g_Config.m_ClDDRaceBinds ^= 1; } + + MainView.HSplitTop(20.0f, &Button, &MainView); + if(DoButton_CheckBox(&g_Config.m_ClAutoRaceRecord, Localize("Enable save the best demo of each race"), g_Config.m_ClAutoRaceRecord, &Button)) + { + g_Config.m_ClAutoRaceRecord ^= 1; + } + + MainView.HSplitTop(20.0f, &Button, &MainView); + if(DoButton_CheckBox(&g_Config.m_ClDemoName, Localize("Enable save the player name within the demo"), g_Config.m_ClDemoName, &Button)) + { + g_Config.m_ClDemoName ^= 1; + } + + MainView.HSplitTop(20.0f, &Button, &MainView); + if(DoButton_CheckBox(&g_Config.m_ClRaceGhost, Localize("Enable ghost"), g_Config.m_ClRaceGhost, &Button)) + { + g_Config.m_ClRaceGhost ^= 1; + } + + MainView.HSplitTop(20.0f, &Button, &MainView); + if(DoButton_CheckBox(&g_Config.m_ClRaceShowGhost, Localize("Enable show ghos"), g_Config.m_ClRaceShowGhost, &Button)) + { + g_Config.m_ClRaceShowGhost ^= 1; + } + + MainView.HSplitTop(20.0f, &Button, &MainView); + if(DoButton_CheckBox(&g_Config.m_ClRaceSaveGhost, Localize("Enable save ghos"), g_Config.m_ClRaceSaveGhost, &Button)) + { + g_Config.m_ClRaceSaveGhost ^= 1; + } } class CLanguage