Skip to content

hkb_editor.gui.dialogs.fix_common_problems_dialog

fix_common_problems_dialog

Bases: DpgItem

Pick and run the automated behavior repairs.

The available fixes come from :data:hkb_editor.workflows.fix_common_problems.COMMON_PROBLEMS; the dialog just renders a checkbox per entry.

Parameters:

Name Type Description Default
behavior HavokBehavior

Behavior to repair.

required
callback callable

Called as callback(tag, num_fixes, user_data) after a run.

None
title str

Window title bar label.

'Fix Common Problems'
tag int or str

Explicit tag; auto-generated if 0.

0
user_data any

Passed through to callback.

None

show_message

show_message(
    msg: str = None, color: RGBA = style.red
) -> None

Show or hide the notification label. Pass msg=None to hide.

Ko-fi donations