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

title

Vars

current_title_screenCurrently set title screen
noticeThe current notice text, or null.
title_images_poolThe list of image files available to be picked for title screen

Procs

fill_title_images_poolIterates over all files in TITLE_SCREENS_LOCATION and loads all valid title screens to title_screens var.
hide_title_screen_fromHide the title screen from specific client.
pick_title_imagePicks title image from title_images_pool list. If the list is empty, DEFAULT_TITLE_SCREEN_IMAGE_PATH is returned
set_noticeAdds a notice to the main title screen in the form of big red text!
set_title_cssChange or reset title screen css
set_title_imageChanges title image to desired
show_title_screen_toShow the title screen to specific client.
show_title_screen_to_all_new_playersShow the title screen to all new players.
title_outputCall JavaScript function for specific client.
title_output_to_allCall JavaScript function on all clients
update_character_nameUpdate a user's character setup name.
update_title_image_for_clientSends title image to client and updates title screen for it
validate_filenameChecks wheter passed title is valid Currently validates extension and checks whether it's special image like default title screen etc.

Var Details

current_title_screen

Currently set title screen

notice

The current notice text, or null.

title_images_pool

The list of image files available to be picked for title screen

Proc Details

fill_title_images_pool

Iterates over all files in TITLE_SCREENS_LOCATION and loads all valid title screens to title_screens var.

hide_title_screen_from

Hide the title screen from specific client.

pick_title_image

Picks title image from title_images_pool list. If the list is empty, DEFAULT_TITLE_SCREEN_IMAGE_PATH is returned

set_notice

Adds a notice to the main title screen in the form of big red text!

set_title_css

Change or reset title screen css

set_title_image

Changes title image to desired

show_title_screen_to

Show the title screen to specific client.

show_title_screen_to_all_new_players

Show the title screen to all new players.

title_output

Call JavaScript function for specific client.

title_output_to_all

Call JavaScript function on all clients

update_character_name

Update a user's character setup name.

update_title_image_for_client

Sends title image to client and updates title screen for it

validate_filename

Checks wheter passed title is valid Currently validates extension and checks whether it's special image like default title screen etc.