modules.gui.hierarchy#
- class modules.gui.hierarchy.Hierarchy(*args: Any, **kwargs: Any)#
Bases:
Context- __init__(context: EmberEngine)#
- draw_recursive(parent: GameObject = None, objects: Dict[UUID, GameObject] = [], depth: int = 0, base_tree_flags: imgui_bundle.imgui.TreeNodeFlags_ = imgui_bundle.imgui.TreeNodeFlags_.none) None#
Recursivly render the gameObjects in a treenode
- Parameters:
parent – The root object or parent during recursion
parent – GameObject
objects (list[GameObject]) – A list of gameobjects, root or children during recursion
depth (int) – Current depth in the treenode, starting from 0
base_tree_flags (imgui.TreeNodeFlags_) – Base ImGui tree flags applied to each tree node.
- render() None#
- styles = {<class 'gameObjects.attachables.physicBase.PhysicBase'>: HierarchyStyle(text=(0.62, 0.5, 0.78, 1.0), lines=(0.62, 0.5, 0.78, 0.3)), <class 'gameObjects.attachables.physicLink.PhysicLink'>: HierarchyStyle(text=(0.72, 0.62, 0.86, 0.95), lines=(0.72, 0.62, 0.86, 0.22))}#
Logic related to rendering the Hierarchy window
- tree_node_line_style_color(obj: GameObject = None)#
- tree_node_parse_style(obj: GameObject = None) int#
- class modules.gui.hierarchy.HierarchyStyle(text: tuple[float, float, float, float] = (1.0, 1.0, 1.0, 1.0), lines: tuple[float, float, float, float] = (1.0, 1.0, 1.0, 1.0))#
Bases:
object- __init__(text: tuple[float, float, float, float] = (1.0, 1.0, 1.0, 1.0), lines: tuple[float, float, float, float] = (1.0, 1.0, 1.0, 1.0)) None#
- lines: tuple[float, float, float, float] = (1.0, 1.0, 1.0, 1.0)#
- text: tuple[float, float, float, float] = (1.0, 1.0, 1.0, 1.0)#