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

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

71. UI-List [ 75%]

...ild(this.img); this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box); // 主要逻辑代码 var Stage = Laya.Stage; var List = Laya.List; var Handler = Laya.Handler; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, Web...

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

72. 这样的panel请问如何实现比较好? [ 75%]

...: 1、定义一个Item,界面分两层(可用两个Sprite进行划分) class Item extends ui.itemUI { private state = 0; constructor() { super(); //点击最先出来的按钮,会显示下一层界面,同时隐藏自己 this.btnFirst.on(Laya.Event.CLICK, this, this.change, [0]); //点击上面...

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

73. laya3d物体碰撞与触发检测的问题 [ 75%]

...与触发检测的问题 import BoxMove from "./BoxMove"; export default class GameUI extends Laya.Scene { constructor() { super(); //加载场景文件 this.loadScene("test/TestScene.scene"); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //添加照相机 var camera = (scene...

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

74. viewportPointToRay产生的射线始终有偏差,是为什么? [ 75%]

...rt Vector4 = Laya.Vector4; import WebGLContext = Laya.WebGLContext; export class SceneScript extends Script { private _originPosition:Vector3 = new Vector3(0, -1, 1); private _phasorSpriter3D:PhasorSpriter3D; private _color:Vector4 = new Vector4(1, 0, 0, 1); private _point:Vector2 = new Vector2(); p...

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

75. http无响应 [ 74%]

...RequestComplete(e) { this.aaaa.text += "收到数据:" + hr.data; } Laya.class(LoginView,"LoginView",_super); //设置继承关系 //初始化函数 LoginView.prototype.init = function () { //监听登录按钮按下事件 this.login.on(Laya.Event.CLICK,this,this.onButtonLogin); //忘记密码 thi...

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

76. 请问怎么制作一个layabox js版本的加载效果 [ 74%]

...s$bar.png"], Handler.create(this, onLoadComplete)); } console.log(1); Laya.class(Loadings,"Loadings",_super); function onLoadComplete() { progressBar = new ProgressBar("./comp/progress.png"); progressBar.width = 400; progressBar.x = (Laya.stage.width - progressBar.width) / 2; progressBar.y = Laya.st...

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

77. List选中项下滚会变 [ 74%]

...eHandler = new Laya.Handler(this,this.onMouse);//鼠标事件响应 } Laya.class(ServerListView,"ServerListView",_super); var _proto_ = ServerListView.prototype; //选择列表项时的相应时间,参数index是选中项的下标 // _proto_.onSelect = function(index){ // console.log("index",index...

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

78. layaMaxUI.ts的自动生成代码bug [ 74%]

...ide编辑模式中使用   运行demo 按F12 生成 代码如下/**This class is automatically generated by LayaAirIDE, please do not make any modifications. */ import SceneBase from '../SceneBase' import View=Laya.View; import Dialog=Laya.Dialog; var REG: Function = Laya.ClassUtils.regClass; expor...

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

79. socket无法连接服务器 [ 74%]

...码: let PORT: number = 8080;     let IP: string = "127.0.0.1"; export class NetSocket extends Laya.Socket{         private static _instance: NetSocket;         public static get instance(): NetSocket {             if (!NetSocket._instance) {                 NetSocket._inst...

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

80. 怎样获取父类? [ 74%]

...re.on(Laya.Event.MOUSE_UP,this,onSure); function onSure(params) { } } Laya.class(TipsView,"TipsView",TipsViewUI); return TipsView; })();   2017-10-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 15818760256 赞...

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