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

大约有 203 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0042 秒)

81. 微信浏览器,input输入完成后,游戏不能还原 [ 72%]

...drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#3e3534"); Laya.stage.addChild(scene);  var inputText = new Laya.Input(); inputText.size(350, 100); inputText.x = Laya.stage.width - 400; inputText.y = Laya.stage.height * 0.4; // 移动端输入提示符 inputText.prompt = "Type some word..."; ...

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

82. laya 是否多窗口开发开发??? [ 71%]

...     在官方 dialog 那个demo中,不适用show,改为 Laya.stage.addChild(dialog1) 就可实现此效果。 2017-03-31 0 1 分享 微博 QZONE 微信 cuixueying 赞同来自: LayaAir本身就是一个canvas标签,多窗口可以实现,你用js原生的方法来做即可,添加多个c...

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

83. localToGlobal和AS3不一样? [ 71%]

...: ------(已解决)laya和AS3这里有细节区别。laya需要目标已经AddChild到舞台才有效果。     翻进去看到这句:if (!_displayedInStage || !point) return point;。。。醉了= =!~ 2017-02-27 0 0 分享 微博 QZONE 微信 Laya_XS 赞同来自: 是的,你只有addChild...

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

84. 请问这是原因? [ 71%]

...hics.drawCircle(0,0,100,"#00CC33"); sprite.graphics = graphics; Laya.stage.addChild(sprite); //画一条直线,添加进圆 var sprite2:Sprite = new Sprite(); var graphics2:Graphics = new Graphics(); graphics2.drawLine(500,500,500,400,"#000000",2); sprite2.graphics = graphics2; Laya.stage.addChild...

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

85. webgl模式下对Panel组件旋转时Panel子对象显示错误的BUG! [ 71%]

...anelRotationTest(Laya.Sprite); testSpriteRotation.pos(300,260); Laya.stage.addChild(testSpriteRotation); var testPanelRotation:PanelRotationTest = new PanelRotationTest(Laya.Panel); testPanelRotation.pos(1000,260); Laya.stage.addChild(testPanelRotation); Laya.Tween.to(testPanelRotation,{rotation:720...

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

86. TextInput TextArea 获取当前有多少行? [ 71%]

...XXXXXXXXXXXXXXXXXXXX"; text.x=200; trace(text.textField.lines); Laya.stage.addChild(text); 2017-06-19 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 cry_11858 相关问题 请问有没有方法能够获取“鼠标是否处于按下状...

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

87. 怎么才能显示位于Panel外部对象 [ 71%]

...为panelA,现在会在面板上加个箭头图片,命名为imgB panelA.addChild( imgB ); panelA的宽高为100,100 imgB的坐标为110,50 出现现象是:位于面板A指定宽高范围 外部的imgB无法显示 请问下怎么才能使面板外部的imgB显示出来? 2017-02-07 添加评论...

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

88. 分享一个自己做的游戏公告功能,跑马灯效果 [ 70%]

...left" this.html.style.color = "#fff" this.html.innerHTML = "" this.hornBox.addChild(this.html) this.addChild(this.hornBox) } /** 滚动动画 */ private _animate(e: Event): void { const _w = this.html.width const _x = this.html.x if (_x < -_w) { this.stop(true) } else { this.html.x -= 2 } } /** ...

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

89. 文本在屏幕不垂直居中 [ 70%]

...idth /2 ,tx.height / 2); tx.align="center"; tx.valign="middle"; Laya.stage.addChild(tx); } })()   2017-11-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: 修改后的代码...

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

90. 怎样获取父类? [ 70%]

...一个页面TipsView为子类 ... ... var tipView = new TipsView(); this.addChild(tipView);   function enterNextScene() { } ... ...      //这个是TipsView.js类,我想在这个类里调用上面那个父类里enterNextScene的方法,如何获取到上面那个父类呢? var TipsView = (f...

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