Skip to content

Commit

Permalink
add separator
Browse files Browse the repository at this point in the history
  • Loading branch information
broken-bytes committed Mar 7, 2024
1 parent 1e6b547 commit 9131ccf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripting/editor/windowsystem/windows/Inspector.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ class Inspector: EditorWindow {
}

self.selectedObject = entity

var components = entity.components
//let reflection = ReflectionManager.shared.reflection(for: event.selectedObject)
}
}

Expand All @@ -39,6 +36,9 @@ class Inspector: EditorWindow {
return
}

// Draw the component's name
EditorNativeCore.shared.label("\(componentType)")

for property in reflection.fields {
// Draw a label for the property
switch property.type {
Expand All @@ -55,6 +55,8 @@ class Inspector: EditorWindow {
break
}
}

EditorNativeCore.shared.separator()
}
}
}
4 changes: 4 additions & 0 deletions scripting/editornative/NativeEditorCore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ public class EditorNativeCore {
return EditorCore_EndHorizontal()
}

public func separator() {
return EditorCore_Separator()
}

public func drawDefaultImGuiDockspace() {
EditorCore_DrawDefaultDocking()
}
Expand Down

0 comments on commit 9131ccf

Please sign in to comment.