大约有 4,102 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0073 秒)
Laya_社区(3323) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...n; constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("Attack"); } } } 扩展UI代码: import { ui } from "../ui/layaMaxUI"; export default class AttackView extends ui.AttackUI { constructor() { super(); this.btn_attack.on("click", this, this.onAttack); } pri...
来源: Laya_社区 发布时间: 20180926
...处理会更好 _processActive(active: boolean, fromSetter?: boolean) { (this._activeChangeScripts) || (this._activeChangeScripts = []); let arr = this._activeChangeScripts; if (active) this._activeHierarchy(arr, fromSetter); else this._inActiveHierarchy(arr, fromSetter); for (let i = 0, n = arr.len...
来源: Laya_社区 发布时间: 20231007
... var value:String = ""; var max:int = this._position_ + len; var c:int, c2:int; // gb2312-encode while (this._position_ < max) { c = _data_....
来源: Laya_社区 发布时间: 20160606
UI相关问题 loadui问题 this.loadUI("test/TestPage") 请问下是这样加载分离ui的吗?为什么我看 __proto.loadUI=function(path){ var uiView=View.uiMap[path]; uiView && this.createView(uiView); } 这里面uiMap都没有地方会注册. 还有我按F12后this直接被去掉了,...
来源: Laya_社区 发布时间: 20171030
...y = Laya.Node.prototype.destroy; Laya.Node.prototype.destroy = function(){ this.event('destroy'); oldDestroy.call(this); } } 2017-11-20 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 你直接在销毁的时候派发一个自定义事件,然后把销毁页面之后的逻辑写...
来源: Laya_社区 发布时间: 20171120
...语句写错吗?怎么一直执行第一个条件 我的本意是判断this.boy.visible=true的话,鼠标可以点击然后到isShowBoy方法中,可是在这个时候我已经将this.boy.visible=false了,点击的时候为什么控制台还是会一直输出8,不是应该输出9嘛 附件 : ...
来源: Laya_社区 发布时间: 20170112
...rams.FLAG_FULLSCREEN); mProxy = new RuntimeProxy(this); mPlugin = new GameEngine(this); mPlugin.game_plugin_set_runtime_proxy(mProxy); mPlugin.game_plugin_set_option("localize","false"); mPlugin.game_plugin_set_option("gameUrl...
来源: Laya_社区 发布时间: 20170517
...怎么实现拓印 画笔可以添加纹理吗?用 graphics.drawCircle(this.zz.mouseX,this.zz.mouseY, this.radius, "#00ffff");这种方法,画出来的只能是纯色或者渐变色,怎么设置纹理或者透明度? 附件 : --> 2020-02-14 添加评论 已悬赏50元 --> 分享 微博 QZONE...
来源: Laya_社区 发布时间: 20200214
...if (type==="image" || type==="htmlimage" || type==="nativeimage")return [b]this._loadImage(url);[/b] 改为: if (type==="image" || type==="htmlimage" || type==="nativeimage")return [b]this._loadImage(this._url);[/b] 再修改bin/libs/laya.wxmini.js文件的下面几处即可。 1. 大约793行 if(...
来源: Laya_社区 发布时间: 20190403
...自: 170*****650 这是因为你函数执行时执行域发生了改变,this指向变成了window。你有两种方案处理这个问题: 第一个: joy.callBackFun = onMyRole.bind(this); 第二个: joy.callBackFun = Handler.create(this,onMyRole); 2017-06-11 1 0 分享 微博 QZONE 微信...
来源: Laya_社区 发布时间: 20170610