Skip to main content

yog_event/
menu.rs

1//! Menu entries mods declare: buttons the host puts on the game's screens.
2
3use yog_data::Schema;
4
5/// A button (the `menu/declare` service) the host shows on the title screen (the mod list on Forge and
6/// NeoForge), opening a mod's screen.
7#[derive(Debug, Clone, PartialEq, Schema)]
8pub struct MenuEntry {
9    /// Its text, a translation key.
10    pub label: String,
11    /// The screen it opens (`mymod:menu`).
12    pub ui_id: String,
13}
14
15/// Every declared menu entry, for the host.
16#[derive(Debug, Clone, Schema)]
17pub struct Declared {}