Skip to content

Commit

Permalink
marine announce
Browse files Browse the repository at this point in the history
  • Loading branch information
nauticall committed Aug 1, 2024
1 parent 6e5aef8 commit 43163b0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions code/modules/admin/admin_verbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ var/list/roundstart_mod_verbs = list(
add_verb(src, /client/proc/open_resin_panel)
add_verb(src, /client/proc/open_sound_panel)
add_verb(src, /client/proc/toggle_join_xeno)
add_verb(src, /client/proc/admin_marine_announcement)
add_verb(src, /client/proc/game_master_rename_platoon)
add_verb(src, /client/proc/toggle_vehicle_blockers)
add_verb(src, /client/proc/toggle_rappel_menu)
Expand Down
14 changes: 14 additions & 0 deletions code/modules/admin/game_master/extra_buttons/marine_announce.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/client/proc/admin_marine_announcement()
set name = "Marine 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)
return
else
marine_announcement(input, "[MAIN_SHIP_NAME]")
message_admins("[key_name_admin(src)] has made an admin command announcement.")
log_admin("[key_name_admin(src)] made an admin command announcement: [input]")
1 change: 1 addition & 0 deletions colonialmarines.dme
Original file line number Diff line number Diff line change
Expand Up @@ -1390,6 +1390,7 @@
#include "code\modules\admin\game_master\game_master_submenu.dm"
#include "code\modules\admin\game_master\resin_panel.dm"
#include "code\modules\admin\game_master\sound_panel.dm"
#include "code\modules\admin\game_master\extra_buttons\marine_announce.dm"
#include "code\modules\admin\game_master\extra_buttons\rappel_menu.dm"
#include "code\modules\admin\game_master\extra_buttons\rename_platoon.dm"
#include "code\modules\admin\game_master\extra_buttons\toggle_join_xeno.dm"
Expand Down

0 comments on commit 43163b0

Please sign in to comment.