From 77a3147ef3cefbeb7f23fb01767bc4869f4ff5f7 Mon Sep 17 00:00:00 2001 From: Superlagg Date: Tue, 26 Sep 2023 18:36:12 -0700 Subject: [PATCH] boss key --- code/modules/client/bosskey.dm | 26 ++++++++++++++++++++++ code/modules/client/preferences_toggles.dm | 9 ++++++-- fortune13.dme | 1 + 3 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 code/modules/client/bosskey.dm diff --git a/code/modules/client/bosskey.dm b/code/modules/client/bosskey.dm new file mode 100644 index 00000000000..aaddf83fe54 --- /dev/null +++ b/code/modules/client/bosskey.dm @@ -0,0 +1,26 @@ +/client + var/boss = FALSE + +/client/verb/boss_key() + set name = "Boss Key" + set desc = "Press this to avoid uncomfortable HR meetings." + set category = "OOC" + + if(boss) // unboss + fit_viewport() + to_chat(src, span_hypnophrase("Phew, that was close.")) + boss = FALSE + return + winset(src, "mainwindow.split", "splitter=100") + to_chat(src, span_phobia("Oh no, the boss is coming!")) + boss = TRUE + +/datum/keybinding/client/bosskey + hotkey_keys = list("=") + name = "bosskey" + full_name = "Boss Key" + description = "Press this to avoid uncomfortable HR meetings. Great to use in the middle of a boss fight." + +/datum/keybinding/client/bosskey/down(client/user) + user.boss_key() + return TRUE diff --git a/code/modules/client/preferences_toggles.dm b/code/modules/client/preferences_toggles.dm index 3e3028d84e0..12a993f86d4 100644 --- a/code/modules/client/preferences_toggles.dm +++ b/code/modules/client/preferences_toggles.dm @@ -289,8 +289,13 @@ TOGGLE_CHECKBOX(/datum/verbs/menu/Settings, toggle_gun_cursor)() usr.client.prefs.save_preferences() to_chat(usr, "You will [(usr.client.prefs.chat_toggles & AIM_CURSOR_ON) ? "now" : "no longer"] see a sickass cursor when you have a gun out.") SSblackbox.record_feedback("nested tally", "preferences_verb", 1, list("Toggle Gun Cursor", "[(usr.client.prefs.chat_toggles & CHAT_BANKCARD) ? "Enabled" : "Disabled"]")) -/datum/verbs/menu/Settings/toggle_gun_cursor/Get_checked(client/C) - return C.prefs.cb_toggles & AIM_CURSOR_ON + + +TOGGLE_CHECKBOX(/datum/verbs/menu/Settings, fit_window)() + set name = "Boss Left" + set category = "Preferences" + set desc = "Fit Viewport" + usr.client.fit_viewport() GLOBAL_LIST_INIT(ghost_forms, list("ghost","ghostking","ghostian2","skeleghost","ghost_red","ghost_black", \ "ghost_blue","ghost_yellow","ghost_green","ghost_pink", \ diff --git a/fortune13.dme b/fortune13.dme index 2fcf77545c2..7998a8c45f2 100644 --- a/fortune13.dme +++ b/fortune13.dme @@ -1983,6 +1983,7 @@ #include "code\modules\cargo\packs\vending.dm" #include "code\modules\chatter\chatter.dm" #include "code\modules\client\border_control.dm" +#include "code\modules\client\bosskey.dm" #include "code\modules\client\client_colour.dm" #include "code\modules\client\client_defines.dm" #include "code\modules\client\client_procs.dm"