mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-25 08:34:23 +00:00
## About The Pull Request Semi WIP cus I need to probably make an issue report for lummox, but apart from that ready for review Uses the new mouse-pos so we can combine it with screen size and size to estimate very accurately the mouse position in turf terms. In future also will need to add a way to continously poll the users mouse pos but this alone is very useful ## Why It's Good For The Game This isnt used yet, but the benefits are pretty damn obvious (hitting E and dashing towards where your mouse??? 1990s features?????) ## Changelog 🆑 refactor: Added the possibility for keybindings to report the turf they clicked on. /🆑 --------- Co-authored-by: TiviPlus <572233640+TiviPlus@users.noreply.com>
62 lines
1.4 KiB
Plaintext
62 lines
1.4 KiB
Plaintext
/datum/keybinding/client
|
|
category = CATEGORY_CLIENT
|
|
weight = WEIGHT_HIGHEST
|
|
|
|
|
|
/datum/keybinding/client/admin_help
|
|
hotkey_keys = list("F1")
|
|
name = "admin_help"
|
|
full_name = "Admin Help"
|
|
description = "Ask an admin for help."
|
|
keybind_signal = COMSIG_KB_CLIENT_GETHELP_DOWN
|
|
|
|
/datum/keybinding/client/admin_help/down(client/user, turf/target)
|
|
. = ..()
|
|
if(.)
|
|
return
|
|
user.adminhelp()
|
|
return TRUE
|
|
|
|
|
|
/datum/keybinding/client/screenshot
|
|
hotkey_keys = list("F2")
|
|
name = "screenshot"
|
|
full_name = "Screenshot"
|
|
description = "Take a screenshot."
|
|
keybind_signal = COMSIG_KB_CLIENT_SCREENSHOT_DOWN
|
|
|
|
/datum/keybinding/client/screenshot/down(client/user, turf/target)
|
|
. = ..()
|
|
if(.)
|
|
return
|
|
winset(user, null, "command=.auto")
|
|
return TRUE
|
|
|
|
/datum/keybinding/client/toggle_fullscreen
|
|
hotkey_keys = list("F11")
|
|
name = "toggle_fullscreen"
|
|
full_name = "Toggle Fullscreen"
|
|
description = "Makes the game window fullscreen."
|
|
keybind_signal = COMSIG_KB_CLIENT_FULLSCREEN_DOWN
|
|
|
|
/datum/keybinding/client/toggle_fullscreen/down(client/user, turf/target)
|
|
. = ..()
|
|
if(.)
|
|
return
|
|
user.toggle_fullscreen()
|
|
return TRUE
|
|
|
|
/datum/keybinding/client/minimal_hud
|
|
hotkey_keys = list("F12")
|
|
name = "minimal_hud"
|
|
full_name = "Minimal HUD"
|
|
description = "Hide most HUD features"
|
|
keybind_signal = COMSIG_KB_CLIENT_MINIMALHUD_DOWN
|
|
|
|
/datum/keybinding/client/minimal_hud/down(client/user, turf/target)
|
|
. = ..()
|
|
if(.)
|
|
return
|
|
user.mob.button_pressed_F12()
|
|
return TRUE
|