feat: UI输入框IME支持和编辑器Inspector重构 (#310)

UI系统改进:
- 添加 IMEHelper 支持中文/日文/韩文输入法
- UIInputFieldComponent 添加组合输入状态管理
- UIInputSystem 添加 IME 事件处理
- UIInputFieldRenderSystem 优化渲染逻辑
- UIRenderCollector 增强纹理处理

引擎改进:
- EngineBridge 添加新的渲染接口
- EngineRenderSystem 优化渲染流程
- Rust 引擎添加新的渲染功能

编辑器改进:
- 新增模块化 Inspector 组件架构
- EntityRefField 增强实体引用选择
- 优化 FlexLayoutDock 和 SceneHierarchy 样式
- 添加国际化文本
This commit is contained in:
YHH
2025-12-19 15:45:14 +08:00
committed by GitHub
parent 536c4c5593
commit ecdb8f2021
46 changed files with 5825 additions and 257 deletions

View File

@@ -177,6 +177,29 @@ impl GameEngine {
.map_err(|e| JsValue::from_str(&e.to_string()))
}
/// Set scissor rect for clipping (screen coordinates, Y-down).
/// 设置裁剪矩形屏幕坐标Y 轴向下)。
///
/// Content outside this rect will be clipped.
/// 此矩形外的内容将被裁剪。
///
/// # Arguments | 参数
/// * `x` - Left edge in screen coordinates | 屏幕坐标中的左边缘
/// * `y` - Top edge in screen coordinates (Y-down) | 屏幕坐标中的上边缘Y 向下)
/// * `width` - Rect width | 矩形宽度
/// * `height` - Rect height | 矩形高度
#[wasm_bindgen(js_name = setScissorRect)]
pub fn set_scissor_rect(&mut self, x: f32, y: f32, width: f32, height: f32) {
self.engine.set_scissor_rect(x, y, width, height);
}
/// Clear scissor rect (disable clipping).
/// 清除裁剪矩形(禁用裁剪)。
#[wasm_bindgen(js_name = clearScissorRect)]
pub fn clear_scissor_rect(&mut self) {
self.engine.clear_scissor_rect();
}
/// Load a texture from URL.
/// 从URL加载纹理。
///