大约有 75 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0039 秒)
....Dialog; import Scene=Laya.Scene; export module ui { export class BGPageUI extends View { constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("BGPage"); } } export class MonkeyPageUI extends View { constructor(){ super()} createChildren():void { super.createChildre...
来源: Laya_社区 发布时间: 20181014
...景中的Button等控件? export module ui { export class GameSceneuiUI extends Laya.Scene { public static uiView:any ={"type":"Scene","props":{"width":720,"height":1280},"compId":2,"child":[{"type":"Button","props":{"y":616,"x":296,"skin":"comp/button.png","name":"butStart","label":"label"},"comp...
来源: Laya_社区 发布时间: 20200228
...on等控件? export module ui { export class GameSceneuiUI extends Laya.Scene { public static uiView:any ={"type":"Scene","props":{"width":720,"height":1280},"compId":2,"child":[{"type":"Button","props":{"y":616,"x":296,"skin":"comp/button.png","name":"butStart...
来源: Laya_社区 发布时间: 20200228
...完的文件叫 MyTestUI,在具体使用时可能这样用: MyTestView extends MyTestUI,然后在 MyTestView 中写具体显示逻辑; 如果不需要设计UI界面,整个界面通过代码拼成,这个时候 我们是直接继承自 Sprite (没有继承 View等)来写具体逻辑的...
来源: Laya_社区 发布时间: 20170929
...mport laya.ui.Image; import laya.ui.Label; import laya.ui.View; class Item extends View { public static var WID:int=150; public static var HEI:int=85; private var img:Image; private var label:Label; public function Item() { this.size(WID,HEI); img=new Image(); addChild(img); label=new Label(); label...
来源: Laya_社区 发布时间: 20170626
...itorInfo="compId=2"/> </View> mytexts.as: public class myTexts extends myTextsUI public function myTexts() { super(); } override protected function initialize():void { super.initi...
来源: Laya_社区 发布时间: 20170703
...t"; import UIMain from "../ui/Game/UIMain"; export default class GameWnd extends BaseWin { public view: UIMain; /** 角色 */ private character: Laya.Sprite /** 角色刚体*/ private rig: Laya.RigidBody /** 医疗包*/ private addhp: Laya.Sprite /**...
来源: Laya_社区 发布时间: 20221207
...的界面,比如我写了A.ui文件,自动生成一个ts类,class A extends ui.AUI,但是这个ui命名空间并不存在,如果我手动改成extends Laya.View(.ui文件里用的View标签),那么我如何让这个类去使用这个.ui文件呢?就像eui里指定skin一样。 2018-0...
来源: Laya_社区 发布时间: 20180323
... Calvin 赞同来自: 可以证实的,有如下场景: class PageList extends laya.ui.List { constructor() { super(); } protected initialize():void { super.initialize(); this.itemRender = Pa...
来源: Laya_社区 发布时间: 20180810
... 林龙 赞同来自: ts 编译后的 js 代码为: class StarFlyUI extends ui.hall.HallViewUI { 2018-05-28 0 0 分享 微博 QZONE 微信 林龙 赞同来自: 用es5. 还是要靠自己 2018-05-29 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请...
来源: Laya_社区 发布时间: 20180528