Yogstation 13 - Modules - TypesProc Details

Achievement browser

One is created for every person who wants to view their achievements. See: /datum/controller/subsystem/achievements and [/client/verb/checkachievements()]

Procs

NewInstanciates the achievement browser
get_achievementsFetches all the achievements for the client from SSachievements
ui_dataSupplies the data for the TGUI window.
ui_stateOpens the UI for the given user.

Proc Details

New

Instanciates the achievement browser

Assigns the given client to this browser

Arguments:

get_achievements

Fetches all the achievements for the client from SSachievements

Returns a dictionary with each key being the achievement, and each value a boolean representing whether it's been unlocked

Arguments:

ui_data

Supplies the data for the TGUI window.

Gives all the data necessary for the TGUI Window, including names, unlocked status, and descriptions

Arguments:

ui_state

Opens the UI for the given user.

Opens the TGUI for the given user. Called by /client/verb/checkachievements

Arguments: