大约有 33 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0047 秒)
...函数,例如: function renderListItem(index:number, obj:GButton) { obj.title = "" + index; } 如果使用了对象池,意回调函数可能为同一个对象重复调用,所以在回调函数里注册事件侦听需要非常小心,避免使用临时函数,造成重复添加。 然后设...
来源: Laya3.0_文档 发布时间: 20251128
...显示调用成功,但并未播放音乐。 wx.shareAppMessage({ title: "小猪佩奇身上纹,掌声送给社会人", imageUrl: "images/boss.png", success: function () { gameex.bar.shareCount += 1; gameex.bar.clearCountDown(); gameex.snakeSelf.updateState(EN_SNAKE_STATE_NORMAL); gameex.sn...
来源: Laya_社区 发布时间: 20180514
...; panel.inspect(data, "SplitAtlasSetting"); this.contentPane = panel; this.title = "图集分割工具"; } protected onShown() { (this.contentPane as IEditor.InspectorPanel).resetDefault(); this.setSize(500, 250); this.contentPane.on("click_start_gen", this.startGen, this); this.contentPane.on("clic...
来源: Laya_社区 发布时间: 20250731
...], "contributes": { "commands": [ { "command": "extension.buildTemplate", "title": "build template" } ] },extension.js 内容如下 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); const vscode = require("vscode"); function activate(context) { let disposable = vscode.comm...
来源: Laya_社区 发布时间: 20180728
...(图1-2) 三、常见问题 拖入一个GButton到舞台,设置它的Title为何没有任何效果? GButton是一个行为组件,它不带显示功能。你需要制作自己的按钮再拖入使用。当然,也可以使用“UI组件(默认皮肤)”里的提供的预制好的按钮...
来源: Laya3.0_文档 发布时间: 20251010
...edInstanceState); getWindow().requestFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); mProxy = new RuntimeProxy(this); mPlugin = new GameEngine...
来源: Laya_社区 发布时间: 20170517
... Laya.init(750, 1218, Laya.WebGL); Laya.Browser.document.title = 'GG游戏; if (Laya.Browser.onPC) { //设置舞台缩放模式 Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; Laya.stage.scre...
来源: Laya_社区 发布时间: 20181213
... Laya.init(750, 1218, Laya.WebGL); Laya.Browser.document.title = 'GG游戏; if (Laya.Browser.onPC) { //设置舞台缩放模式 Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; Laya.stage.scre...
来源: Laya_社区 发布时间: 20181208
...定义类型 export class Demo { constructor( options: Object ); addScene( title: string, initfunc: Function ): void; restartCurrentScene(): void; } } //多级模块 declare module laya.ani.bone { class EventData { name:string; intValue:number; floatValue:number; stringValue:string; audioValue:strin...
来源: Laya2.0_文档 发布时间: 20210715
..."); let input: gui.TextInput = this._panel.getChild("TextInput").getChild("title"); input.on("changed", () => { console.log("改变了!"); }) } } 四、程序化生成界面 4.1 常用方法 除了使用UI编辑器制作界面,也可以使用代码的方式去创建一些常用的UI组件,...
来源: Laya3.0_文档 发布时间: 20251010