• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,102 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0073 秒)

791. List翻页效果怎么实现 [ 45%]

...DialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rul...

来源: Laya_社区 发布时间: 20181112

792. module写法的模块无法使用,其他地方使用会报错 [ 45%]

...无法使用,其他地方使用会报错 module bili{ export class Test{ constructor(){ console.log("Test"); } } } 2018-09-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 7 个回复 牛唠叨 赞同来自: Chiuan 其实...

来源: Laya_社区 发布时间: 20180926

793. 鼠标交互-自定义事件 [ 45%]

...CustomEvent { public static ROTATE: string = "rotate"; private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "sh...

来源: Laya_示例 发布时间: 20250225

794. Sprite-轴心点 [ 44%]

...bGL; export class Sprite_Pivot { private sp1: Sprite; private sp2: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "sh...

来源: Laya_示例 发布时间: 20250225

795. 骨骼动画-藤蔓 [ 44%]

...re:Skeleton; private mCurrSkinIndex:number = 0; private mFactory2:Templet; constructor() { Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); this.startFun(); } public startFun():void { this.mAniPath = "../../res/spine/spineRes5/vine.sk"; this.mFactory = new...

来源: Laya_示例 发布时间: 20250225

796. 对游戏中各种控件字体样式使用“白鹭style”样式表 [ 44%]

...示的文本颜色(输入框有这个玩意儿) */ promptColor:string; constructor() { } }这些字段就是Label控件类设置样式的相关属性。这里我只选取了我需要的。还有那些align等属性,可以根据自己需要定义。这里只是抛砖引玉……2.设计一个ex...

来源: Laya_社区 发布时间: 20171226

797. 面板容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 44%]

...property } = Laya; @regClass() export class UI_Panel extends Laya.Script { constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { // 创建Panel组件 let panel: Laya.Panel = new Laya.Panel(); panel.hScrollB...

来源: Laya3.0_文档 发布时间: 20240910

798. 骨骼动画-橡胶人 [ 44%]

...re:Skeleton; private mCurrSkinIndex:number = 0; private mFactory2:Templet; constructor() { Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); this.startFun(); } public startFun():void { this.mAniPath = "../../res/spine/spineRes4/stretchyman.sk"; this.mFactor...

来源: Laya_示例 发布时间: 20250225

799. 其他引擎的Demo-Example_05 [ 44%]

... tpoint2:Array = []; private tpoint3:Array = []; private balls:Array = []; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Stat.show(); Laya.stage.scaleMode = Stage.SCALE_FULL; this.setup(); } private setup():void { Laya.stage.on(Event.RESIZ...

来源: Laya_示例 发布时间: 20250225

800. 其他引擎的Demo-Example_05 [ 44%]

... tpoint2:Array = []; private tpoint3:Array = []; private balls:Array = []; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Stat.show(); Laya.stage.scaleMode = Stage.SCALE_FULL; this.setup(); } private setup():void { Laya.stage.on(Event.RESIZ...

来源: Laya2.0_示例 发布时间: 20250225