Skip to content

Commit

Permalink
customizable title + conflict fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nauticall committed Aug 13, 2024
1 parent 27dc1f2 commit d9bcca3
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions code/modules/admin/game_master/extra_buttons/marine_announce.dm
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
/client/proc/admin_marine_announcement()
set name = "Marine Announcement"
set name = "Command Announcement"
set category = "Game Master.Extras"

if(!check_rights(R_ADMIN))
return

var/input = tgui_input_text(src, "Enter the text for the announcement.", title = "Make Marine Announcement", multiline = TRUE, encode = FALSE)
if(!input)
var/body = tgui_input_text(src, "Enter the body text for the announcement.", title = "Announcement Body", multiline = TRUE, encode = FALSE)
if(!body)
return
else
marine_announcement(input, "[COMMAND_ANNOUNCE]")
message_admins("[key_name_admin(src)] has made an admin command announcement.")
log_admin("[key_name_admin(src)] made an admin command announcement: [input]")
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]")

0 comments on commit d9bcca3

Please sign in to comment.