Ejemplo n.º 1
0
        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();
            }
        }
Ejemplo n.º 2
0
        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();
            }
        }
Ejemplo n.º 3
0
        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();
            }
        }
Ejemplo n.º 4
0
        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();
            }
        }
Ejemplo n.º 5
0
        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();
            }
        }
Ejemplo n.º 6
0
        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();
            }
        }