-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds quick "Command Announcement" button for Game Masters (#355)
- Loading branch information
Showing
3 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
code/modules/admin/game_master/extra_buttons/marine_announce.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/client/proc/admin_marine_announcement() | ||
set name = "Command Announcement" | ||
set category = "Game Master.Extras" | ||
|
||
if(!check_rights(R_ADMIN)) | ||
return | ||
|
||
var/body = tgui_input_text(src, "Enter the body text for the announcement.", title = "Announcement Body", multiline = TRUE, encode = FALSE) | ||
if(!body) | ||
return | ||
var/title = tgui_input_text(src, "Enter the title of the announcement. Leave blank for the default title.", title = "Announcement Title") | ||
if(!title) | ||
title = COMMAND_ANNOUNCE | ||
marine_announcement(body, "[title]") | ||
message_admins("[key_name_admin(src)] has made an admin command announcement.") | ||
log_admin("[key_name_admin(src)] made an admin command announcement: [body]") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters