# _HU_BuildBaseShiftMap
function _HU_BuildBaseShiftMap()Creates the ASCII chat transform with identity punctuation and uppercase alphabetic keys.
src/hu_stuff.mlOwns level-title/message widgets, localized chat entry, and authoritative directed-chat submission.
d_englsh.ml → src/d_englsh.mld_event.ml → src/d_event.mldoomdef.ml → src/doomdef.mldoomstat.ml → src/doomstat.mldstrings.ml → src/dstrings.mlhu_lib.ml → src/hu_lib.mlm_menu.ml → src/m_menu.mlm_swap.ml → src/m_swap.mlmp_platform.ml → src/mp_platform.mls_sound.ml → src/s_sound.mlsounds.ml → src/sounds.mlw_wad.ml → src/w_wad.mlz_zone.ml → src/z_zone.mlfunction _HU_BuildBaseShiftMap()Creates the ASCII chat transform with identity punctuation and uppercase alphabetic keys.
function _HU_BuildEnglishShiftMap()Adds US-keyboard shifted punctuation and digits to the common chat transform.
function _HU_BuildFrenchShiftMap()Adds the French layout's supported shifted punctuation to the common chat transform.
inline function _HU_CurrentPlayer()Resolves and caches the console player's current HUD message source.
function _HU_EnsureInputBuffers()Allocates one bounded HUlib input widget per possible remote chat sender.
inline function _HU_FontHeight()Returns the loaded HUD font height with an eight-pixel fallback.
inline function _HU_InitDestinationKeys()Maps the four localized player-color destination keys to responder key codes.
inline function _HU_ITextString(it)Copies the live HU input widget bytes into an immutable chat string.
| Parameter | Type | Default | Description |
|---|---|---|---|
it | dynamic | — | It value supplied to `_HU_ITextString`. |
inline function _HU_KeyCodeFromString(s)Extracts the first byte used by localized one-character chat key bindings.
| Parameter | Type | Default | Description |
|---|---|---|---|
s | dynamic | — | S value supplied to `_HU_KeyCodeFromString`. |
_hu_lastmessageStores the mutable hu lastmessage text used by the hu stuff subsystem.
_hu_local_chat_destTracks the mutable hu local chat dest value used by the hu stuff subsystem.
function _HU_MapTitle()Selects the localized automap title for the current episode/map marker.
inline function _HU_MPSendChatMessage(dest, msg)Submits one complete HUD chat line to the authoritative channel, including private destination.
| Parameter | Type | Default | Description |
|---|---|---|---|
dest | dynamic | — | Dest value supplied to `_HU_MPSendChatMessage`. |
msg | dynamic | — | Msg value supplied to `_HU_MPSendChatMessage`. |
inline function _HU_MPUsePacketChat()Enables chat only for the host-authoritative platform session that owns D_Net routing.
inline function _HU_PlayerName(idx)Resolves a checked local player-name entry for directed chat prompts.
| Parameter | Type | Default | Description |
|---|---|---|---|
idx | dynamic | — | Zero-based element or table index. |
function _HU_PopCurrentPlayerMessage()Reads and clears current player HUD message from authoritative player state.
inline function _HU_SetChatOn(v)Keeps chat-entry visibility synchronized with the mutable reference consumed by HUlib.
| Parameter | Type | Default | Description |
|---|---|---|---|
v | dynamic | — | Value consumed by the operation. |
inline function _HU_SetMessageOn(v)Keeps the HUD message visibility flag and HUlib's shared boolean reference in lockstep.
| Parameter | Type | Default | Description |
|---|---|---|---|
v | dynamic | — | Value consumed by the operation. |
inline function _HU_ShiftChar(c)Applies the active keyboard shift map to one printable chat byte.
| Parameter | Type | Default | Description |
|---|---|---|---|
c | dynamic | — | C value supplied to `_HU_ShiftChar`. |
inline function _HU_ShowMessagesEnabled()Normalizes the integer showMessages setting to a HUD visibility decision.
inline function _HU_ToInt(v, fallback)Normalizes numeric HUD fields to truncating integers or a caller-supplied fallback.
| Parameter | Type | Default | Description |
|---|---|---|---|
v | dynamic | — | Value consumed by the operation. |
fallback | dynamic | — | Value returned when the requested conversion or lookup is unavailable. |
altdownTracks whether altdown is active in the hu stuff subsystem.
always_offTracks whether always off is active in the hu stuff subsystem.
always_off_refStores the always off ref collection used by the hu stuff subsystem.
chat_charTracks the mutable chat char value used by the hu stuff subsystem.
chat_destStores the chat dest collection used by the hu stuff subsystem.
chat_macrosStores the chat macros collection used by the hu stuff subsystem.
chat_onTracks whether chat on is active in the hu stuff subsystem.
chat_on_refStores the chat on ref collection used by the hu stuff subsystem.
destination_keysStores the destination keys collection used by the hu stuff subsystem.
function ForeignTranslation(ch)Maps one key byte through the French keyboard table while preserving other languages.
| Parameter | Type | Default | Description |
|---|---|---|---|
ch | dynamic | — | Ch value supplied to `ForeignTranslation`. |
frenchKeyMapStores the french key map collection used by the hu stuff subsystem.
headsupactiveTracks whether headsupactive is active in the hu stuff subsystem.
const HU_BROADCAST = 5Defines hu broadcast for the hu stuff subsystem.
function HU_Drawer()Draws message history, map title, and active chat input when the HUD is visible.
function HU_Erase()Restores view-border pixels previously occupied by HUD text in reduced-screen mode.
hu_fontStores the hu font collection used by the hu stuff subsystem.
const HU_FONTEND = 95Defines hu fontend for the hu stuff subsystem.
const HU_FONTSIZE = HU_FONTEND - HU_FONTSTART + 1Defines hu fontsize for the hu stuff subsystem.
const HU_FONTSTART = 33Defines hu fontstart for the hu stuff subsystem.
function HU_Init()Builds keyboard shift maps, shared visibility references, and the STCFN font-lump cache.
const HU_INPUTTOGGLE = 116Defines hu inputtoggle for the hu stuff subsystem.
const HU_INPUTX = HU_MSGXDefines hu inputx for the hu stuff subsystem.
const HU_MPCHAT_MAXBYTES = 120Defines the maximum hu mpchat maxbytes accepted by the hu stuff subsystem.
const HU_MPMSG_CHAT = 7Defines hu mpmsg chat for the hu stuff subsystem.
const HU_MSGHEIGHT = 1Defines hu msgheight for the hu stuff subsystem.
const HU_MSGREFRESH = KEY_ENTERDefines hu msgrefresh for the hu stuff subsystem.
const HU_MSGTIMEOUT = 4 * TICRATEDefines hu msgtimeout for the hu stuff subsystem.
const HU_MSGWIDTH = 64Defines hu msgwidth for the hu stuff subsystem.
const HU_MSGX = 0Defines hu msgx for the hu stuff subsystem.
const HU_MSGY = 0Defines hu msgy for the hu stuff subsystem.
function HU_NetAddMessage(msg)Pushes one network-originated chat/feed line directly into HUD message area.
| Parameter | Type | Default | Description |
|---|---|---|---|
msg | dynamic | — | Msg value supplied to `HU_NetAddMessage`. |
function HU_Responder(ev)Owns chat activation, destination selection, macros, editing, and final packet submission.
| Parameter | Type | Default | Description |
|---|---|---|---|
ev | dynamic | — | Input event to process. |
function HU_Start()Rebinds HUD widgets to the current player and clears messages/chat buffers for the new level.
hu_startedTracks whether hu started is active in the hu stuff subsystem.
function HU_Stop()Deactivates level HUD rendering and cancels any partially entered chat line.
function HU_Ticker()Ages the current HUD message and consumes one authoritative player message per UI tic.
const HU_TITLEX = 0Defines hu titlex for the hu stuff subsystem.
mapnamesStores the mapnames collection used by the hu stuff subsystem.
mapnames2Stores the mapnames2 collection used by the hu stuff subsystem.
mapnamespStores the mapnamesp collection used by the hu stuff subsystem.
mapnamestStores the mapnamest collection used by the hu stuff subsystem.
message_counterTracks the mutable message counter value used by the hu stuff subsystem.
message_dontfuckwithmeTracks whether message dontfuckwithme is active in the hu stuff subsystem.
message_nottobefuckedwithTracks whether message nottobefuckedwith is active in the hu stuff subsystem.
message_onTracks whether message on is active in the hu stuff subsystem.
message_on_refStores the message on ref collection used by the hu stuff subsystem.
num_nobrainersTracks the mutable num nobrainers value used by the hu stuff subsystem.
player_namesStores the player names collection used by the hu stuff subsystem.
plrHolds the optional plr resource used by the hu stuff subsystem.
shiftdownTracks whether shiftdown is active in the hu stuff subsystem.
shiftxformStores the shiftxform collection used by the hu stuff subsystem.
w_chatTracks the mutable w chat value used by the hu stuff subsystem.
w_inputbufferStores the w inputbuffer collection used by the hu stuff subsystem.
w_messageTracks the mutable w message value used by the hu stuff subsystem.
w_titleTracks the mutable w title value used by the hu stuff subsystem.