大约有 70 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0057 秒)
...an = true; public canScale: boolean = true; /// <summary> /// Around center. /// </summary> //public target: Transform3D; public AroundPos: Vector3 = new Vector3(); /// <summary> /// Settings of mouse button, pointer and scrollwheel. /// </summary> public mouseSettings: Mouse...
来源: Laya_社区 发布时间: 20170714
...an = true; public canScale: boolean = true; /// <summary> /// Around center. /// </summary> //public target: Transform3D; public AroundPos: Vector3 = new Vector3(); /// <summary> /// Settings of mouse button, pointer and scrollwheel. /// </summary> public mouseSettings: Mouse...
来源: Laya_社区 发布时间: 20190224
...ya.stage.scaleMode = "noborder"; //设置剧中对齐 Laya.stage.alignH = "center"; Laya.stage.alignV = "center"; //设置横竖屏 Laya.stage.screenMode = "horizontal"; 默认初始化如上 我现在代码生成一个图片 例如 var btnJump = new Laya.Sprite(); btnJump.loadImage('res/btn_jump.pn...
来源: Laya_社区 发布时间: 20170801
...ge.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): vo...
来源: Laya_社区 发布时间: 20201203
...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { var gap = 10; //创建一个Sprite充当音效播放按钮 var soundButton = createButton("播放音效"); soundButto...
来源: Laya_社区 发布时间: 20170527
...aleMode = 'full'; Laya.stage.screenMode = 'vertical'; Laya.stage.alignH = 'center'; Laya.stage.bgColor = '#ff00ff'; Laya.Stat.show(0, 0); Laya.stage.on(Laya.Event.RESIZE, Laya.stage, ()=>{ console.log(111) Laya.stage.width = 600 * Laya.Browser.pixelRatio; }) } } new GameMain(); 2018-05-25 添加...
来源: Laya_社区 发布时间: 20180525
... Stage.ALIGN_MIDDLE; // Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL; //设置水平对齐 Laya.stage.alignH = "center"; //设置垂直对齐 ...
来源: Laya_社区 发布时间: 20170804
...lSprite.graphics.fillText(tEventData.name, 0, 0, "20px Arial", "#ff0000", "center"); Tween.to(mLabelSprite, { y:mStartY - 200 }, 1000, null,Handler.create(this,playEnd)) if(tEventData.name=="'fall'") { trace('fall'); } else if(tEventData.name=="'jump'") { trace('jump'); } else if(tEventData.name=="'...
来源: Laya_社区 发布时间: 20170406
...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#000000"; var s:MovieClip = new MovieClip; s.on(Event.ERROR,this,ddddd); s.load("D:/thisisnothing.swf"); } private function ddddd(e:* = null){ trace("d...
来源: Laya_社区 发布时间: 20170105
...50, 50, 50, 50"; input.fontSize = 80; input.size(128, 128); input.align = "center"; input.on(Laya.Event.INPUT, this, this.input, [input]); private input(input:Laya.TextInput, event:Event){ if(input.text.length > 2){ input.width += 20; } } 请问怎么解决这个问题? 附件 : --> 2017-08-20 ...
来源: Laya_社区 发布时间: 20170820