mud_server.admin_tui.screens.characters
Characters screen for PipeWorks Admin TUI.
Lists all characters with basic metadata and allows selection for details.
Classes
Admin character list screen. |
Module Contents
- class mud_server.admin_tui.screens.characters.CharactersScreen
Bases:
textual.screen.ScreenAdmin character list screen.
Initialize state caches used for sorting and display.
- BINDINGS
- CSS = Multiline-String
Show Value
""" CharactersScreen { layout: vertical; } .characters-container { height: 1fr; padding: 1 2; } DataTable { height: 1fr; width: 100%; } DataTable > .datatable--header { text-style: bold; background: $primary; } """
- compose()
Compose the characters list layout.
- on_mount()
Verify permissions, configure the table, and load data.
- on_key(event)
Translate configured keys to actions without global bindings.
- action_cursor_up()
Move selection up one row.
- action_cursor_down()
Move selection down one row.
- action_cursor_left()
Move selection left one column.
- action_cursor_right()
Move selection right one column.
- action_select()
Open the detail screen for the selected character.
- on_data_table_row_selected(event)
Open character detail when a row is activated with mouse or Enter.
- action_sort()
Sort the character list by the focused column.
- action_back()
Return to the previous screen.
- action_quit()
Quit the application.