2872884cb9
The Show Subtitles accessibility option and the notification display time slider now exist and persist in options.txt. Every sound event with a subtitle key in sounds.json that the audio engine plays, even with no audio device, feeds a closed-caption overlay at the bottom right: repeated sounds refresh the same row, rows are only shown while the source is in range, an arrow points left or right when the sound is outside the view, and the text fades from white to grey over three seconds (stretched by the display-time multiplier, with looping sounds staying bright for half a second longer). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
77 lines
1.5 KiB
Rust
77 lines
1.5 KiB
Rust
//! Horizon native client: resources, world streaming, rendering and the
|
|
//! bindings between the validated simulation pieces and the game loop.
|
|
#![forbid(unsafe_code)]
|
|
pub mod advancements;
|
|
pub mod ambience;
|
|
pub mod animate_tick;
|
|
pub mod assets;
|
|
pub mod attribute_updates;
|
|
pub mod audio;
|
|
pub mod biome;
|
|
pub mod block_entity_render;
|
|
pub mod blocks;
|
|
pub mod brewing;
|
|
pub mod chat;
|
|
pub mod chunk;
|
|
pub mod clock;
|
|
pub mod collisions;
|
|
pub mod command;
|
|
pub mod component;
|
|
pub mod containers;
|
|
pub mod control;
|
|
pub mod crafting;
|
|
pub mod creative;
|
|
pub mod effects;
|
|
pub mod enchant;
|
|
pub mod entities;
|
|
pub mod entity_nbt;
|
|
pub mod environment;
|
|
pub mod fog;
|
|
pub mod font;
|
|
pub mod gamerules;
|
|
pub mod gfx;
|
|
pub mod health;
|
|
pub mod hud;
|
|
pub mod hunger;
|
|
pub mod input;
|
|
pub mod item_data;
|
|
pub mod items;
|
|
pub mod keybinds;
|
|
pub mod landing;
|
|
pub mod lang;
|
|
pub mod light;
|
|
pub mod merchant;
|
|
pub mod mesher;
|
|
pub mod mobs;
|
|
pub mod models;
|
|
pub mod motion;
|
|
pub mod multiplayer;
|
|
pub mod music;
|
|
pub mod net;
|
|
pub mod options_ui;
|
|
pub mod packs;
|
|
pub mod particles;
|
|
pub mod pose;
|
|
pub mod projectiles;
|
|
pub mod save;
|
|
pub mod scoreboard;
|
|
pub mod scoreboard_cmd;
|
|
pub mod screen_effects;
|
|
pub mod settings;
|
|
pub mod shadows;
|
|
pub mod signs;
|
|
pub mod sprint;
|
|
pub mod sprites;
|
|
pub mod stations;
|
|
pub mod streaming;
|
|
pub mod structure_blocks;
|
|
pub mod subtitles;
|
|
pub mod testgen;
|
|
pub mod text;
|
|
pub mod title;
|
|
pub mod ui;
|
|
pub mod vanillagen;
|
|
pub mod world;
|
|
pub mod zip;
|
|
pub type Result<T> = std::result::Result<T, Box<dyn std::error::Error>>;
|