大约有 397 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0039 秒)
...stage.addChild(storeTxList); 悬赏找大神看问题 export default class StoreItem extends Laya.Box { constructor() { super(); this.size(195, 210); } } 附件 : --> ListDemo.zip 2019-07-11 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20190711
...urce.Context; import laya.utils.Browser; import laya.utils.HitArea; public class KouTu extends Sprite { private var box:Sprite; private var interactionArea:Sprite; private var maskArea:Sprite; private var guideContainer:Sprite; private var gameContainer:Sprite; public function KouTu() { super(); //...
来源: Laya_社区 发布时间: 20170315
...需要添加如下的示例代码,实现脚本控制Radio: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Radio }) public radio: Laya.Radio; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方...
来源: Laya3.0_文档 发布时间: 20240910
...见。 显示对象层级关系如下: 代码如下:// 程序入口 class GameMain{ constructor() { Laya.init(1280,720,Laya.WebGL);//只有webGL才会有问题 Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; Laya.stage.alignV = Laya.Stage.ALIGN_TOP; Laya.stage.alignH = Laya.Stage.ALIGN_CENTER;...
来源: Laya_社区 发布时间: 20170829
...AssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() { Laya.class(MyBoot, "MyBootClass", MyBootPage2UI); UI = new MyBootClass(); Laya.stage.addChild(UI); } function MyBoot() { MyBoot.super(this); this.Boot.selectHandler = new Laya.Handler(this, onSelect...
来源: Laya_社区 发布时间: 20160722
...import morn.core.components.Box; import morn.core.handlers.Handler; public class ListView extends ListViewUI { public function ListView() { super(); var arr:Array=[]; for(var i:int=0;i<95;i++) { arr.push({icon:i,label:"Index"+i}); } boxList.array=arr; boxList.mouseHandler=new Handler(listRender);...
来源: Laya_社区 发布时间: 20151224
...int对象父容器rotation旋转之后检测不了碰撞 附上代码 class FishPonds extends Laya.Sprite { public are: Laya.Rectangle = new Laya.Rectangle(0, 0, 60, 30); constructor() { super(); var _fish: Laya.Sprite = new Laya.Sprite() _fish.graphics.drawRect(this.are.x, this.are.y, this.are...
来源: Laya_社区 发布时间: 20180315
...求助,屏幕旋转后滚动条没有跟随旋转 module dialog { export class WanF extends ui.dialog.WanFUI { constructor() { super(); this.rotation = 90; this.pos(1060, 280); let panel = new Laya.Panel(); panel.size(638, 527); panel.vScrollBarSkin = "CommDialog/vscroll.png"; this.sp_wanfa.addChi...
来源: Laya_社区 发布时间: 20180426
...载问题 测试内容:加载3D场景 代码如下: export default class TestUI extends ui.test.TestSceneUI { private resource: Array<String> = [ "gate/Conventional/Test.ls", ]; constructor() { super(); } onAwake(): void { Laya.loader.crea...
来源: Laya_社区 发布时间: 20190925
...信 Barry Allen 赞同来自: import Sprite = Laya.Sprite export default class Test extends Sprite{ public DEF_SIZE: number = 200 public CIRCLE_WIDTH: number = 20 public $circleSprite: Sprite = new Sprite() public startY: number = -90 constructor() { super() this._init() } private _init() { this.c...
来源: Laya_社区 发布时间: 20180123