• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,735 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0062 秒)

11. UI-Dialog [ 96%]

..., onSkinLoadComplete)); })(); function onSkinLoadComplete() { var dialog = new Dialog(); var bg = new Image(assets[0]); dialog.addChild(bg); var button = new Button(assets[1]); button.name = Dialog.CLOSE; button.pos(DIALOG_WIDTH - CLOSE_BTN_WIDTH - CLOSE_BTN_PADDING, CLOSE_BTN_PADDING); dialog.addCh...

来源: Laya_示例 发布时间: 20240929

12. new出来的UI动画,如何动态改变路径 [ 96%]

new出来的UI动画,如何动态改变路径 例如想封装一个函数:        resetUI = (preName,curName) => { Laya.stage.removeChild(this.preName); //这里希望ui.curName()可以根据参数变化而变化,而不是直接在文件中找不到被报错 this.curName = new ui.curNa...

来源: Laya_社区 发布时间: 20180814

13. new了2个用ui编辑器做的界面,前三个按钮点击无效,后两个点击有响应 [ 96%]

new了2个用ui编辑器做的界面,前三个按钮点击无效,后两个点击有响应 如图只有后new的两个对象有点击效果 附件 : --> 2017-11-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...

来源: Laya_社区 发布时间: 20171113

14. UI-Clip [ 96%]

...; this.createController(); } showBg() { const Image = Laya.Image; let bg = new Image(bgSkin); bg.size(224, 302); bg.pos(Laya.stage.width - bg.width >> 1, Laya.stage.height - bg.height >> 1); Laya.stage.addChild(bg); } createTimerAnimation() { const Clip = Laya.Clip; this.counter = new Clip(clipSkin,...

来源: Laya2.0_示例 发布时间: 20240929

15. UI-ColorPicker [ 96%]

... ColorPicker = Laya.ColorPicker, Handler = Laya.Handler; let colorPicker = new ColorPicker(); colorPicker.selectedColor = "#ff0033"; colorPicker.skin = skin; colorPicker.pos(100, 100); colorPicker.changeHandler = new Handler(this, this.onChangeColor, [colorPicker]); Laya.stage.addChild(colorPicker);...

来源: Laya2.0_示例 发布时间: 20240929

16. UI-ProgressBar [ 96%]

...ProgressBar = Laya.ProgressBar, Handler = Laya.Handler; this.progressBar = new ProgressBar("res/ui/progressBar.png"); Laya.stage.addChild(this.progressBar); this.progressBar.width = 400; this.progressBar.x = (Laya.stage.width - this.progressBar.width ) / 2; this.progressBar.y = Laya.stage.height / 2...

来源: Laya2.0_示例 发布时间: 20240929

17. UI-Clip [ 96%]

...(); showTotalSeconds(); createController(); } function showBg() { var bg = new Image(bgSkin); bg.size(224, 302); bg.pos(Laya.stage.width - bg.width >> 1, Laya.stage.height - bg.height >> 1); Laya.stage.addChild(bg); } function createTimerAnimation() { counter = new Clip(clipSkin, 10, 1); counter.aut...

来源: Laya_示例 发布时间: 20240929

18. 请问一下new 一个Image和ui界面里组件的Image有什么区别?急!! [ 95%]

请问一下new 一个Image和ui界面里组件的Image有什么区别?急!! 因为我想用laya里的对象池。。对于动态创建的时候,可以用Laya.Pool.getItemByClass("img", Laya.Image)     但是如果是在ui界面,编辑模式里创建好的组件Image,这里的Image...

来源: Laya_社区 发布时间: 20180520

19. UI-ComboBox [ 95%]

...) { const ComboBox = Laya.ComboBox, Handler = Laya.Handler; let comboBox = new ComboBox(skin, "item0,item1,item2,item3,item4,item5"); Laya.stage.addChild(comboBox); comboBox.labelSize = 30; comboBox.itemSize = 25; comboBox.selectHandler = new Handler(this, this.onSelect, [comboBox]); return comboBox...

来源: Laya2.0_示例 发布时间: 20240929

20. UI-ProgressBar [ 95%]

...te(this, onLoadComplete)); })(); function onLoadComplete() { progressBar = new ProgressBar("../../res/ui/progressBar.png"); progressBar.width = 400; progressBar.x = (Laya.stage.width - progressBar.width) / 2; progressBar.y = Laya.stage.height / 2; progressBar.sizeGrid = "5,5,5,5"; progressBar.change...

来源: Laya_示例 发布时间: 20240929