Skip to main content

flatland_client_ui/
lib.rs

1//! Engine-agnostic play client UI (world grid, input, presentation).
2
3mod app;
4mod color;
5mod hud;
6mod input;
7mod keybindings;
8mod keymap;
9mod layout;
10mod map_presentation;
11mod rotation_editor;
12mod world;
13
14pub use app::{
15    ActiveOverlay, InputAction, MapTargetState, MovementInput, MovementState, MOVEMENT_IDLE_TIMEOUT,
16};
17pub use color::{parse_color, RgbColor};
18pub use hud::{HudViewMode, PlayHud};
19pub use input::{
20    UiKeyCode, UiKeyEvent, UiKeyEventKind, UiKeyModifiers, UiMouseButton, UiPointerEvent,
21};
22pub use keybindings::{format_keybindings_plain, KeyBinding, KeyBindingCategory, CATEGORIES};
23pub use keymap::{combat_action_for_key, key_matches, CombatKeyAction};
24pub use layout::{hud_layout, HudLayout, NormRect};
25pub use map_presentation::{
26    chest_presentation, corpse_presentation, door_presentation, entity_fallback,
27    format_map_legend_plain, loot_presentation, map_legend_entries, maybe_reload_for_content_rev,
28    npc_for, player_presentation, quest_board_presentation, reload_map_presentation_catalog,
29    resource_for, shallow_water_presentation, terrain_for, terrain_for_elevation, terrain_for_zone,
30    wall_presentation, well_center_presentation, MapLegendEntry, MapPresentation,
31};
32pub use rotation_editor::{
33    editor_ability_choices, next_custom_preset, preset_deletable, EDITOR_ABILITIES,
34};
35pub use world::{grid_to_world, WorldView, WorldViewOptions};