Achievement browser
One is created for every person who wants to view their achievements. See: /datum/controller/subsystem/achievements and [/client/verb/checkachievements()]
Procs | |
New | Instanciates the achievement browser |
---|---|
get_achievements | Fetches all the achievements for the client from SSachievements |
ui_data | Supplies the data for the TGUI window. |
ui_state | Opens the UI for the given user. |
Proc Details
New
Instanciates the achievement browser
Assigns the given client to this browser
Arguments:
- C - The client we're created for. See /client
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:
- C - The client we're fetching achievements for. See /client
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:
- user - The mob we're opening the UI for. See /mob
ui_state
Opens the UI for the given user.
Opens the TGUI for the given user. Called by /client/verb/checkachievements
Arguments:
- user - The mob we're opening it for