/// <summary> /// Instance list on window left side /// </summary> public void DrawInstanceList() { ImGui.Text("Instance List"); ImGuiView.TableView("InstanceListView", () => { foreach (var pair in m_Instances) { ImGui.TableNextRow(); //Instance Type ImGui.TableNextColumn(); m_TypeDrawer.DrawType(pair.Value.type); //Instance name ImGui.TableNextColumn(); DrawInstanceButton(pair.Key, pair.Value); //Instance Parent Type ImGui.TableNextColumn(); m_TypeDrawer.DrawType(pair.Value.parent); ///Remove ImGui.TableNextColumn(); if (ImGui.Button("X##RemoveInstanceList" + pair.Key)) { m_Instances.Remove(pair.Key); break; } } }, ImGuiTableFlags.Resizable, "Type", "Instance", "Parent", "Remove"); }
public void DrawTableWithSingleRow(string tableName, Type type, string name, bool errored = false) { ImGuiView.TableView(tableName, () => { ImGui.TableNextRow(); paramTable.DrawRow(type, name, ref m_InputText, errored); }, "Type", "Name", "Value", "Error"); }
protected override void DrawWindowContent() { m_TabBarView.OnGui(); ImGuiView.TableView("##ClassWindowTable", () => { ImGui.TableNextRow(); ImGui.TableNextColumn(); DrawInstanceList(); ImGui.TableNextColumn(); DrawSubViews(); }, 2, ImGuiTableFlags.Resizable); }
public void DrawTable(List <MethodInfo> table, string TableName) { if (table.Count == 0) { return; } ImGuiView.TableView(TableName, () => { foreach (var method in table) { ImGui.TableNextRow(); DrawTableRow(method); } }, TableFlags, "Return Type", "Method Name", "Params"); }
public void DrawFieldTable(List <FieldInfo> fieldList, string tableName) { if (fieldList.Count == 0) { return; } ImGuiView.TableView(tableName, () => { foreach (var field in fieldList) { ImGui.TableNextRow(); DrawTableRow(field, m_FieldDrawer); } }, TableFlags, "Type", "Name", "Value"); }
/// <summary> /// 4. Draw Class Table /// </summary> protected virtual void DrawClassTable(ClassSubCategory classDict, string label) { PadLeft(" ", () => { ImGuiView.TableView("Tabel" + label, () => { foreach (var class2type in classDict) { if (class2type.Key.IndexOf(m_SearchText) != -1) { ImGui.TableNextRow(); DrawClassTableRow(class2type.Value, label); } } }, s_TableFlags, "Class Name", "Class Type", "Base Class"); }); }
void DrawTable() { ImGuiView.TableView("MethodInvokeTable", () => { for (int i = 0; i < inputText.Length; ++i) { ImGui.TableNextRow(); if (m_ErrorRow == i) { paramTable.DrawRow(methodParameters[i].ParameterType, methodParameters[i].Name, ref inputText[i], true); } else { paramTable.DrawRow(methodParameters[i].ParameterType, methodParameters[i].Name, ref inputText[i]); } } }, "Type", "Name", "Value", "Error"); }
public void DrawTable( List <PropertyInfo> propertyList, string table_name = "StaticPropertyTable" ) { if (propertyList.Count == 0) { return; } ImGuiView.TableView(table_name, () => { foreach (PropertyInfo property in propertyList) { ImGui.TableNextRow(); DrawTableRow(property); } }, TableFlags, "Type", "Name", "Value", "Gettable", "Settable"); }