大约有 3,008 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0057 秒)
Laya_社区(1073) Laya3.0_api(672) Laya2.0_api(368) laya_api(298) Laya2.0_文档(233) Laya_示例(146) Laya2.0_示例(118) Laya3.0_文档(100)
...的遮罩时,设置Image的ScaleX为0时遮罩失效! // 程序入口 class GameMain{ constructor() { Laya.init(1280,720); Laya.loader.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loaded,null)); } private loaded():void{ var img:Laya.Image = new Laya.Ima...
来源: Laya_社区 发布时间: 20170327
...pannel里显示两张同样的图片显示不出来,只能显示一张 class LevelScrollUI extends ui.LevelUI { private panel:Laya.Panel; constructor() { super(); this.panel = new Laya.Panel(); this.panel.size(720, 1136); this.panel.vScrollBarSkin = "comp/vscroll.png"; Laya.stage.addChild(this.pan...
来源: Laya_社区 发布时间: 20180529
...是这样的:因为图标里有几个自定义属性,我定义了一个Class,继承自Box。我用List对其进行渲染,在list渲染的时候,执行renderHandler监听函数,对即将渲染的图标进行事件绑定操作。我测试的时候,想让他在鼠标点击的时候打印...
来源: Laya_社区 发布时间: 20180407
...(≧▽≦)/~ 2016-11-16 0 0 分享 微博 QZONE 微信 popo 赞同来自: class a extends sprite { function test():void { var t:Texture = datas; m_hitAreaSprite.graphics.drawRect(t.offsetX,t.offsetY,t.width, t.height,'#FFFFFF'); m_hitAreaSprite.width = t.width; m_hitAreaSprite.height = t.height; } ...
来源: Laya_社区 发布时间: 20161115
API DocumentationAll Packages | All Classes | Index | Frames No Frames QuaternionProperties | Methods | Constants Packagelaya.d3.mathClasspublic class QuaternionInheritanceQuaternion ObjectImplements laya.d3.core.IClone Quaternion 类用于创建四元数。 Public Properties PropertyDefi...
来源: laya_api 发布时间: 20170929
...ed Externals Only exported Menu Globals "laya/ani/GraphicsAni" GraphicsAni Class GraphicsAni Graphic动画 Hierarchy Graphics GraphicsAni Index Constructors constructor Accessors cmds Methods addCmd alpha clear clipRect destroy drawCircle drawCurves drawEllipse drawImage drawLine drawLines drawPath ...
来源: Laya3.0_api 发布时间: 20231115
...想放弃,就用2.2以下的引擎版本。 vincent • 2019-08-28 18:27 class TestSceneUI extends Scene { constructor() { super(); } createChildren() { super.createChildren(); this.loadScene("test/TestScene"); } } UC指这行报错,这个都是编译后的代码 addScore(value = 1) { ...
来源: Laya_社区 发布时间: 20190828
...ap = (function (_super) { function loadMap() { loadMap.super(this); } Laya.class(loadMap,"loadMap",_super); var _proto = loadMap.prototype; _proto.init = function() { this.num = ""; this.map = new TiledMap(); } _proto.showMap = function(num) { this.num = num; this.map.createMap("map/level/mota_map" ...
来源: Laya_社区 发布时间: 20170605
...aya.utils.Ease; import laya.utils.Handler; import laya.utils.Tween; public class LayaAirDemo { private var sp:Sprite; private var num:int; public function LayaAirDemo() { Laya.init(550,400); sp=new Sprite(); sp.graphics.drawCircle(0,0,50,"#00FFFF"); Laya.stage.addChild(sp); sp.pos(100,100); Tween.to...
来源: Laya_社区 发布时间: 20160913
...I.Button; import laya.ui.Image; /** * ... * @author Caixiansheng */ public class HProgressSlider extends HSlider { /**@private */ protected var _progress:Image protected var _proMask:Sprite; public function HProgressSlider(skin:String=null) { super(skin); } override protected function initialize():v...
来源: Laya_社区 发布时间: 20170327