added perf text option to settings menu

This commit is contained in:
Chris Forbes
2010-03-23 07:48:16 +13:00
parent b15ef59a41
commit a6ed985c70
2 changed files with 23 additions and 0 deletions

View File

@@ -67,6 +67,9 @@ namespace OpenRA.Widgets.Delegates
if (w.Id == "SETTINGS_CHECKBOX_PERFGRAPH")
return Game.Settings.PerfGraph;
if (w.Id == "SETTINGS_CHECKBOX_PERFTEXT")
return Game.Settings.PerfText;
return false;
}
@@ -96,6 +99,12 @@ namespace OpenRA.Widgets.Delegates
return true;
}
if (w.Id == "SETTINGS_CHECKBOX_PERFTEXT")
{
Game.Settings.PerfText = !Game.Settings.PerfText;
return true;
}
return false;
}