/tg/ Station 13 - Modules - TypesVar Details - Proc Details

spellbook_manager

The "spellbook" - a character creation window that allows people to select spells for their characters.

Vars

currently_selectedThe current selected entries.
customization_menuOur currently open customization customization_menu.
disclaimer_openIs the disclaimer text open?
explanation_openIs the magic system explanation open?
ownerThe client of the person using the UI
preferenceSpellbook preference singleton for easy access
save_on_closeWhether, on close, we save the list

Procs

customize_itemOpen a new customization menu and pass our args to it.
deselect_itemDeselect [deselected_item].
get_disclaimer_textReturns a formatted string for use in the UI.
get_explanation_textReturns a formatted string for use in the UI.
list_to_dataTakes an assoc list of [typepath]s to [singleton datum] And formats it into an object for TGUI.
select_itemSet selected item -> params.

Var Details

currently_selected

The current selected entries.

customization_menu

Our currently open customization customization_menu.

disclaimer_open

Is the disclaimer text open?

explanation_open

Is the magic system explanation open?

owner

The client of the person using the UI

preference

Spellbook preference singleton for easy access

save_on_close

Whether, on close, we save the list

Proc Details

customize_item

Open a new customization menu and pass our args to it.

deselect_item

Deselect [deselected_item].

get_disclaimer_text

Returns a formatted string for use in the UI.

get_explanation_text

Returns a formatted string for use in the UI.

list_to_data

Takes an assoc list of [typepath]s to [singleton datum] And formats it into an object for TGUI.

select_item

Set selected item -> params.