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 inscreen_render_post, and hand them the presses, releases, drags, keys and typed characters ofscreen_mouse_button_pressed_pre,screen_mouse_button_released_pre,screen_mouse_dragged_pre,screen_key_pressed_preandscreen_char_typed_pre. Each input call answers anOutcome: set the hook’scanceledwhen itOutcome::handledthe input.