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

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

11. laya.ui.Button_API3.0 [ 73%]

...blic/Protected All Inherited Externals Only exported Menu Globals "laya/ui/Button" Button Class Button Button 组件用来表示常用的多态按钮。 Button 组件可显示文本标签、图标或同时显示两者。 * 可以是单态,两态和三态,默认三态(up,over,down)。 example 以...

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

12. 两个问题都关于LayaAir的ios真机 [ 72%]

两个问题都关于LayaAir的ios真机 碰到个问题,Button组件我稍微改了下,为了实现按下的时候有个变暗的效果 statenum是1的按钮, /** * 对象的 <code>Event.MOUSE_OVER、Event.MOUSE_OUT、Event.MOUSE_DOWN、Event.MOUSE_UP、Event.CLICK</code> 事件...

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

13. styles.xml报错 [ 72%]

...认属性后就报错,LayaAirIDE_1.7.11 - 1.7.13都试了 <html type="Button" props="label=label@@!@@x=-171@@!@@y=431@@!@@stateNum=1"> <body> <parsererror style="display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color:...

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

14. laya.ui.CheckBox_API3.0 [ 69%]

...出选中状态: checkBox.selected = " + checkBox.selected); } } Hierarchy Button CheckBox Implements ISelect Index Constructors constructor Properties _extra _graphics _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag toggle drawtocanvCtx Accessors _isHeightSet _isWi...

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

15. 关于自定义组件使用方式 [ 69%]

...是其中的一部分! 1.将附件中bin/js/component文件夹中的ScaleButton.js和ScaleButton.xml文件放到下图所示的位置: 2.完成第一个步骤之后切换到文档页面,将第4个大步骤完成 3.这时组件已经能够在UI面板正常显示了,这时先不要着急导出...

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

16. 使用FD自定义组件编译的时候报错 Error or warning message:customui.max.js [ 68%]

... 3.module.def文件目录跟换到根目录   但是我自定义的ScaleButton的属性在IDE里无法显示,仅显示laya.customUI.xml里的属性,从而无法设置中心点,导致按钮缩放有问题。然而,官方教程里的ScaleButton是有其他属性的! 2017-02-22 0 1 分享 ...

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

17. TextInput怎么执行focus()? [ 68%]

...let input = document.getElementById('test'), btn = document.querySelector('button'); btn.addEventListener('click', function(){ let int = document.createElement('input'); int.type = 'text'; document.body.appendChild(int); // input.focus(); int.focus(); })我这样是可以直接直接打开键盘的...

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

18. laya.ui.Dialog_API3.0 [ 67%]

...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

19. laya.events.Event_API3.0 [ 66%]

...件侦听器。 Hierarchy Event Index Constructors constructor Properties button currentTarget delta isDblClick nativeEvent target touchId touchPos type ADDED BLUR CHANGE CHANGED CLICK CLOSE COLLISION_ENTER COLLISION_EXIT COLLISION_STAY COMPLETE DEVICE_LOST DISPLAY DOUBLE_CLICK DRAG_END DRAG_MOVE DR...

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

20. laya.ui.ComboBox_API3.0 [ 61%]

...= "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成!"); var comboBox:ComboBox = new ComboBox("resource/ui/button.png", "item0,item1,item2,...

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