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

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

81. loadingView 的 tips提示问题 [ 69%]

...299行,         _dt() {         var g = this.tips._graphics;         g.clear();         g.fillText(this._tips[this.prei], -26, 0, this.fontstr, this.fc, "center");         g.fillText("(" + this.p + "%)", 1 / 2 * this._len[this.prei] - 26,...

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

82. 如何清空节点的内容 [ 69%]

...空节点的内容 如图 在这个小人物下有另一个之前已经用Graphics加载上去的图,现在是重新加载一次并且换了个图 在重新加载之前怎么删除节点的内容呢? 附件 : --> 2017-11-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

83. 被遮罩的显示对象的子显示对象再添加遮罩,则子显示对象显示不正确 [ 69%]

...ask则正常显示。 let bigMask:Laya.Sprite = new Laya.Sprite(); bigMask.graphics.drawRect(0, 0, 300, 200, "#ffffff"); this.mask = bigMask; // let imgMask:Laya.Sprite = new Laya.Sprite(); imgMask.graphics.drawRect(0, 0, 100, 300, "#ffffff"); this.img.mask = imgMask; Laya.Tween.to(this.img, {x:100}...

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

84. 分享:改变图片皮肤,保持图片原样宽高显示 [ 68%]

...rivate function onClick():void { image.skin="bg.jpg"; } } }方法2:使用graphics.drawTexture的方式】 package { import laya.display.Sprite; import laya.events.Event; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; public class LayaAirDemo { private var sp:Sprit...

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

85. 显示与切换图片(TypeScript-LayaAir基础篇(TS)-位图) [ 68%]

...游戏开发基础,本篇从API到示例分别介绍Sprite.loadImage与Graphics.drawTexture两种显示图片的方法。 ## 1、用loadImage方法显示与切换图片 ### 1.1 loadImage API概述 在API文档中搜索laya.display.Sprite,可以找到loadImage()方法,如图1所示,我们先...

来源: Laya2.0_文档 发布时间: 20210715

86. 图片显示好奇怪 [ 68%]

... texture:Texture=Loader.getRes('logo.png'); var sp:Sprite=new Sprite(); sp.graphics.clear();//把上次的绘制清除 sp.graphics.drawTexture(texture); Laya.stage.addChild(sp); } 2017-05-05 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人...

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

87. 被遮罩的对象的子显示对象再添加遮罩,子显示对象的遮罩显示不正确 [ 68%]

...ask则正常显示。 let bigMask:Laya.Sprite = new Laya.Sprite(); bigMask.graphics.drawRect(0, 0, 300, 200, "#ffffff"); this.mask = bigMask; // let imgMask:Laya.Sprite = new Laya.Sprite(); imgMask.graphics.drawRect(0, 0, 100, 300, "#ffffff"); this.img.mask = imgMask; Laya.Tween.to(this.img, {x:100}...

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

88. laya.display.Graphics [ 68%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames GraphicsProperties | Methods Packagelaya.displayClasspublic class GraphicsInheritanceGraphics Object Graphics 类用于创建绘图显示对象。Graphics可以同时绘制多个位图或者矢量图,还可以结合save...

来源: Laya2.0_api 发布时间: 20190513

89. 关于fillText问题 [ 68%]

...问题 private label_image:Laya.Sprite=new Laya.Sprite(); this.label_image.graphics.fillText(xxx, xxx,"15px Arial","#000000","center"); this.label_image.pos(0,0) Laya.stage.addChild(this.label_image); 这样写为什么CurMem会增加接近16M,这不就是在精灵上绘制嘛,简单来说就...

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

90. layaAir真的没办法做涂鸦板? [ 68%]

layaAir真的没办法做涂鸦板? 我用sp.graphics.drawLines方法做了个鼠标画线,确实是连续画的时间长了,就会很卡,在平板上尤其明显,画两三条线之后就不行了,没办法解决吗?用JS原生的画线方法怎么能加载我的内容上呢,我是...

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