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