大约有 570 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0064 秒)
Laya_社区(382) Laya2.0_api(59) laya_api(55) Laya2.0_文档(29) Laya2.0_示例(16) Laya3.0_文档(13) Laya_示例(13) Laya3.0_api(3)
... = new Laya.Button(skin,name); Laya.stage.addChild(btn); btn.on(Laya.Event.CLICK,this,cb); btn.size(147,55); btn.name = name; btn.right = 10; btn.top = index * (btn.height + 10); return btn; } onLoaded(){ for (let index = 0; index = ["res/button.png", "res/button.png", "res/button.png"]; private nam...
来源: Laya2.0_示例 发布时间: 20241118
...n1,但不知道怎么调用,强行在Main.js里面写入 btn1.on(Event.CLICK, this, onBtnClick); function onBtnClick() { alert('222'); } btn1 is not defined 按教程写脚本,实在找不到地方写,请问有没有类似教程呢。 问题3)我在Scenes 新建了2个view,一个是v1一...
来源: Laya_社区 发布时间: 20181027
...ddBtn.x = 250; addBtn.y = 50; Laya.stage.addChild(addBtn); DesBtn.on(Event.CLICK, this, onDesBtn); addBtn.on(Event.CLICK, this, onAddBtn); } private function onDesBtn():void { destroy(); } private function onAddBtn():void { startFun(); } public function startFun():void { mAniPath = "Dragon/Dragon.sk...
来源: Laya_社区 发布时间: 20170406
... = soundButton.y; Laya.stage.addChild(musicButton); soundButton.on(Event.CLICK, this, this.onPlaySound); musicButton.on(Event.CLICK, this, this.onPlayMusic); } private createButton(label: string): Sprite { var w: number = 110; var h: number = 40; var button: Sprite = new Sprite(); button.size(...
来源: Laya_社区 发布时间: 20190421
...hare.y = this.Move2d.y; this.SceneMajor.addChild(share); share.btShare.on('click',this,function(){ // Laya.SoundManager.playSound(SfxPool.btPress, 1, null); this.SceneShareDark(); }); share.btSignUp.on('click',this, SignUp_Func); var timeLine = new Laya.TimeLine(); timeLine.addLabel("ZoomIn",0).to(s...
来源: Laya_社区 发布时间: 20180118
... GameInfo.super(this); this.pauseBtn.on(Laya.Event.CLICK, this, this.onPauseBtnClick); this.reset(); } Laya.class(GameInfo, "GameInfo", _super); var _proto = GameInfo.prototype; _proto.reset = function(){ this.infoLabel.text = "...
来源: Laya_社区 发布时间: 20170416
...false this.rig.gravityScale = 6 this.view.m_jump.onClick(this, this.onJump) this.view.m_left.on(Laya.Event.MOUSE_DOWN,this, this.onleft) this.view.m_left.on(Laya.Event.MOUSE_UP,this, this.notleft) this.view.m_right.on(Laya.Event.MOUSE_DOWN,...
来源: Laya_社区 发布时间: 20221207
...; label.color = "#e69999"; } dispose() { Laya.Laya.stage.offAll(Laya.Event.CLICK); Laya.Laya.stage.removeChild(this.label); } } new Physics_Physics_Bridge();import { Laya } from "Laya"; import { Sprite } from "laya/display/Sprite"; import { Stage } from "laya/display/Stage"; import { Event } from "l...
来源: Laya2.0_示例 发布时间: 20241118
...); cell.setImg(cell.dataSource[index]); cell.on(Laya.Event.CLICK, function() { console.log("click") }) } function onSelect(index) { console.log("当前选择的索引:" + index); } function createAPIList(api_list_view) { let data = []; ...
来源: Laya_社区 发布时间: 20180724
... Laya.stage.addChild(guideView); guideView.setClickArea(Laya.stage.width/2, Laya.stage.height/2,100); } } export class MazeGuideView extends Laya.Sprite { protected guideContainer: Laya.Sprite; prote...
来源: Laya_社区 发布时间: 20200119