mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 20:15:47 +01:00
Hookup Change Command Name to Create Command Report (#59941)
Adds and defaults the contents of command_name() to the list of names in the Create Command Report tgui presets if changed from Central Command.
This commit is contained in:
@@ -49,10 +49,13 @@
|
||||
/// The sound that's going to accompany our message.
|
||||
var/played_sound = DEFAULT_ANNOUNCEMENT_SOUND
|
||||
/// A static list of preset names that can be chosen.
|
||||
var/static/list/preset_names = list(CENTCOM_PRESET, SYNDICATE_PRESET, WIZARD_PRESET, CUSTOM_PRESET)
|
||||
var/list/preset_names = list(CENTCOM_PRESET, SYNDICATE_PRESET, WIZARD_PRESET, CUSTOM_PRESET)
|
||||
|
||||
/datum/command_report_menu/New(mob/user)
|
||||
ui_user = user
|
||||
if(command_name() != CENTCOM_PRESET)
|
||||
command_name = command_name()
|
||||
preset_names.Insert(1, command_name())
|
||||
|
||||
/datum/command_report_menu/ui_state(mob/user)
|
||||
return GLOB.admin_state
|
||||
|
||||
Reference in New Issue
Block a user