Skip to content

hkb_editor.gui.dialogs.merge_hierarchy_dialog

merge_hierarchy_dialog

Bases: DpgItem

Review and resolve the conflicts of a pasted object hierarchy.

Shows one table per conflict kind (events, variables, animations, types, objects), each row offering the :class:MergeAction choices that make sense for it. When a graph preview is available, selecting a node highlights every row that node references.

Parameters:

Name Type Description Default
behavior HavokBehavior

Behavior the hierarchy is merged into.

required
xml lxml Element

The pasted hierarchy; used for the graph preview.

required
results MergeResult

Conflicts found by find_conflicts; mutated as actions are picked.

required
target_record HkbRecord

Record the hierarchy is attached to.

required
callback callable

Called with no arguments once the merge has been applied.

required
title str

Window title bar label.

'Merge Hierarchy'
tag int or str

Explicit tag; auto-generated if None.

None

pin_objects property

pin_objects: bool

Whether the caller should pin the merged objects.

Ko-fi donations