大约有 488 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0048 秒)
...stExtension extends HttpRequest { public function HttpRequestExtension() { super(); } public override function send(url:String, data:*=null, method:String="get", responseType:String="text", headers:Array=null):void { super.send(url,data,method,responseType,headers); this._http.upload.onprogress= fun...
来源: Laya2.0_文档 发布时间: 20210715
... private isright: boolean = false; constructor() { super(); this.packageName = "Game"; this.resName = "Main"; this.isFullWindow = true; } /** * 初始化组件 第一次new的时候执行 */ onConstruct()...
来源: Laya_社区 发布时间: 20221207
...3, HEI = 85; const Box = Laya.Box; class Item extends Box { constructor(){ super(); const Image = Laya.Image; this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); } setImg(src) { this.img.skin = src; } } class UI_List { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebG...
来源: Laya2.0_示例 发布时间: 20250222
... 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...
来源: Laya_示例 发布时间: 20250222
...esource.Texture extends laya.events.EventDispatcher var Texture=(function(_super){ function Texture(bitmap,uv){ /**图片或者canvas 。*/ //this.bitmap=null; /**UV信息。*/ //this.uv=null; /**沿 X 轴偏移量。*/ this.offsetX=0; /**沿 Y 轴偏移量。*/ this.offsetY=0; /**原始宽度(包...
来源: Laya_社区 发布时间: 20180504
...ckingScene", Laya.Scene); function MousePickingScene() { MousePickingScene.super(this); this.camera = new Laya.Camera(0,0.1,100); this.addChild(this.camera); this.camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; this.skyBox = new Laya.SkyBox(); this.camera.sky = this.skyBox; this.skyBox.textureCube...
来源: Laya_社区 发布时间: 20170323
...te m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rule.mouseHandler =...
来源: Laya_社区 发布时间: 20170215
... test: Array<number> = []; constructor() { super(); this.list.vScrollBarSkin = ''; this.list.itemRender = Item_List; this.list.renderHandler = new Laya.Handler(this, this.onItemRender); this.list.scrollBar.elasticBackTim...
来源: Laya_社区 发布时间: 20170614
...ner: Laya.Image; constructor() { super(); this.init(); } private init() { this.size(Laya.stage.width,Laya.stage.height); this.guideContainer = new La...
来源: Laya_社区 发布时间: 20200119
...a.Sprite3D; @property({ type: Laya.Text }) txt: Laya.Text; constructor() { super(); } onAwake(): void { this.txt.text = "第{n=1}页"; //显示文本的初始化内容 } onStart(): void { let page: number = 1; Laya.timer.frameLoop(10, this, () => { page += 1; //在定时器中让变量page每次...
来源: Laya3.0_文档 发布时间: 20240910