Skip to content

ReputationLevelDialog ​

Inherits: ConfirmationDialog

Dialog for creating and editing reputation levels within a faction.

Description ​

This dialog dynamically builds its UI and can be used to add new reputation levels or edit existing ones. It emits a signal when the user confirms their changes.

Variables ​

LineEditname_edit
SpinBoxmin_rep_spin
TextEditdescription_edit
ColorPickerButtoncolor_picker
OptionButtonrelationship_button
ReputationLevelediting_levelnull

Methods ​

voidopen_for_new()
voidopen_for_edit( level: ReputationLevel )

Signals ​

level_saved( level: ReputationLevel ) ​

Emitted when the user confirms the dialog with valid reputation level data

Variable descriptions ​

LineEdit name_edit ​

UI controls for editing reputation level properties

SpinBox min_rep_spin ​

No description yet.

TextEdit description_edit ​

No description yet.

ColorPickerButton color_picker ​

No description yet.

OptionButton relationship_button ​

No description yet.

ReputationLevel editing_level = null ​

The reputation level being edited, or null if creating a new one

Method descriptions ​

void open_for_new() ​

Opens the dialog to create a new reputation level.

void open_for_edit( level: ReputationLevel ) ​

Opens the dialog to edit an existing reputation level.