added perf text option to settings menu
This commit is contained in:
@@ -67,6 +67,9 @@ namespace OpenRA.Widgets.Delegates
|
|||||||
if (w.Id == "SETTINGS_CHECKBOX_PERFGRAPH")
|
if (w.Id == "SETTINGS_CHECKBOX_PERFGRAPH")
|
||||||
return Game.Settings.PerfGraph;
|
return Game.Settings.PerfGraph;
|
||||||
|
|
||||||
|
if (w.Id == "SETTINGS_CHECKBOX_PERFTEXT")
|
||||||
|
return Game.Settings.PerfText;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -96,6 +99,12 @@ namespace OpenRA.Widgets.Delegates
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (w.Id == "SETTINGS_CHECKBOX_PERFTEXT")
|
||||||
|
{
|
||||||
|
Game.Settings.PerfText = !Game.Settings.PerfText;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -165,6 +165,20 @@ Container:
|
|||||||
Width:300
|
Width:300
|
||||||
Height:25
|
Height:25
|
||||||
Text:Show Performance Graph
|
Text:Show Performance Graph
|
||||||
|
Checkbox@SETTINGS_CHECKBOX_PERFTEXT:
|
||||||
|
Id:SETTINGS_CHECKBOX_PERFTEXT
|
||||||
|
X:100
|
||||||
|
Y:180
|
||||||
|
Width:20
|
||||||
|
Height:20
|
||||||
|
Delegate:SettingsMenuDelegate
|
||||||
|
Label@SETTINGS_LABEL_PERFTEXT:
|
||||||
|
Id:SETTINGS_LABEL_PERFTEXT
|
||||||
|
X:135
|
||||||
|
Y:180
|
||||||
|
Width:300
|
||||||
|
Height:25
|
||||||
|
Text:Show Performance Text
|
||||||
Button@SETTINGS_BUTTON_OK:
|
Button@SETTINGS_BUTTON_OK:
|
||||||
Id:SETTINGS_BUTTON_OK
|
Id:SETTINGS_BUTTON_OK
|
||||||
X:PARENT_RIGHT - 180
|
X:PARENT_RIGHT - 180
|
||||||
|
|||||||
Reference in New Issue
Block a user