Skip to main content

Module client

Module client 

Expand description

Client-only surfaces: screens, input, sound, drawing and options.

Modules§

widgets
Buttons and text fields for mod screens. Buttons and text fields for a mod’s own screens (ClientHost::mod_screen_open), kept by the mod and driven by the screen hooks it already listens to: draw them in screen_render_post, and hand them the presses, releases, drags, keys and typed characters of screen_mouse_button_pressed_pre, screen_mouse_button_released_pre, screen_mouse_dragged_pre, screen_key_pressed_pre and screen_char_typed_pre. Each input call answers an Outcome: set the hook’s canceled when it Outcome::handled the input.