File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -2333,7 +2333,15 @@ static CVarOption gameOptions[] = {
23332333 CVarOption ( " ui_autoSwitch" , " Auto Weapon Switch" , OT_BOOL ),
23342334 CVarOption ( " Visual" ),
23352335 CVarOption ( " g_showHud" , " Show HUD" , OT_BOOL ),
2336- CVarOption ( " com_showFPS" , " Show Framerate (FPS)" , OT_BOOL ),
2336+ CVarOption ( " com_showFPS" , []( idCVar& cvar ) {
2337+ int curFormat = idMath::ClampInt ( 0 , 2 , cvar.GetInteger () );
2338+ const char * choices = " Don't show framerate\0 Show only framerate\0 Show framerate and frame times (avg/min/max)\0 " ;
2339+ if ( ImGui::Combo ( " Show Framerate (FPS)" , &curFormat, choices ) ) {
2340+ cvar.SetInteger ( curFormat );
2341+ }
2342+ AddTooltip ( " com_showFPS" );
2343+ AddDescrTooltip ( cvar.GetDescription () );
2344+ } ),
23372345 CVarOption ( " ui_showGun" , " Show Gun Model" , OT_BOOL ),
23382346 CVarOption ( " g_decals" , " Show Decals" , OT_BOOL ),
23392347 CVarOption ( " g_bloodEffects" , " Show Blood and Gibs" , OT_BOOL ),
You can’t perform that action at this time.
0 commit comments