大约有 520 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0052 秒)
...ya.ui.Button; import laya.ui.Clip; import laya.ui.Image; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_Clip { /***控制器按钮资源***/ private var buttonSkin:String = "../../../../res/ui/button-7.png"; /***切片资源***/ private var clipSkin:String = "../../../../res/ui/...
来源: Laya2.0_文档 发布时间: 20210714
...dMap地图 this.tMap.createMap("map/"+mapname+".json",viewRect, laya.utils.Handler.create(this, this.test));//, null, new Laya.Point(1600, 816)); } private test(){ var testLayer:Laya.MapLayer = this.tMap.getLayerByName("player"); this.tMapPlayer = new Laya.Sprite(); this.tMapPlayer.graphics.drawRect...
来源: Laya_社区 发布时间: 20170627
...setup() { Laya.loader.load("../../res/ui/dialog (3).png", Laya.Handler.create(this, function(){ var dialog = new Image("../../res/ui/dialog (3).png"); dialog.scaleX = 2; dialog.scaleY = 2; var panel = new Panel(); panel.vScrollBarSkin = ""; panel.hScro...
来源: Laya_社区 发布时间: 20180201
...e = new Laya.Texture(); tex.load("res/img/108879.png",Laya.Handler.create(this,function(): void{ tex.getPixels(0,0,1,1); })); 附件 : --> 2019-06-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...
来源: Laya_社区 发布时间: 20190625
...Version.FILENAME_VERSION; Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.beginLoad)); } private beginLoad(): void { console.debug("aaaaaaaaaaaaaaaaa"); var img = new Laya.Sprite(); img.loadImage("res/test.jpg"); Laya.stage.addChild(img); } } new GameMain(); 调试的时...
来源: Laya_社区 发布时间: 20180416
...告 laya.utils.Tween.to(self.richText, { x: 0 }, 10000, null, laya.utils.Handler.create(self, self.onTween1)); 然后执行游戏里面代码的时候有时候会卡住不动,没报错,非必现。 //播开始动画 var kaishi = new StartAnimView(); this.addChild(kaishi); kaishi.playAnim(); t...
来源: Laya_社区 发布时间: 20200113
...racter = new Laya.Sprite(); character.loadImage(skin, 0, 0, 200, 200, Laya.Handler.create(this, function () {console.log('KO!~'); })); character.graphics.drawLine(0, 200, 200, 0, "#ff0000", 1); character.graphics.drawLine(0, 0, 200, 200, "#ff0000", 1); character.graphics.drawCircle(100, 100, 100, nu...
来源: Laya_社区 发布时间: 20170828
...men/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", Laya.Handler.create(this, function(mesh) { var layaMonkey = scene.addChild(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071...
来源: Laya2.0_文档 发布时间: 20210715
... Devin 赞同来自: 怎么实例化? Laya.loader.load("xxx.json", Laya.Handler.create(this, this.onCompleteCall), .....); let xxx:View = ? 这里怎么实例化这个 xxx.json为视图对象? 2018-10-30 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题...
来源: Laya_社区 发布时间: 20181018
...图片资源来自“引擎API使用示例” Laya.loader.load(skins, Laya.Handler.create(this, this.placeVSlider)); } private placeVSlider(): void { let vs: Laya.Slider = new Laya.VSlider(); vs.skin = "vslider.png"; vs.height = 300; vs.pos(400, 50); vs.min = 0; vs.max = 100; vs.value = 50; vs.tick ...
来源: Laya3.0_文档 发布时间: 20251010