add perf graph debug switch to settings menu
This commit is contained in:
@@ -64,6 +64,9 @@ namespace OpenRA.Widgets.Delegates
|
||||
if (w.Id == "SETTINGS_CHECKBOX_INDEXDEBUG")
|
||||
return Game.Settings.IndexDebug;
|
||||
|
||||
if (w.Id == "SETTINGS_CHECKBOX_PERFGRAPH")
|
||||
return Game.Settings.PerfGraph;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -87,6 +90,12 @@ namespace OpenRA.Widgets.Delegates
|
||||
return true;
|
||||
}
|
||||
|
||||
if (w.Id == "SETTINGS_CHECKBOX_PERFGRAPH")
|
||||
{
|
||||
Game.Settings.PerfGraph = !Game.Settings.PerfGraph;
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user