大约有 575 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0068 秒)
Laya_社区(349) Laya3.0_api(60) Laya2.0_文档(52) Laya_示例(41) Laya2.0_示例(40) Laya3.0_文档(29) laya_api(2) Laya2.0_api(2)
...//在舞台上添加鼠标事件监听 Laya.stage.on(Laya.Event.MOUSE_DOWN,this, this.onMouseDown); } //点击触发事件 onMouseDown() { //记录点击到舞台上的点 this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouseY; //产生射线 this.camera.v...
来源: Laya2.0_文档 发布时间: 20210715
...//在舞台上添加鼠标事件监听 Laya.stage.on(Laya.Event.MOUSE_DOWN,this, this.onMouseDown); } //点击触发事件 onMouseDown() { //记录点击到舞台上的点 this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouseY; //产生射线 this.camera.v...
来源: Laya2.0_文档 发布时间: 20210715
...背景颜色。 Laya.loader.load("resource/ui/check.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成!"); var checkBox:CheckBox = new CheckBox("resource/ui/check.png", "这个是一个CheckBox组件。");//创建一个...
来源: Laya3.0_api 发布时间: 20231115
...{text:"six"}}); data.push({m_label:{text:"seven"}}); } this.m_list.array = data; this.m_list.vScrollBarSkin=''; } list 的宽高 和下面的box 和label宽高一致 183*****288 • 2018-02-10 13:32 但展示出来就是拉倒最下面 会空着一大块 很难看 qian • 2018-0...
来源: Laya_社区 发布时间: 20180210
...source/ui/hscroll$down.png", "resource/ui/hscroll$up.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { hScrollBar = new HScrollBar();//创建一个 HScrollBar 类的实例对象 hScrollBar 。 hScrollBar.skin = "resource/ui/hscroll.png";//设...
来源: Laya3.0_api 发布时间: 20231115
...source/ui/vscroll$down.png", "resource/ui/vscroll$up.png"], Handler.create(this, onLoadComplete)); } private function onLoadComplete():void { vScrollBar = new VScrollBar();//创建一个 vScrollBar 类的实例对象 hScrollBar 。 vScrollBar.skin = "resource/ui/vscroll.png";//设置 vScrollBar 的...
来源: Laya3.0_api 发布时间: 20231115
...t; "use strict"; var test = {}; test.text = new laya.display.Text(); // in this line is error , so you can't defined class before "Laya.init" Laya.init(800,600); //test.text = new laya.display.Text(); // in this line is right test.text.text = "dsafdsdsada"; test.text.color = "#ff0000"; Laya.stage.ad...
来源: Laya_社区 发布时间: 20170302
...source/ui/vscroll$down.png", "resource/ui/vscroll$up.png"], Handler.create(this, onLoadComplete)); } private function onLoadComplete():void { var arr:Array = [];//创建一个数组,用于存贮列表的数据信息。 for (var i:int = 0; i < 20; i++) { arr.push({label: "item" + i}); } var list...
来源: Laya3.0_api 发布时间: 20231115
...hangeClips。 __getset(0,__proto,'skin',function(){ return this._skin; },function(value){ if (this._skin !=value){ this._skin=value; this.callLater(this.changeClips); this._setStat...
来源: Laya_社区 发布时间: 20191122
...背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成!"); var button:Button = new Button("resource/ui/button.png","label");//创建一个 Button 类的实例对象 butto...
来源: Laya3.0_api 发布时间: 20231115