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

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

231. list ,增加item ,我想在末尾增加,但是每次都给我翻倍的增加,如何解决 [ 51%]

...E_DOWN, this, function (e) { list.addItem(1); }); function Item() { Item.__super.call(this); this.size(416, 270); this.text = new Text(); this.text.fontSize = 20; this.text.pos(12, 5); this.text.color = "#FF00FF"; this.text.zOrder = 1; this.addChild(this.text); this.setImg = function(data) { var aar...

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

232. 位图字体的制作与使用(TypeScript-LayaAir基础篇(TS)-文本) [ 51%]

...册的字体起个名 private fontName: string = "diyFont"; constructor() {super();} onAwake(): void { //加载位位图字体 this.loadBitmapFont(); } /** * 实例化位图字体类,并加载位图字体 */ loadBitmapFont(): void { let bitmapFont: Laya.BitmapFont = new Laya.BitmapFont(); bitmapFo...

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

233. 写了个边缘光的自定义shader,有很多问题,帮忙看一下 [ 51%]

...。修改下CustomMaterial.js function CustomMaterial() { CustomMaterial.__super.call(this); this.setShaderName("CustomShader"); } Laya.class(CustomMaterial, "CustomMaterial", Laya.BaseMaterial); CustomMaterial.DIFFUSETEXTURE = 1; CustomMaterial.prototype.getDiffuseTexture = function () { return thi...

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

234. 按钮失效,同UI里的一个图片超链接点击后再返回,出现按钮失效。 [ 51%]

...的继承类 var StartResource = function StartResource(){ StartResource.super(this); //LOGO 图标 访问地址 var href='https://list.tmall.com/search_product.htm?q=%BB%A8%D3%A1%D0%B6%D7%B1%CB%AE&type=p&spm=a220m.1000858.a2227oh.d100&xl=%BB%A8%D3%A1_2&from=.list.pc_1_suggest';   ...

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

235. 插件开发说明 · LayaAir3.0文档 · LAYABOX [ 51%]

... class DemoPreviewPlugin extends IEditorEnv.AssetPreview { constructor() { super(); this.sprite.graphics.drawCircle(100, 100, 50, "#ffff00"); this.sprite.size(100, 100); } async setAsset(asset: IEditorEnv.IAssetInfo): Promise<any> { this.renderTarget = this.sprite; } } 显示效果如下: ...

来源: Laya3.0_文档 发布时间: 20240918

236. dialog 里的数据已经获取到了,也赋值了但是页面没跟新,addChild好像无效果 [ 51%]

...xt } // console.log(); } } console.log('+++++++++++++++++++') console.log(_super); console.log(fooddata); self.foodList.dataSource = fooddata;  //实例化角色容器 var foodBox = new Laya.Sprite(); //添加到舞台上 console.log(self.foodBox); Laya.stage.addChild(foodBox); self.foodBox = foodd...

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

237. 分享,扩展Laya.Text组件实现简单的富文本 [ 51%]

...富文本类型) */ export class Label extends Laya.Text { constructor() { super(); } private typeList = {}; //取出文本里面的关键字 private typeIndexList = ; //关键字所在文本的位置 private typeLines = ; //利用关键字重新划分文本 private underLineWidth = 0; //下划线...

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

238. 微信小游戏关系链 我创建了一个开放域的项目 但是报错了 [ 51%]

...85 * 4); var WID = 375, HEI = 85; function RankListItem() { RankListItem.__super.call(this); this.size(WID, HEI); this.img = new Laya.Image(); this.addChild(this.img); this.setImg = function (src) { this.img.skin = src; } } Laya.class(RankListItem, "RankListItem", Laya.Box); //rankList var rankList ...

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

239. APK-update(TypeScript-LayaNative原生服务-LayaNative进阶) [ 50%]

...gine即可。 ```java protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow().requestFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); /* * 如果不想使用更...

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

240. 扇形遮罩画不全画了一个很奇怪的形状但是矩形的就没问题。显示效果如下:版本号1.7.10 [ 50%]

...      {             this.spSize = size;             super();         }                  public static function create(img:Image,size:laya.maths.Size):ProcessTimer         {             var pt:ProcessTimer = new ProcessTimer(size);         ...

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