你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
没有找到相关结果
cuixueying
赞同来自:
lusky
Laya.init(1200, 400); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { var hbox: laya.ui.HBox = new laya.ui.HBox(); for (var i: number = 0; i < 10; i++) { var skin: string; switch (i) { case 0: skin = "comp/bg.png"; break; case 1: skin = "comp/blank.png"; break; case 2: skin = "comp/btn_close.png"; break; case 3: skin = "comp/button.png"; break; case 4: skin = "comp/checkbox.png"; break; case 5: skin = "comp/clip_selectBox.png"; break; case 6: skin = "comp/clip_tree_arrow.png"; break; case 7: skin = "comp/clip_tree_folder.png"; break; case 8: skin = "comp/combobox.png"; break; case 9: skin = "comp/hscroll$down.png"; break; } var s:laya.display.Sprite = new laya.display.Sprite(); var img: laya.ui.Image = new laya.ui.Image(skin); s.width = img.width; s.height = img.height; s.addChild(img); hbox.addChild(s); } Laya.stage.addChild(hbox); }
该问题目前已经被锁定, 无法添加新回复
3 个回复
cuixueying
赞同来自:
cuixueying
赞同来自:
lusky
赞同来自: