AGENT SKILL

15-ui-component-menu

暂无简介

适用职业设计师
License 许可
MIT
所属仓库
devwinsoft/devian
最近更新
2026-04-12
Stars
★ 0
Forks
0

03 SKILL.md 正文

15-ui-component-menu

Status: ACTIVE AppliesTo: v11

UIComponentMenuBar / UIComponentMenuButton 수평 단일 선택 메뉴 skill이다. 상세 동작과 구조는 docs/ui-component-menu-design.md를 기준으로 한다.

Core Rules

  • UIComponentMenuBar가 selection의 source of truth를 가진다.
  • UIComponentMenuButton는 same-GO Button.onClick을 받아 parent bar의 Select(int index)를 호출한다.
  • UIComponentMenuBar는 RequireComponent(typeof(HorizontalLayoutGroup))를 가진다.
  • UIComponentMenuButton는 RequireComponent(typeof(Button))를 가진다.
  • UIComponentMenuButton는 RequireComponent(typeof(UITransitionPlayer))를 가진다.
  • UIComponentMenuButton는 RequireComponent(typeof(LayoutElement))를 가진다.
  • UIComponentMenuButton.index는 serialized int field다.
  • UIComponentMenuButton는 serialized UI_TRANSITION_PRESET_ID로 select/deselect transition을 가진다.
  • UIComponentMenuButton는 protected virtual void onSelect() / onDeselect() hook으로 subclass visual/state 처리를 확장한다.
  • menu 폭/높이 transition은 LayoutElement.preferredWidth/preferredHeight 채널을 사용한다.
  • menu button은 bar의 direct child로 사용한다.
  • duplicate index는 invalid다.
  • 외부 구독 지점은 UIComponentMenuBar.OnSelect다.

Reference

04 同仓库更多 Skills