--- name: dota2-ui description: DOTA2 自定义游戏 UI(Panorama)开发指南。触发词:UI、界面、面板、panorama、frontend、前端、HUD、layout、xml、css、样式。Use when user asks to create or modify DOTA2 custom game UI panels, React components, CSS styles, layout XML, game events communication, or net table data binding. --- 为 DOTA2 自定义游戏项目编写 Panorama UI 界面。 ## 核心原则 1. **严格使用 DOTA2 Panel 类型**:Panorama 不是浏览器,不能使用 HTML 标签(如 `
`、``、`

`),只能使用 Valve 提供的 Panel 类型 2. **严格使用 Panorama CSS 属性**:不能使用标准 CSS 中 Panorama 不支持的属性,所有属性值必须符合 Panorama 规范 3. **Label 文本必须使用 text 属性**:❌ 禁止 `` 写法(会导致语法错误),✅ 必须使用 `