MiniDoom

src/hu_stuff.ml

Owns level-title/message widgets, localized chat entry, and authoritative directed-chat submission.

Package
(global)
Reachable
Yes

Imports

Declarations

_HU_BuildBaseShiftMap

function _HU_BuildBaseShiftMap()

Creates the ASCII chat transform with identity punctuation and uppercase alphabetic keys.

View source

_HU_BuildEnglishShiftMap

function _HU_BuildEnglishShiftMap()

Adds US-keyboard shifted punctuation and digits to the common chat transform.

View source

_HU_BuildFrenchShiftMap

function _HU_BuildFrenchShiftMap()

Adds the French layout's supported shifted punctuation to the common chat transform.

View source

_HU_CurrentPlayer

inline function _HU_CurrentPlayer()

Resolves and caches the console player's current HUD message source.

View source

_HU_EnsureInputBuffers

function _HU_EnsureInputBuffers()

Allocates one bounded HUlib input widget per possible remote chat sender.

View source

_HU_FontHeight

inline function _HU_FontHeight()

Returns the loaded HUD font height with an eight-pixel fallback.

View source

_HU_InitDestinationKeys

inline function _HU_InitDestinationKeys()

Maps the four localized player-color destination keys to responder key codes.

View source

_HU_ITextString

inline function _HU_ITextString(it)

Copies the live HU input widget bytes into an immutable chat string.

ParameterTypeDefaultDescription
itdynamic—It value supplied to `_HU_ITextString`.

View source

_HU_KeyCodeFromString

inline function _HU_KeyCodeFromString(s)

Extracts the first byte used by localized one-character chat key bindings.

ParameterTypeDefaultDescription
sdynamic—S value supplied to `_HU_KeyCodeFromString`.

View source

_hu_lastmessage

_hu_lastmessage

Stores the mutable hu lastmessage text used by the hu stuff subsystem.

View source

_hu_local_chat_dest

_hu_local_chat_dest

Tracks the mutable hu local chat dest value used by the hu stuff subsystem.

View source

_HU_MapTitle

function _HU_MapTitle()

Selects the localized automap title for the current episode/map marker.

View source

_HU_MPSendChatMessage

inline function _HU_MPSendChatMessage(dest, msg)

Submits one complete HUD chat line to the authoritative channel, including private destination.

ParameterTypeDefaultDescription
destdynamic—Dest value supplied to `_HU_MPSendChatMessage`.
msgdynamic—Msg value supplied to `_HU_MPSendChatMessage`.

View source

_HU_MPUsePacketChat

inline function _HU_MPUsePacketChat()

Enables chat only for the host-authoritative platform session that owns D_Net routing.

View source

_HU_PlayerName

inline function _HU_PlayerName(idx)

Resolves a checked local player-name entry for directed chat prompts.

ParameterTypeDefaultDescription
idxdynamic—Zero-based element or table index.

View source

_HU_PopCurrentPlayerMessage

function _HU_PopCurrentPlayerMessage()

Reads and clears current player HUD message from authoritative player state.

View source

_HU_SetChatOn

inline function _HU_SetChatOn(v)

Keeps chat-entry visibility synchronized with the mutable reference consumed by HUlib.

ParameterTypeDefaultDescription
vdynamic—Value consumed by the operation.

View source

_HU_SetMessageOn

inline function _HU_SetMessageOn(v)

Keeps the HUD message visibility flag and HUlib's shared boolean reference in lockstep.

ParameterTypeDefaultDescription
vdynamic—Value consumed by the operation.

View source

_HU_ShiftChar

inline function _HU_ShiftChar(c)

Applies the active keyboard shift map to one printable chat byte.

ParameterTypeDefaultDescription
cdynamic—C value supplied to `_HU_ShiftChar`.

View source

_HU_ShowMessagesEnabled

inline function _HU_ShowMessagesEnabled()

Normalizes the integer showMessages setting to a HUD visibility decision.

View source

_HU_ToInt

inline function _HU_ToInt(v, fallback)

Normalizes numeric HUD fields to truncating integers or a caller-supplied fallback.

ParameterTypeDefaultDescription
vdynamic—Value consumed by the operation.
fallbackdynamic—Value returned when the requested conversion or lookup is unavailable.

View source

altdown

altdown

Tracks whether altdown is active in the hu stuff subsystem.

View source

always_off

always_off

Tracks whether always off is active in the hu stuff subsystem.

View source

always_off_ref

always_off_ref

Stores the always off ref collection used by the hu stuff subsystem.

View source

chat_char

chat_char

Tracks the mutable chat char value used by the hu stuff subsystem.

View source

chat_dest

chat_dest

Stores the chat dest collection used by the hu stuff subsystem.

View source

chat_macros

chat_macros

Stores the chat macros collection used by the hu stuff subsystem.

View source

chat_on

chat_on

Tracks whether chat on is active in the hu stuff subsystem.

View source

chat_on_ref

chat_on_ref

Stores the chat on ref collection used by the hu stuff subsystem.

View source

destination_keys

destination_keys

Stores the destination keys collection used by the hu stuff subsystem.

View source

ForeignTranslation

function ForeignTranslation(ch)

Maps one key byte through the French keyboard table while preserving other languages.

ParameterTypeDefaultDescription
chdynamic—Ch value supplied to `ForeignTranslation`.

View source

frenchKeyMap

frenchKeyMap

Stores the french key map collection used by the hu stuff subsystem.

View source

headsupactive

headsupactive

Tracks whether headsupactive is active in the hu stuff subsystem.

View source

HU_BROADCAST

const HU_BROADCAST = 5

Defines hu broadcast for the hu stuff subsystem.

View source

HU_Drawer

function HU_Drawer()

Draws message history, map title, and active chat input when the HUD is visible.

View source

HU_Erase

function HU_Erase()

Restores view-border pixels previously occupied by HUD text in reduced-screen mode.

View source

hu_font

hu_font

Stores the hu font collection used by the hu stuff subsystem.

View source

HU_FONTEND

const HU_FONTEND = 95

Defines hu fontend for the hu stuff subsystem.

View source

HU_FONTSIZE

const HU_FONTSIZE = HU_FONTEND - HU_FONTSTART + 1

Defines hu fontsize for the hu stuff subsystem.

View source

HU_FONTSTART

const HU_FONTSTART = 33

Defines hu fontstart for the hu stuff subsystem.

View source

HU_Init

function HU_Init()

Builds keyboard shift maps, shared visibility references, and the STCFN font-lump cache.

View source

HU_INPUTTOGGLE

const HU_INPUTTOGGLE = 116

Defines hu inputtoggle for the hu stuff subsystem.

View source

HU_INPUTX

const HU_INPUTX = HU_MSGX

Defines hu inputx for the hu stuff subsystem.

View source

HU_MPCHAT_MAXBYTES

const HU_MPCHAT_MAXBYTES = 120

Defines the maximum hu mpchat maxbytes accepted by the hu stuff subsystem.

View source

HU_MPMSG_CHAT

const HU_MPMSG_CHAT = 7

Defines hu mpmsg chat for the hu stuff subsystem.

View source

HU_MSGHEIGHT

const HU_MSGHEIGHT = 1

Defines hu msgheight for the hu stuff subsystem.

View source

HU_MSGREFRESH

const HU_MSGREFRESH = KEY_ENTER

Defines hu msgrefresh for the hu stuff subsystem.

View source

HU_MSGTIMEOUT

const HU_MSGTIMEOUT = 4 * TICRATE

Defines hu msgtimeout for the hu stuff subsystem.

View source

HU_MSGWIDTH

const HU_MSGWIDTH = 64

Defines hu msgwidth for the hu stuff subsystem.

View source

HU_MSGX

const HU_MSGX = 0

Defines hu msgx for the hu stuff subsystem.

View source

HU_MSGY

const HU_MSGY = 0

Defines hu msgy for the hu stuff subsystem.

View source

HU_NetAddMessage

function HU_NetAddMessage(msg)

Pushes one network-originated chat/feed line directly into HUD message area.

ParameterTypeDefaultDescription
msgdynamic—Msg value supplied to `HU_NetAddMessage`.

View source

HU_Responder

function HU_Responder(ev)

Owns chat activation, destination selection, macros, editing, and final packet submission.

ParameterTypeDefaultDescription
evdynamic—Input event to process.

View source

HU_Start

function HU_Start()

Rebinds HUD widgets to the current player and clears messages/chat buffers for the new level.

View source

hu_started

hu_started

Tracks whether hu started is active in the hu stuff subsystem.

View source

HU_Stop

function HU_Stop()

Deactivates level HUD rendering and cancels any partially entered chat line.

View source

HU_Ticker

function HU_Ticker()

Ages the current HUD message and consumes one authoritative player message per UI tic.

View source

HU_TITLEX

const HU_TITLEX = 0

Defines hu titlex for the hu stuff subsystem.

View source

mapnames

mapnames

Stores the mapnames collection used by the hu stuff subsystem.

View source

mapnames2

mapnames2

Stores the mapnames2 collection used by the hu stuff subsystem.

View source

mapnamesp

mapnamesp

Stores the mapnamesp collection used by the hu stuff subsystem.

View source

mapnamest

mapnamest

Stores the mapnamest collection used by the hu stuff subsystem.

View source

message_counter

message_counter

Tracks the mutable message counter value used by the hu stuff subsystem.

View source

message_dontfuckwithme

message_dontfuckwithme

Tracks whether message dontfuckwithme is active in the hu stuff subsystem.

View source

message_nottobefuckedwith

message_nottobefuckedwith

Tracks whether message nottobefuckedwith is active in the hu stuff subsystem.

View source

message_on

message_on

Tracks whether message on is active in the hu stuff subsystem.

View source

message_on_ref

message_on_ref

Stores the message on ref collection used by the hu stuff subsystem.

View source

num_nobrainers

num_nobrainers

Tracks the mutable num nobrainers value used by the hu stuff subsystem.

View source

player_names

player_names

Stores the player names collection used by the hu stuff subsystem.

View source

plr

plr

Holds the optional plr resource used by the hu stuff subsystem.

View source

shiftdown

shiftdown

Tracks whether shiftdown is active in the hu stuff subsystem.

View source

shiftxform

shiftxform

Stores the shiftxform collection used by the hu stuff subsystem.

View source

w_chat

w_chat

Tracks the mutable w chat value used by the hu stuff subsystem.

View source

w_inputbuffer

w_inputbuffer

Stores the w inputbuffer collection used by the hu stuff subsystem.

View source

w_message

w_message

Tracks the mutable w message value used by the hu stuff subsystem.

View source

w_title

w_title

Tracks the mutable w title value used by the hu stuff subsystem.

View source