string DrawGeneratedText() { GUILayout.BeginVertical("Box"); var generatedViewCode = ConduitCodeGeneration .GenerateViewTemplate( SelectedControllerName, _viewName); foreach (var line in generatedViewCode.Split('\n')) { GUILayout.Label(line.Replace("\t", " ")); } GUILayout.EndVertical(); return(generatedViewCode); }
private string DrawGeneratedText() { GUILayout.BeginVertical("Box"); var generatedText = ConduitCodeGeneration .GenerateModelTemplate( _modelName, SelectedModelParent, _isModelRoot); foreach (var line in generatedText.Split('\n')) { GUILayout.Label(line.Replace("\t", " ")); } GUILayout.EndVertical(); return(generatedText); }
private string DrawGeneratedText() { GUILayout.BeginVertical("Box"); var generatedText = ConduitCodeGeneration .GenerateControllerTemplate( SelectedModelStr, SelectedControllerStr, _exclusive, _modelBound ); foreach (var line in generatedText.Split('\n')) { GUILayout.Label(line.Replace("\t", " ")); } GUILayout.EndVertical(); return(generatedText); }
static string SanatizeModelName(string model) { return(ConduitCodeGeneration.CamelCaseSentence(model)); }