大约有 308 项符合查询结果, 库内数据总量为 30,936 项。 (搜索耗时: 0.0053 秒)
...CK,null,function(){ //TO GamePage2 console.log("left onclick"); Laya.stage.addChild(new GameView); }); //分享快乐 this.StartRight.on(Laya.Event.CLICK,null,function(){ //超链接 onLink(href); }); //天猫Logo this.img_TianMao.on(Laya.Event.CLICK,null,function(){ //超链接 onLink(href); })...
来源: Laya_社区 发布时间: 20180810
... var btn = new Laya.Button(skin); //将Button添加到舞台上 Laya.stage.addChild(btn); //设置Button相关属性 btn.width = 100; btn.height = 50; btn.pos(100,100); btn.label = "按钮"; } ``` 上述代码运行效果如动图2所示:  (动图2) **Tips:** Button 组件的...
来源: Laya2.0_文档 发布时间: 20210714
...ton = new Laya.Button(this.skin); //将Button添加到舞台上 Laya.stage.addChild(btn); //设置Button相关属性 btn.width = 100; btn.height = 50; btn.pos(100,100); btn.label = "按钮"; } } new GameMain(); ``` 上述代码运行效果如动图2所示:  (动图2) **Tips:**...
来源: Laya2.0_文档 发布时间: 20210714
...lor = "#ffffff"; letter.font = "Impact"; letter.fontSize = 180; Laya.stage.addChild(letter); return letter; } } new TweenDemo(); ``` 代码运行时,由于update回调是每一帧都在执行,所以在缓动的过程中,有一种闪光字的效果。如动图8所示。  ...
来源: Laya2.0_文档 发布时间: 20210715
...mage:Laya.Image = new Laya.Image(); image.source = rankTexture; Laya.stage.addChild(image); 附件 : --> 2018-04-03 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_XS 赞同来自: 你在报错的地方...
来源: Laya_社区 发布时间: 20180403
...this.onLoaded)); } private onLoaded(): void { //添加到舞台 Laya.stage.addChild(this.roleAni); //创建动画模板dizziness Laya.Animation.createFrames(this.aniUrls("die", 4), "die"); Laya.Animation.createFrames(this.aniUrls("fire", 7), "fire"); Laya.Animation.createFrames(this.aniUrls("atk", 3...
来源: Laya_社区 发布时间: 20171228
...播放 // 设置画布上的对齐参照物 reference = new Sprite(); this.addChild(reference); reference.pos(0, 0); reference.size(GoldConsts.contextWidth, GoldConsts.contextHeight); reference.graphics.drawRect(0, 0, reference.width, reference.height, "#cccccc"); // 每次舞台尺寸变更时,...
来源: Laya_社区 发布时间: 20180313
...lor = "#FFFFFF"; letter.font = "Impact"; letter.fontSize = 180; Laya.stage.addChild(letter); return letter; } } } ``` 代码运行时,由于update回调是每一帧都在执行,所以在缓动的过程中,有一种闪光字的效果。如动图8所示。  (动图8) Lay...
来源: Laya2.0_文档 发布时间: 20210715
... var btn:Button = new Button(skin); //将Button添加到舞台 Laya.stage.addChild(btn); //设置Button相关的属性 btn.width = 100; btn.height = 50; btn.pos(100,100); btn.label = "按钮"; } } } ``` 上述代码运行效果如动图2所示:  (动图2) **Tips:** Button 组...
来源: Laya2.0_文档 发布时间: 20210715
...lor="#ffffff"; text.text="hello!LayaBox!"; text.font=mFontName; Laya.stage.addChild(text); } } }测试结果: 1、value=top 2、value=middle 3、value=bottome 总结:并未发现你所说的问题,请用最新版本1.5.3进行测试,如果还有问题,提供个demo,我们查下问...
来源: Laya_社区 发布时间: 20161116