//called from base OnGUI, handles child property drawing protected override void DrawChildProperties(Rect position, SerializedProperty property) { //draw label Rect newPosition = DrawTopLabel(position); //draw unique id newPosition = DrawUniqueID(newPosition); //Draw name newPosition = EditorTool.DrawTextArea(newPosition, name, "Text"); //tag header newPosition = EditorTool.DrawLabel(newPosition, "Tag"); //tag newPosition = DrawTag(newPosition); //remove indent newPosition = EditorTool.GetIndentedPosition(newPosition, false); //replies header newPosition = EditorTool.DrawLabel(newPosition, "Replies"); //Draw useDefaultReply newPosition = EditorTool.DrawBoolField(newPosition, useDefaultReply, "Use Default Replies"); isDetailExpaned = useDefaultReply.boolValue; //Draw replies if not default if (isDetailExpaned == false) { newPosition = EditorTool.DrawReorderableList(newPosition, repliesList); } }
protected override void DrawChildProperties(Rect position, SerializedProperty property) { Rect newPosition = DrawTopLabel(position); //draw unique id newPosition = DrawUniqueID(newPosition); //draw name newPosition = EditorTool.DrawTextField(newPosition, name, "Name"); //draw id newPosition = EditorTool.DrawIntField(newPosition, id, "Myth ID"); //draw dev description newPosition = EditorTool.DrawTextArea(newPosition, devDescription, "Dev Description"); //draw data array newPosition = EditorTool.DrawReorderableList(newPosition, reorderableList, "Stories"); }
protected override void DrawChildProperties(Rect position, SerializedProperty property) { Rect newPosition = DrawTopLabel(position); //draw unique id newPosition = DrawUniqueID(newPosition); //draw name newPosition = EditorTool.DrawTextArea(newPosition, name, "Name"); //draw id newPosition = EditorTool.DrawIntField(newPosition, id, "Stage ID"); //draw notes newPosition = EditorTool.DrawReorderableList(newPosition, notesList, "Notes"); //draw stage points newPosition = EditorTool.DrawReorderableList(newPosition, stagePointsList, "Stage Points"); }