mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 10:11:09 +00:00
* Admin Verb Datums MkIII | Now with functional command bar (#82511) * Modular stuffs * Put some admin jump verbs back into the context menu | sorts area jump list again (#82647) ## About The Pull Request See title. ## Why It's Good For The Game Some admins wanted all the jump verbs back, aswell as making them not AGhost you. Also make the Jump To Area verb use a sorted list again * Hey what if admins were allowed to use the player panel (#82682) Re-adds the player panel verb to the verb panel. * Controller Overview UI (#82739) * Fixes a minor spelling mistake on the admin panel/verb list (#82747) ## About The Pull Request Corrects `inisimin` to `invisimin`. This addresses #82728, but only fixes one of the two issues mentioned ## Why It's Good For The Game -1 spelling mistake ## Changelog 🆑 spellcheck: 'inisimin' verb corrected to 'invisimin' /🆑 * Player Panel-age (#82757) * Admin Forced Mob Rename and Preference Update (#82715) --------- Co-authored-by: Zephyr <12817816+ZephyrTFA@users.noreply.github.com> Co-authored-by: Useroth <37159550+Useroth@users.noreply.github.com> Co-authored-by: chel <64568243+iliyaxox@users.noreply.github.com>
28 lines
944 B
Plaintext
28 lines
944 B
Plaintext
GENERAL_PROTECT_DATUM(/datum/admin_verb)
|
|
|
|
/**
|
|
* This is the admin verb datum. It is used to store the verb's information and handle the verb's functionality.
|
|
* All of this is setup for you, and you should not be defining this manually.
|
|
* That means you reader.
|
|
*/
|
|
/datum/admin_verb
|
|
var/name //! The name of the verb.
|
|
var/description //! The description of the verb.
|
|
var/category //! The category of the verb.
|
|
var/permissions //! The permissions required to use the verb.
|
|
var/visibility_flag //! The flag that determines if the verb is visible.
|
|
VAR_PROTECTED/verb_path //! The path to the verb proc.
|
|
|
|
/datum/admin_verb/Destroy(force)
|
|
if(!force)
|
|
return QDEL_HINT_LETMELIVE
|
|
return ..()
|
|
|
|
/// Assigns the verb to the admin.
|
|
/datum/admin_verb/proc/assign_to_client(client/admin)
|
|
add_verb(admin, verb_path)
|
|
|
|
/// Unassigns the verb from the admin.
|
|
/datum/admin_verb/proc/unassign_from_client(client/admin)
|
|
remove_verb(admin, verb_path)
|