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

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

61. 加载的时候动画会卡 [ 49%]

...e));     }   (function() {     function Lload() {         Lload.__super.call(this);         this.dh();         this.btn.on(Event.MOUSE_DOWN,game,this.toquanjing);         Laya.propertyIsEnumerable = true;     }     Laya.class(Lload,"Lload",ui.loadUI);     Lload.prototype.d...

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

62. list item 添加事件后无法监听 [ 49%]

...mage = Laya.Image;   var WID = 373, HEI = 85;   function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img);   this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box);   // 主要逻辑代码 var Stage   = Laya.St...

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

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

...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

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

...。修改下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

65. List中放TextInput,当list滚动的时候,复用会有问题,input中的内容会乱,尤其有输入框focus的情况下 [ 47%]

...put = laya.ui.TextInput; var WID = 373, HEI = 30; function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.img.graphics.drawRect(0, 0, WID, HEI - 2, "#eeeeee"); this.label = new Label(); this.addChild(this.label); this.input = new TextInpu...

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

66. List属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 44%]

... var Image = Laya.Image; var WID = 373, HEI = 85; function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box); // 主要逻辑代码 var Stage = Laya.Stage; var L...

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

67. 缓动-缓动函数演示 [ 42%]

...Laya.Label; function ListItemRender() { var label = null; ListItemRender.__super.call(this); this.size(100, 20); label = new Label(); label.fontSize = 12; label.color = "#FFFFFF"; this.addChild(label); this.setLabel = function(value) { label.text = value; } } Laya.class(ListItemRender, "ListItemRend...

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

68. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 41%]

... = "data";         constructor(decorate?:Decorate) {             super();             this.mDecorate = decorate || new Decorate(this);             this.pomelo = new Pomelo();             this.configuration();         }         /** 配置*/         private conf...

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

69. 在父sprite中添加子sprite ,移动父Sprite 子sprite为什么不动? [ 41%]

... = target.angel.level; // 构造 function IsLand() { // 初始化 IsLand.__super.call(this); // 名字 this.name = "gemini"; this.init(); } // 注册类 IsLand Laya.class(IsLand,"IsLand",laya.display.Sprite); // 原型 var _proto = IsLand.prototype; // 初始化 _proto.init = function(){ // 球体 t...

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

70. UI-Tree [ 39%]

...: {"name": "render", "right": "0", "left": "0"}}; function Item() { Item.__super.call(this); this.right = 0; this.left = 0; var selectBox = new Clip("../../res/ui/tree/clip_selectBox.png", 1, 2); selectBox.name = "selectBox"; //设置 selectBox 的name 为“selectBox”时,将被识别为树结...

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