大约有 230 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0051 秒)
...ndler = null): void { Geolocation.navigator.geolocation.getCurrentPosition(function (pos: any): void { Geolocation.position.setPosition(pos); onSuccess.runWith(Geolocation.position); }, function (error: any): void { onError.runWith(error); }, { enableHighAccuracy: Geolocation.enableHighAccuracy, tim...
来源: Laya3.0_文档 发布时间: 20251010
....events.EventDispatcher; public class Mod extends EventDispatcher { public function Mod() { super(); } private static var _instance:Mod; public static function get index():Mod { return _instance ||= new Mod(); } public function init():void { Mod.event("aaaa"); } } }监听:Mod.on("aaa",this,onFunci...
来源: Laya_社区 发布时间: 20161218
...: 2017-05-16 10:17 浏览: 2328 关注: 2 人 Y_Yao • 2017-05-16 10:26 function daoju() { daoju.super(this); this.Tab_ZM.selectHandler = new Laya.Handler(this, onSelect); } function onSelect(index) { console.log("当前选择的标签页索引为:" + index);); this.Tab_ZM.on(Event.CLIC...
来源: Laya_社区 发布时间: 20170516
...享 微博 QZONE 微信 GameMonkey 赞同来自: 补充下主要的代码(function(global){ var Laya3D = global.Laya3D; var Laya = global.Laya; Laya3D.init(0, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); Laya.Scene3D.load('/1/res...
来源: Laya_社区 发布时间: 20200611
自定义对话框设置zOrder后,关闭时报错 var CountdownBar = (function () { function countdownBar() { PauseDialog.super(this); this.name = 'CountdownBar'; Laya.stage.addChild(this); this.zOrder = 100; this.count = 4; this.countLabel.text = '' + this.count; Laya.timer.loop(1000, this, this...
来源: Laya_社区 发布时间: 20171012
生成的粒子特效怎么设置colorComponentInter无效? function UILetterBox(letter, width) { UILetterBox.super(this); letter = letter; this.loadImage('res/jiezou/wenzi2.png'); Laya.loader.load("res/parts/qipao.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); } function onAsse...
来源: Laya_社区 发布时间: 20161230
...载动画为什么实现的效果会错乱掉? var WID = 80, HEI = 400; function Item1() { Item1.__super.call(this); this.size(WID, HEI); this.setImg = function(src) { var ani = new Animation(); ani.loadAtlas(src); // 加载图集动画 ani.interval = 100; // 设置播放间隔(单位:毫秒...
来源: Laya_社区 发布时间: 20170627
...rivate var guideContainer:Sprite; private var gameContainer:Sprite; public function KouTu() { super(); //绘制一个蓝色方块,不被抠图 gameContainer = new Sprite(); gameContainer.loadImage("crazy_snowball.png", 0, 0, 600, 400); addChild(gameContainer); // 引导所在容器 guideContainer ...
来源: Laya_社区 发布时间: 20170315
...{ prevTasks = ["替换Laya前缀"] } const fs = require("fs"); function readFile(path) { if (fs.existsSync(path)) { return fs.readFileSync(path, "utf-8"); } return null; } gulp.task('替换Laya前缀', function(){ var layaMaxUI_Pat...
来源: Laya_社区 发布时间: 20190128
...删掉所有的声音channel */ __proto._onAniSoundStoped=function(force){ var _channel; for (var len=this._soundChannelArr.length,i=0;i < len;i++){ _channel=this._soundChannelArr; if (_channel.isStopp...
来源: Laya_社区 发布时间: 20190827