game_views#

This module contains all view for game creation and general game handling.

class src.game_views.GameSelect(config, process_data)[source]#

Select class to select a game to set new character.

async callback(interaction)[source]#

|coro|

The callback associated with this UI item.

This can be overridden by subclasses.

Parameters:

interaction (Interaction) – The interaction that triggered this UI item.

class src.game_views.GameSelectView(config, process_data)[source]#

View class to select a genre for a new game.

class src.game_views.GenreSelect(config, process_data, genres)[source]#

Select class to select a genre for a new game.

async callback(interaction)[source]#

|coro|

The callback associated with this UI item.

This can be overridden by subclasses.

Parameters:

interaction (Interaction) – The interaction that triggered this UI item.

class src.game_views.GenreSelectView(config, process_data, genres)[source]#

View class to select a genre for a new game.

class src.game_views.GameInfoModal(config, process_data)[source]#

Modal class to enter general game information.

async on_submit(interaction)[source]#

Callback function when the modal is submitted.

class src.game_views.UserSelectView(config, process_data)[source]#

View class to select user for a new game.

async user_select(interaction, select)[source]#

Callback function when a user is selected.

class src.game_views.StoryFictionModal(parent_view, process_data, config)[source]#

Modal class to enter additional text for the story.

async on_submit(interaction)[source]#

Callback function when the modal is submitted.

class src.game_views.KeepTellingButtonView(config, process_data)[source]#

This view generates buttons for the user to select the next story part to continue the story.

async button_callback_f(button, _)[source]#

Callback function when the fiction button is clicked.

async button_callback_e(button, _)[source]#

Callback function when the event button is clicked.

class src.game_views.NewGameStatusSelectView(config, process_data)[source]#

StatusSelectView class to create a view for the user to select the target status of the selected game

class src.game_views.NewGameStatusSelect(config, process_data)[source]#

StatusSelect class to create a input menu to select the target status for the game. Here the input is built dynamically with the possible status of a game based on current status.

async callback(interaction)[source]#

|coro|

The callback associated with this UI item.

This can be overridden by subclasses.

Parameters:

interaction (Interaction) – The interaction that triggered this UI item.

class src.game_views.StartTaleButtonView(config, process_data)[source]#

This view generates buttons for the user to select the tale type to start the story. It is only used during game switch status from CREATED to RUNNING.

async button_callback_sz(button, _)[source]#

Callback function when button for standard zombie tale with more then 1 player is clicked.

async button_callback_ow(button, _)[source]#

Callback function when button for own tale with more then 1 player is clicked.

class src.game_views.OwnTaleStartModal(parent_view, process_data, config)[source]#

Modal class to enter additional text for the story.

async on_submit(interaction)[source]#

|coro|

Called when the modal is submitted.

Parameters:

interaction (Interaction) – The interaction that submitted this modal.

class src.game_views.StZombieTaleStartModal(parent_view, process_data, config)[source]#

Modal class to enter additional text for the story.

async on_submit(interaction)[source]#

|coro|

Called when the modal is submitted.

Parameters:

interaction (Interaction) – The interaction that submitted this modal.