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

大约有 35 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0050 秒)

1. let btn:Button = cell.getChildByName("button的name"); [ 100%]

let btn:Button = cell.getChildByName("button的name"); import Button = laya.ui.Button; let itemBtn:Button = cell.getChildByName("mItemBtn");  这样会报一个错:Type "Node" is not assignable to type "Button". Property "toggle" is missing in type "Node"; 对着官网list例子做的,不知...

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

2. 如何为list内部的button添加事件 [ 89%]

如何为list内部的button添加事件 2017-01-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 你可以通过list.getItem(xxx).getChildByName(),通过button的name属性得到butto...

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

3. 照着官方文档写的 Dialog 报错? [ 86%]

..."res/ui/dialog.png"); dialog.addChild(bgImg); // bgImg.size(400, 458); var button = new Button("res/ui/close.png"); button.size(50, 50); button.name = Dialog.CLOSE; button.pos(bgImg.width - button.width - 5, 5); dialog.addChild(button); dialog.dragArea = "0,0," + bgImg.width + "," + bgImg.height; di...

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

4. ToolTip鼠标悬停的使用 [ 83%]

...供了三种鼠标提示package { import laya.net.Loader; import laya.ui.Button; import laya.ui.TipManager; import laya.utils.Browser; import laya.utils.Handler; import ui.TestTipsUI; public class ToolTipDemo { private var _testTip:TestTipsUI;//ui弹框(IDE发布),用于鼠标悬浮提示框 p...

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

5. layaAirIDE中如何使用wx等微信基础对象,ide版本1.7.19.1beta [ 79%]

...018-07-30 10:11 浏览: 1033 关注: 2 人 Zorana • 2018-07-31 16:34 let button = wx.createUserInfoButton({ type: 'text', text: '获取用户信息', style: { left: 10, top: 76, width: 200, height: 40, lineHeight: 40, backgroundColor: '#ff0000', color: '#ffffff', textAlign: 'center', fontSize: 16,...

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

6. laya.d3.webxr.core.WebXRInput_API3.0 [ 78%]

...t Index Constructors constructor Properties _lastXRPose gamepadAxis gamepadButton handness lastXRPose position ray rotation EVENT_FRAMEUPDATA_WEBXRINPUT HANDNESS_LEFT HANDNESS_RIGHT Methods addAxisEvent addButtonEvent destroy event hasListener off offAll offAllCaller offAxisEvent offButtonEvent on o...

来源: Laya3.0_api 发布时间: 20231115

7. UI组件的toolTip属性如何使用?赋值之后没有效果呢? [ 77%]

...I组件的toolTip属性如何使用?赋值之后没有效果呢? 例如Button组件,通过代码给Button的toolTip属性赋值,程序运行后,鼠标悬浮不出现toolTip内容,为什么? 或者说该如何实现鼠标悬浮提示文本的效果? 2019-06-11 添加评论 免费帖 -...

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

8. laya.d3.webxr.core.ButtonGamepad_API3.0 [ 77%]

...ted Externals Only exported Menu Globals "laya/d3/WebXR/core/WebXRGamepad" ButtonGamepad Class ButtonGamepad 类用来描述gamepad Button Hierarchy EventDispatcher ButtonGamepad Index Constructors constructor Properties handness index EVENT_PRESS_ENTER EVENT_PRESS_OUT EVENT_PRESS_STAY EVENT_PRESS_V...

来源: Laya3.0_api 发布时间: 20231115

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

...= styleObj[key]; } } } /** * 给按钮上文本样式赋值 * @param {Laya.Button} button * @param {ITextFormat} styleObj */ assignButtonFontStyle(button: Laya.Button, style: string | ITextFormat): void { let keyMap: Object = { bold: "labelBold", color: "labelColors", font: "labelFont", fontSize: "l...

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

10. laya.ui.Radio_API3.0 [ 74%]

...该组中当前所选的 Radio 控件。 see laya.ui.RadioGroup Hierarchy Button Radio Implements ISelect Index Constructors constructor Properties _extra _graphics _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag toggle drawtocanvCtx Accessors _isHeightSet _isWidthS...

来源: Laya3.0_api 发布时间: 20231115