public void DrawInstancePropertyTable( SortedList <string, PropertyInfo> property_list, string table_name = "StaticPropertyTable" ) { if (property_list.Count == 0) { return; } if (ImGui.BeginTable(table_name, 5, TableFlags)) { ImGuiEx.TableSetupHeaders( "Type", "Name", "Value", "Gettable", "Settable"); foreach (var propertyPair in property_list) { ImGui.TableNextRow(); DrawInstanceTableRow(propertyPair); } ImGui.EndTable(); } }
public void DrawPropertyTable( SortedList <string, PropertyInfo> property_list, string table_name = "PropertyTable" ) { if (property_list.Count == 0) { return; } if (ImGui.BeginTable(table_name, 4, TableFlags)) { ImGuiEx.TableSetupHeaders( "Type", "Name", "Gettable", "Settable"); foreach (var property in property_list) { ImGui.TableNextRow(); ImGui.TableSetColumnIndex(0); propertyDrawer.DrawType(property.Value.PropertyType); ImGuiEx.TableTextRow(1, property.Key, property.Value.CanRead.ToString(), property.Value.CanWrite.ToString()); } ImGui.EndTable(); } }
public void DrawFieldTable( SortedList <string, FieldInfo> field_list, string table_name = "FieldTable" ) { if (field_list.Count == 0) { return; } if (ImGui.BeginTable(table_name, 2, TableFlags)) { ImGuiEx.TableSetupHeaders("Type", "Name"); foreach (var fieldPair in field_list) { ImGui.TableNextRow(); ImGui.TableSetColumnIndex(0); fieldDrawer.DrawType(fieldPair.Value.FieldType); ImGuiEx.TableTextRow(1, fieldPair.Key); } ImGui.EndTable(); } }
public void DrawMethodTable( SortedList <string, MethodInfo> table, string TableName = "ClassMethodTable" ) { if (table.Count == 0) { return; } if (ImGui.BeginTable(TableName, 3, TableFlags)) { ImGuiEx.TableSetupHeaders("Return Type", "Name", "Param"); foreach (var method in table) { ImGui.TableNextRow(); DrawTableRow(method); } ImGui.EndTable(); } }
public void DrawInstanceFieldTable( SortedList <string, FieldInfo> field_list, string table_name = "InstanceFieldTable" ) { if (field_list.Count == 0) { return; } if (ImGui.BeginTable(table_name, 3, TableFlags)) { ImGuiEx.TableSetupHeaders("Type", "Name", "Value"); foreach (var fieldPair in field_list) { ImGui.TableNextRow(); DrawInstanceTableRow(fieldPair); } ImGui.EndTable(); } }
public override void DrawWindowContent() { if (ImGui.BeginTable("EditorTable", 3, TableFlags)) { ImGuiEx.TableSetupHeaders(); //Left ImGui.TableSetColumnIndex(0); DrawLeft(); DrawConsoleOutput(); //Middle ImGui.TableSetColumnIndex(1); DrawEditorTop(); m_TabBarView.Draw(); m_NodeEditor.DrawWindowContent(); //Right ImGui.TableSetColumnIndex(2); DrawRight(); ImGui.EndTable(); } }