Pet Commands QOL . makes pet commands easier to use (#88495)

## About The Pull Request
this PR improves the UX of pet commands a bit. i decided to expand on
their radial menu. You can now hold shift and hover over your pet to
display a menu of commands which you can choose from. alternatively, you
can still type out commands in chat


https://github.com/user-attachments/assets/9da7f7ea-58a3-4fd6-b040-45cc05cda51d



## Why It's Good For The Game
makes pet commands easier to give out when you're managing more than 1
pet. also fixes the fishing command not working.

## Changelog
🆑
qol: holding shift and hovering over your pet will display a list of
commands you can click from
fix: fixes the fishing pet command not working
/🆑
This commit is contained in:
Ben10Omintrix
2024-12-22 03:05:30 +01:00
committed by GitHub
parent d39dd980b8
commit efe62c5a72
50 changed files with 426 additions and 220 deletions
+2
View File
@@ -21,6 +21,8 @@
return SEND_SIGNAL(user.mob, keybind_signal) & COMSIG_KB_ACTIVATED
/datum/keybinding/proc/up(client/user)
SHOULD_CALL_PARENT(TRUE)
SEND_SIGNAL(user.mob, DEACTIVATE_KEYBIND(keybind_signal))
return FALSE
/datum/keybinding/proc/can_use(client/user)
+3
View File
@@ -46,6 +46,7 @@
return TRUE
/datum/keybinding/living/look_up/up(client/user)
. = ..()
var/mob/living/L = user.mob
L.end_look_up()
return TRUE
@@ -66,6 +67,7 @@
return TRUE
/datum/keybinding/living/look_down/up(client/user)
. = ..()
var/mob/living/L = user.mob
L.end_look_down()
return TRUE
@@ -144,6 +146,7 @@
return TRUE
/datum/keybinding/living/toggle_move_intent/up(client/user)
. = ..()
var/mob/living/M = user.mob
M.toggle_move_intent()
return TRUE
+7
View File
@@ -191,3 +191,10 @@
if(.)
return
user.movement_locked = FALSE
/datum/keybinding/living/view_pet_data
hotkey_keys = list("Shift")
name = "view_pet_commands"
full_name = "View Pet Commands"
description = "Hold down to see all the commands you can give your pets!"
keybind_signal = COMSIG_KB_LIVING_VIEW_PET_COMMANDS