client
Vars | |
key_combos_held | A buffer for combinations such of modifiers + keys (ex: CtrlD, AltE, ShiftT). Format: "key" -> "combo" (ex: "D" -> "CtrlD" ) |
---|---|
keys_held | A buffer of currently held keys. |
last_move_dir_pressed | Movement dir of the most recently pressed movement key. Used in cardinal-only movement mode. |
movement_keys | Custom movement keys for this client |
movement_locked | Are we locking our movement input? |
next_move_dir_add | On next move, add this dir to the move that would otherwise be done |
next_move_dir_sub | On next move, subtract this dir from the move that would otherwise be done |
tooltips | datum that controls the displaying and hiding of tooltips |
Procs | |
callproc | VERBS |
nanoclose | Called when a Nano UI window is closed This is how Nano handles closed windows It must be a verb so that it can be called using winset |
reset_held_keys | Manually clears any held keys, in case due to lag or other undefined behavior a key gets stuck. |
resetnano | A "panic button" verb to close all UIs on current mob. Use it when the bug with UI not opening (because the server still considers it open despite it being closed on client) pops up. Feel free to remove it once the bug is confirmed to be fixed. |
update_special_keybinds | Updates the keybinds for special keys |
windowclose | the on-close client verb |
Var Details
key_combos_held
A buffer for combinations such of modifiers + keys (ex: CtrlD, AltE, ShiftT). Format: "key"
-> "combo"
(ex: "D"
-> "CtrlD"
)
keys_held
A buffer of currently held keys.
last_move_dir_pressed
Movement dir of the most recently pressed movement key. Used in cardinal-only movement mode.
movement_keys
Custom movement keys for this client
movement_locked
Are we locking our movement input?
next_move_dir_add
On next move, add this dir to the move that would otherwise be done
next_move_dir_sub
On next move, subtract this dir from the move that would otherwise be done
tooltips
datum that controls the displaying and hiding of tooltips
Proc Details
callproc
VERBS
nanoclose
Called when a Nano UI window is closed This is how Nano handles closed windows It must be a verb so that it can be called using winset
@return nothing
reset_held_keys
Manually clears any held keys, in case due to lag or other undefined behavior a key gets stuck.
Hardcoded to the ESC key.
resetnano
A "panic button" verb to close all UIs on current mob. Use it when the bug with UI not opening (because the server still considers it open despite it being closed on client) pops up. Feel free to remove it once the bug is confirmed to be fixed.
@return nothing
update_special_keybinds
Updates the keybinds for special keys
Handles adding macros for the keys that need it And adding movement keys to the clients movement_keys list At the time of writing this, communication(OOC, LOOC, Say, Me) require macros Arguments:
- direct_prefs - the preference we're going to get keybinds from
windowclose
the on-close client verb
called when a browser popup window is closed after registering with proc/onclose() if a valid atom reference is supplied, call the atom's Topic() with "close=1" otherwise, just reset the client mob's machine var.