add_win_element 添加元素

add_element(entity_id u32,name string, text string, class_name string, style string,mode string);

输入参数

  • entity_id 实体id
  • name 元素名 div input a h p 具体可查看html 标准
  • text 内容文本
  • class_name class样式名称
  • style 自定义样式属性
  • mode 模式

输出参数

例子

// 如添加元素
let style = "position: absolute; top: 50px;left: 220px;z-index: 2;";
add_win_element(entity.index,"h2","我是标题","",style,"Run");
作者:力博特  创建时间:2025-12-31 13:42
最后编辑:力博特  更新时间:2026-01-13 17:31