Modular Avatar menu building and placement shared by TsiYuki tools that generate menus: menu items, and installing a generated menu under a menu asset, an object carrying a menu item, or another TsiYuki menu, whichever tool runs first.
Part of the TsiYuki Core family: VCC installs it along with the tools that need it, so there is no reason to add it by hand.
MenuItems.Root, MenuItems.SubMenu and MenuItems.Control.MenuParentField.Draw; its label and explanation come from
this package, so every tool shows the same field.MenuPlacement.Place(component, installInto, menuRoot, label) from a pass declared
.BeforePlugin<MenusPlugin>().What Install into can hold:
| Destination | Result |
|---|---|
| empty | the avatar’s root menu |
| a menu asset | Modular Avatar’s installer puts the menu in it |
| an object with a Modular Avatar menu item | an install target under that object |
| another TsiYuki menu’s component | inside that menu |
| the object carrying another TsiYuki menu, or any other component on it | inside that menu; an object carrying more than one TsiYuki menu is reported as ambiguous |
An object with a Modular Avatar menu item counts as the menu item even when a TsiYuki component is on it too. A destination that makes no menu, or would put a menu inside itself, is reported in NDMF’s error window and the menu stays at the root.
MIT
TsiYuki 中生成菜单的工具共用的 Modular Avatar 菜单构建与放置:生成菜单项,并把生成的菜单装进菜单资源、带菜单项的对象,或另一个 TsiYuki 菜单里(不论哪个工具先执行)。
属于 TsiYuki Core 系列。安装需要它的工具时 VCC 会自动带上,不需要单独安装。
moe.tsiyuki.core.menus
https://github.com/tsiyukino/YukiCoreMenus
0.1.0 (Changelog)
2022.3 or later
No dependencies
No legacy packages