大约有 1,273 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0065 秒)
Laya_社区(723) Laya2.0_文档(155) Laya3.0_api(108) Laya2.0_示例(81) Laya_示例(70) Laya2.0_api(58) laya_api(54) Laya3.0_文档(24)
...height); this.tMap.createMap("res/mario_map/new_map2.json", viewRect, Laya.Handler.create(this,this.initMap)); } private initMap(): void { var layer = this.tMap.getLayerByIndex(9); var gs = layer.getObjectByName('others1'); var sp: Laya.Sprite = new Laya.Sprite(); sp.loadImage("res/smallWalkRight.pn...
来源: Laya_社区 发布时间: 20190214
...rt ScrollBar = Laya.ScrollBar; import VScrollBar = Laya.VScrollBar; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ScrollBar { /***水平滚动条资源**/ private skins:Array=["res/ui/hscroll.png", "res/ui/hscroll$bar.png", "res/ui/hscroll$down.png", "res/ui/hscroll$up.pn...
来源: Laya2.0_文档 发布时间: 20210715
...rt ScrollBar = Laya.ScrollBar; import VScrollBar = Laya.VScrollBar; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ScrollBar { /***垂直滚动条资源**/ private skins:Array=["res/ui/vscroll.png", "res/ui/vscroll$bar.png", "res/ui/vscroll$down.png", "res/ui/vscroll$up.pn...
来源: Laya2.0_文档 发布时间: 20210715
... = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.st...
来源: Laya2.0_示例 发布时间: 20241124
...es/fontWord.fnt", type: Laya.Loader.FONT }); Laya.loader.load(assets, Laya.Handler.create(this, onAssetsLoaded)); function onAssetsLoaded(){ var bitmapFont = new Laya.BitmapFont(); bitmapFont.loadFont("res/fontWord.fnt"); //必出错 } 只要使用 Laya.Loader.FONT 必出错 难道是要改...
来源: Laya_社区 发布时间: 20170329
... = Laya.Animation; var Stage = Laya.Stage; var Browser = Laya.Browser; var Handler = Laya.Handler; var Tween = Laya.Tween; var WebGL = Laya.WebGL; // 一只凤凰的分辨率是550 * 400 var phoenixWidth = 550; var phoenixHeight = 400; var bgColorTweener = new Tween(); var gradientInterval = 2000; v...
来源: Laya_示例 发布时间: 20241124
...#232628"; Laya.loader.load(this.btnArr.concat("res/apes/monkey3.png"),Laya.Handler.create(this,this.onLoaded)); } createButton(skin, name, cb, index) { var btn = new Laya.Button(skin,name); Laya.stage.addChild(btn); btn.on(Laya.Event.CLICK,this,cb); btn.size(147,55); btn.name = name; btn.right = 10;...
来源: Laya2.0_示例 发布时间: 20241124
...注: 3 人 AIQR2013 • 2018-05-22 09:35 this.backpackPanel.itemList.renderHandler = new Handler(this,this.OnRankListRender); this.backpackPanel.itemLabList.renderHandler = new Handler(this,this.OnRankLisLabRender); if(this.backpackPanel.itemLabList.scrollBar.changeHandler == null){ this.backpackPan...
来源: Laya_社区 发布时间: 20180515
...ALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(assets, Laya.Handler.create(this, this.ShowContent)); } ShowContent() { const FontClip = Laya.FontClip; var clipnum= new FontClip(assets[0]); var fontClip = new FontClip(assets[1]); var TestFontClip = new FontClip(assets[1]); var TestClip...
来源: Laya2.0_示例 发布时间: 20241124
...谢import test = ui.test.TestPageUI; import Label = laya.ui.Label; import Handler = laya.utils.Handler; import Loader = laya.net.Loader; class TestUI extends ui.test.TestPageUI { constructor() { super(); var btn1=new ui.test.view_btnUI(); var btn1_btn:laya.ui.Button=btn1.getChildByName("btn") as lay...
来源: Laya_社区 发布时间: 20170725