大约有 773 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0060 秒)
Laya_社区(382) Laya2.0_文档(85) Laya3.0_api(74) Laya2.0_api(66) laya_api(63) Laya3.0_文档(44) Laya_示例(32) Laya2.0_示例(27)
...0, 0, 0); function CmpScript() { CmpScript.super(this); this.x = 0; } Laya.class(CmpScript, "CmpScript", Laya.Script) CmpScript.prototype._initialize = function (owner) { var _this = this; CmpScript.__super.prototype._initialize.call(this, owner); } CmpScript.prototype._update = function (state) { C...
来源: Laya_社区 发布时间: 20161126
...ror: LayerManager is not a constructor的错误 我看到Laya有一个Laya.class的方法,请问这个能解决这个问题吗 2017-12-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: TS...
来源: Laya_社区 发布时间: 20171212
...o UI创建4个image var分别: map0,map1,map2,map3 背景图宽高 1800 class WorldPage extends ui.WorldPageUI{ constructor (x,y) { super() this.maxX = 149850 this.maxY = 97500 this.offsetX = x * 150 this.offsetY = y * 150 this.downMouseX = 0 this.downMouseY = 0 Laya.loader.load(['bg/world_bg.jpg...
来源: Laya_社区 发布时间: 20181220
...howall", "noborder", "full", "fixedwidth", "fixedheight"], index = 0, txt; class SmartScale_T { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Image = Laya.Image, Text = Laya.Text; // 不支持WebGL时自动切换至Can...
来源: Laya2.0_示例 发布时间: 20240930
...ted All Inherited Externals Only exported Menu Globals "laya/ui/Tree" Tree Class Tree Tree 控件使用户可以查看排列为可扩展树的层次结构数据。 example package { import laya.ui.Tree; import laya.utils.Browser; import laya.utils.Handler; public class Tree_Example { public function...
来源: Laya3.0_api 发布时间: 20231115
API DocumentationAll Packages | All Classes | Index | Frames No Frames BoxProperties | Methods | Events Packagelaya.uiClasspublic class BoxInheritanceBox UIComponent Sprite Node EventDispatcher ObjectImplements IBoxSubclasses LayoutBox, List, Panel, ScaleBox, Tree, UIGroup, ViewStack Box ...
来源: Laya2.0_api 发布时间: 20190513
...何判断是否停止定时器? 在pc上时,做个简单的测试, class TestUI extends ui.test.TestPageUI { constructor() { super(); this.stage.on(Laya.Event.FOCUS, this, this.onFocus); this.stage.on(Laya.Event.BLUR, this, this.onBlu...
来源: Laya_社区 发布时间: 20180724
...载场景后报上面图片的错误 GameStart 类如下: export default class GameStart extends ui.GameStartUI { constructor() { super(); this.btnStart.on(Laya.Event.CLICK, this, this.startGame); } startGame(): void { //L...
来源: Laya_社区 发布时间: 20190510
...请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: class TextRender getFontSizeInfo 函数,最后部分 var xoff:int = Math.max( orix - pixelBBX[0], 0); var yoff:int = Math.max( oriy - pixelBBX[1], 0); var bbxw:int = pixelBBX[2] - pixelBBX[0]; var bbxh:int ...
来源: Laya_社区 发布时间: 20200108
...非你的代码有问题 代码如下 输出结果为 1 // 程序入口 class LayaSample{ private static aa:Child; private static bb:Child; constructor() { Laya.init(600,400); this.init(); } private init(){ LayaSample.aa = new Child(); LayaSample.aa.num("1"); LayaSample.bb = new Child(); LayaSamp...
来源: Laya_社区 发布时间: 20180729