Skip to content

hkb_editor.gui.dialogs.create_stateinfo_dialog

create_stateinfo_dialog

Bases: DpgItem

Create a new animation slot (StateInfo + CMSG + ClipGenerator).

Parameters:

Name Type Description Default
behavior HavokBehavior

Behavior to modify.

required
callback callable

Called as callback(tag, (state, cmsg, clip), user_data) on confirm.

required
active_statemachine HkbRecord or str

Pre-selected state machine; falls back to the first one found.

None
title str

Window title bar label.

'Create Slot'
tag int or str

Explicit tag; auto-generated if 0.

0
user_data any

Passed through to callback.

None

pin_objects property

pin_objects: bool

Whether the caller should pin the created objects.

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