大约有 258 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0055 秒)
...0, 480,WebGL); Laya.stage.scaleMode = Stage.SCALE_FIXED_HEIGHT; Laya.stage.bgColor = "#ffffff"; if (Browser.onMiniGame) { Laya.timer.once(1000, this, function():void{ //设置共享画布大小 __JS__('sharedCanvas').width = Laya.stage.width; __JS__('sharedCanvas').height = Laya.stage.height; //主...
来源: Laya_社区 发布时间: 20180525
...MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.bgColor = '#0000ff'; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; var tiledMap; var viewRect; var mLastMouseX = 0; var mLastMouseY = 0; var mX = 0; var mY = 0; (fu...
来源: Laya_社区 发布时间: 20180612
...(function () { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); mLabelSprite = new Sprite(); startFun(); })(); function startFun() { mAniPath = "res/spine/spineRes2/goblins.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); m...
来源: Laya_社区 发布时间: 20170818
...package:scripts/config.js I/LayaBox: JSRuntime::callMethod {} demo.J*ridge bgColor JSRuntime::callMethod {} demo.J*ridge setFontColor I/LayaBox: JSRuntime::callMethod {} demo.J*ridge setTips I/LayaBox: Download [ ]:http://happiness.joyleafs.com/ncapi/client/app*/*/assetsid.txt?rand=112176809...
来源: Laya_社区 发布时间: 20210305
...ge.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.loadFont(); } loadFont() { const BitmapFont = Laya.BitmapFont, Handler = Laya.Handler; Laya.loader.load([{ url: ['res/bitmapFont/test.fnt'], type: Laya.Loader.FONT }], Handler....
来源: Laya_社区 发布时间: 20190225
...ublic function Demo() { Laya.init(800,1000,WebGL); Stat.show(); Laya.stage.bgColor="#EEFFCC"; //预加载图集 Laya.loader.load("res/atlas/bag.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { sp=new Sprite(); Laya.stage.addChild(sp); //每隔0.05秒出现...
来源: Laya_社区 发布时间: 20161107
...Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { var list = new List(); list.itemRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.height - HEI * list.repeatY...
来源: Laya_社区 发布时间: 20180312
...sAlpha = true; Config.isAntialias = true; Laya.init(0, 0,true); Laya.stage.bgColor = "#000000"; ChangeSize(); Laya.timer.once(1000,this,function start():void{ Laya.stage.on(Event.RESIZE,this,onResize); }); } protected function HengPing(): void { trace("设置横屏" ); var layaCanvas:Object = Bro...
来源: Laya_社区 发布时间: 20190520
...unction LayaUISample() { //初始化引擎 Laya.init(600, 800); Laya.stage.bgColor = "#ffcccc"; //加载界面需要的资源文件 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 listP = new ...
来源: Laya_社区 发布时间: 20170313
... Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#ffffff"; Stat.show(); setup(); } private function setup():void { ...
来源: Laya_社区 发布时间: 20170822