
Lv.1
https://www.codestarlabs.top/?filter=home,欢迎您的加入!
签名:CodeStarLabs:用编程点亮未来! https://www.codestarlabs.top/?filter=home
在 ↓【惊艳】岛三出积木转代码的工具了?!(链接在下方,贴里的内容挺有意思的的,可以先看看贴里的内容) 中回复
www.runoob.com/js/js-tutorial.html
2023-01-04T17:53:27 点赞:1
在 【Box3EasyGUI.js】简易的gui管理器 中回复
附图中的实例代码:
const {Box3EasyGUI} = require("./Box3EasyGUI.js");
world.onPlayerJoin(({entity})=>{
var mygui = new Box3EasyGUI("myGUI",entity);
var dom = mygui.document;
var length = 0;
var group = dom.createXml("group",{right:10,width:150,percentHeight:100,borderColor:"rgba(0,0,0,0)"});
function createButton(){
let button = dom.createXml("button",{height:40,width:150,right:10,top:50+length*45,text:"点我"});
button.addEventListener("click",createButton);
group.appendChild(button);
mygui.reload();
length++;
}
createButton();
dom.appendChild(group);
mygui.render();
})2023-07-11T14:37:50 点赞:0
在 【Box3EasyGUI.js】简易的gui管理器 中回复
【Box3EasyGUI V.1.1.0】更新:
增加了以下方法:
· removeAttribute:删除元素的属性
· show:显示元素
· hide:隐藏元素
详细见文档:gitee.com/box3/box3easygui/blob/master/README.md
2023-07-25T17:56:30 点赞:0
在 【Box3Blockly 3.0】“全新”图形化编辑器 中回复
格式又被吃了。 gitee.com/box3/Box3-Blockly-3.0/blob/master/README.喵
2024-08-15T15:14:52 点赞:1