Ticket #2376: FPSCounterOptions.patch
File FPSCounterOptions.patch, 1.5 KB (added by , 10 years ago) |
---|
-
binaries/data/mods/public/gui/options/options.js
10 10 [translate("Background Pause"), translate("Pause single player games when window loses focus"), {"config":"pauseonfocusloss"}, "boolean"], 11 11 [translate("Disable Welcome Screen"), translate("If you disable this screen completely, you may miss important announcements.\nYou can still launch it using the main menu."), {"config":"splashscreendisable"}, "boolean"], 12 12 [translate("Detailed Tooltips"), translate("Show detailed tooltips for trainable units in unit-producing buildings."), {"config":"showdetailedtooltips"}, "boolean"], 13 [translate("Show FPS Counter"), translate("Show an FPS counter."), {"config":"showfpscounter"}, "boolean"], 13 14 ], 14 15 "graphicsSetting": 15 16 [ -
source/ps/GameSetup/GameSetup.cpp
522 522 523 523 // GUI uses VFS, so this must come after VFS init. 524 524 g_GUI->SwitchPage(gui_page, srcScriptInterface, initData); 525 526 bool showFPSCounter; 527 CFG_GET_VAL("showfpscounter", Bool, showFPSCounter); 528 if (showFPSCounter) 529 g_GUI->GetActiveGUI()->FindObjectByName("fpsCounter")->SetSetting("hidden", L"false"); 525 530 } 526 531 527 532