大约有 70 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0055 秒)
...nly exported Menu Globals "laya/utils/HitArea" HitArea Class HitArea 鼠标点击区域,可以设置绘制一系列矢量图作为点击区域和非点击区域(目前只支持圆形,矩形,多边形) Hierarchy HitArea Implements IHitArea Index Properties _hit _unHit Accessors hit unHit Me...
来源: Laya3.0_api 发布时间: 20231115
...。 sprite.on(Event.CLICK, this, onClickSprite);//给 sprite 对象添加点击事件侦听。 shape = new Sprite();//创建一个 Sprite 类的实例对象 sprite 。 shape.graphics.drawRect(0, 0, 100, 100, "#ccff00", "#ff0000", 2);//绘制一个有边框的填充矩形。 shape.x = 400;//设置 sh...
来源: Laya3.0_api 发布时间: 20231115
...功能。 可以通过UIConfig设置弹出框背景透明度,模式窗口点击边缘是否关闭等 通过设置zOrder属性,可以更改弹出的层次 通过设置popupEffect和closeEffect可以设置弹出效果和关闭效果,如果不想有任何弹出关闭效果,可以设置前述属...
来源: Laya3.0_api 发布时间: 20231115
...lickHandler = new Handler(this, onClickButton,[button]);//设置 button 的点击事件处理器。 Laya.stage.addChild(button);//将此 button 对象添加到显示列表。 } private function onClickButton(button:Button):void { trace("按钮button被点击了!"); } } } example Laya.init(640, 800...
来源: Laya3.0_api 发布时间: 20231115
...de closeDialogOnSide: boolean = true Defined in UIConfig.ts:14 模式窗口点击边缘,是否关闭窗口,默认是关闭的 Static mouseWheelEnable mouseWheelEnable: boolean = true Defined in UIConfig.ts:6 是否开启滑轮滚动(针对滚动条) Static popupBgAlpha popupBgAlpha: number =...
来源: Laya3.0_api 发布时间: 20231115
...clickHandler = new Handler(this, onClick, [checkBox]);//设置 checkBox 的点击事件处理器。 Laya.stage.addChild(checkBox);//将此 checkBox 对象添加到显示列表。 } private function onClick(checkBox:CheckBox):void { trace("输出选中状态: checkBox.selected = " + checkBox.selected...
来源: Laya3.0_api 发布时间: 20231115
...ck set_onclick(fn: Function): void Defined in laya/utils/IStatRender.ts:26 点击性能统计显示区域的处理函数。 Parameters fn: Function Returns void show show(x?: number, y?: number, views: any): void Defined in laya/utils/IStatRender.ts:10 显示性能统计信息。 Parameters Default ...
来源: Laya3.0_api 发布时间: 20231102
...象的显示位置。 clip.on(Event.CLICK, this, onClick);//给 clip 添加点击事件函数侦听。 Laya.stage.addChild(clip);//将此 clip 对象添加到显示列表。 } private function onClick():void { trace("clip 的点击事件侦听处理函数。clip.total="+ clip.total); if (clip.isPlay...
来源: Laya3.0_api 发布时间: 20231115
...lickHandler = new Handler(this, onClickButton,[button]);//设置 button 的点击事件处理器。 Laya.stage.addChild(button);//将此 button 对象添加到显示列表。 } private function onClickButton(button:Button):void { trace("button.selected = "+ button.selected); } } } example Laya.init(...
来源: Laya3.0_api 发布时间: 20231115
...rides IStatRender.set_onclick Defined in laya/utils/StatUI.ts:168 override 点击性能统计显示区域的处理函数。 Parameters fn: (this: GlobalEventHandlers, ev: MouseEvent) => any (this: GlobalEventHandlers, ev: MouseEvent): any Parameters this: GlobalEventHandlers ev: MouseEvent Return...
来源: Laya3.0_api 发布时间: 20231102