Functions to ease the creation and manipulation of the keybinding tables in the GUI
This module contains several functions that are used in creating the FastHTML gui binding tables.
get_modifier_name
get_modifier_name (db, modifier_id)
Safely get the modifier name, returning ‘None’ if not found
get_key_name
get_key_name (db, key_id)
Safely get the key name, returning ‘Please select key’ if not found
get_action_name
get_action_name (db, action_id)
Safely get the action name, returning ‘Unknow action’ if not fouund
create_binding_table_category
create_binding_table_category (db, game_id, action_category_id, print_layout=False)
create_bindings_table
create_bindings_table (db, game_id)
Create tables for all action categories and stack them vertically
create_bindings_table_print
create_bindings_table_print (db, game_id)
create_actions_table
create_actions_table (db)
Create a table for all actions