大约有 884 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0058 秒)
...们演示了继承自身组件Image所实现的效果,如果继承一个Button组件类会出现什么情况呢?我们来操作看下。代码以及实现效果如下所示: ```typescript export default class ImageRunTime extends Laya.Button{ constructor(){ super(); ... } ... ... ... ```  export class NewScript extends Laya.Script { @property({type: Laya.Button}) public initBtn: Laya.Button; onEnable(): void { this.initBtn.on(Laya.Event.CLICK, this.onInit); } onInit() { alert(extendLib.initializeSteam()); } } 构建发布Windows后,需要在exe的同级目录下,新建一...
来源: Laya3.0_文档 发布时间: 20251010
...邀请: 与内容相关的链接 提交 1 个回复 Kingpon 赞同来自: button 加载不了 2018-05-16 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Kingpon 相关问题 关于微信小游戏关系链的问题 微信关系链:...
来源: Laya_社区 发布时间: 20180516
...任何控制你都可以按自己的设计思路来,有点类似于基于button做了一个跟button一样的组件 2018-03-31 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 zxcmht310 相关问题 发起问题须知,必看!!!...
来源: Laya_社区 发布时间: 20180330
... items: ["Array", "Atlas", "Json"], visibleItemCount: 3, } } }, { name: "buttons", inspector: "Buttons", options: { buttons: [ { caption: "取消", event: "click_cancel_gen" }, { caption: "生成", event: "click_start_gen" } ] } } ] } ]); Editor.extensionManager.createSettings("SplitAtlasSetting", "...
来源: Laya_社区 发布时间: 20250731
...017-03-17 0 0 分享 微博 QZONE 微信 Laya_XS 赞同来自: 你可以把button转换为tab组件,然后给你的button设置字体就行了! 2017-03-18 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 xiaob...
来源: Laya_社区 发布时间: 20170122
...equire("code.js");在加载这个文件的时候 Laya.loader.load([{ url: "button_font.fnt" }], Handler.create(null, onLoaded)); 图片里的 type="font",最终执行的 tempData=data.data; tempData 直接就是button_font.fnt里面内容的字符串类型MiniLoader.onReadNativeCallBack=function(e...
来源: Laya_社区 发布时间: 20180704
...ame 为" + name +"的组件,关闭了dialog。"); } } } } import laya.ui.Button; import laya.ui.Dialog; import laya.ui.Image; class Dialog_Instance extends Dialog { function Dialog_Instance():void { var bg:Image = new Image("resource/ui/bg.png"); bg.sizeGrid = "40,10,5,10"; bg.width = 150; bg.heig...
来源: Laya3.0_api 发布时间: 20231115
...I组件的toolTip属性如何使用?赋值之后没有效果呢? 例如Button组件,通过代码给Button的toolTip属性赋值,程序运行后,鼠标悬浮不出现toolTip内容,为什么? 或者说该如何实现鼠标悬浮提示文本的效果? 2019-06-11 添加评论 免费帖 -...
来源: Laya_社区 发布时间: 20190611
... laya.webgl.WebGL; import laya.utils.Mouse; import laya.ui.Button; import laya.display.Sprite; import laya.display.Animation; import laya.maths.Rectangle; import laya.display.Stage; public class LayaUISample { private v...
来源: Laya_社区 发布时间: 20180725