protected void DrawHelperText(ICheatCommand InCommand)
{
// GUILayout.Label(InCommand.fullyHelper);
GUILayout.BeginHorizontal();
DrawLabel(InCommand.command.baseName + " ");
int CurrentArgIndex = arguments != null && arguments.Length > 0 ? arguments.Length - 1 : -1;
if (InCommand.argumentsTypes != null)
{
for (int i = 0; i < InCommand.argumentsTypes.Length; ++i)
{
Type ThisType = InCommand.argumentsTypes[i].argumentType;
string ArgDesc = string.Format(" <{0}{2}|{1}>", InCommand.argumentsTypes[i].name, ThisType.Name, InCommand.argumentsTypes[i].isOptional ? "(Optional)" : "");
if (CurrentArgIndex == i)
{
GUI.contentColor = Color.green;
}
DrawLabel(ArgDesc);
if (CurrentArgIndex == i)
{
GUI.contentColor = Color.white;
}
}
}
DrawLabel(string.Format(" Desc: {0}", InCommand.comment));
GUILayout.EndHorizontal();
}