大约有 786 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0055 秒)
Laya_社区(386) Laya2.0_文档(85) Laya3.0_api(74) Laya2.0_api(66) laya_api(63) Laya3.0_文档(53) Laya_示例(32) Laya2.0_示例(27)
...Aaron 赞同来自: https://layaair.ldc.layabox.com/api/?category=Core&class=laya.ui.List 参照这里API 2018-01-22 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 AllenYT 相关问题 请问有没有方法能够获取“鼠标是...
来源: Laya_社区 发布时间: 20180122
... import { ui } from '../ui/layaMaxUI'; /**主界面 */ export default class Main extends ui.mainUI { /**地图链接 */ MAP_URL:string = 'res/tiled/map.json'; /**地图 */ map: Laya.TiledMap; constructor(){ super(); Laya.loader.create(this.MAP_URL, new Laya.Handler(this, this.onComplete)) } ...
来源: Laya_社区 发布时间: 20190218
...laya.ui.Button; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_Button { private const COLUMNS:int = 2; private const BUTTON_WIDTH:int = 147; private const BUTTON_HEIGHT:int = 165 / 3; private const HORIZONTAL_SPACING:int = 200; private const VERTICAL_SPACING:int = 100; private v...
来源: Laya_示例 发布时间: 20251209
...属性入口中。在脚本文件中添加如下示例代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Button }) public btn: Laya.Button; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方...
来源: Laya3.0_文档 发布时间: 20251010
...splay.Sprite; import laya.events.Event; import laya.renders.Render; public class MoveTest { public function MoveTest() { Laya.init(600,600); var sp:Sprite = new Sprite(); sp.autoSize=true; sp.graphics.drawRect(0,0,100,100,"#ff0000"); sp.on(Event.CLICK,this,onClick); Laya.stage.addChild(sp); } privat...
来源: Laya_社区 发布时间: 20171226
...添加如下的示例代码,实现脚本控制RadioGroup: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.RadioGroup }) public radiogroup: Laya.RadioGroup; //组件被激活后执行,此时所有节点和组件均已创建完...
来源: Laya3.0_文档 发布时间: 20251016
...){ function Test(){ Test.super(this); }; Laya.class(Test, "Test", _surper); return Test; })(ui.TestUI); 报错Uncaught TypeError: Cannot read property 'call' of undefined at Function.<anonymous> (laya.core.js:127) at new Test (Test.j...
来源: Laya_社区 发布时间: 20170621
...Dialog.super(this); this.name = 'SelectColorDialog'; this.x = 1013; } Laya.class(selectColorDialog, "SelectColorDialog", testUI); return selectColorDialog; }());调用对话框的方法 var dialog = new SelectColorDialog(); dialog.show(); 附件 : --> testCloseDialog.rar 2018-03-26 添加评论 免...
来源: Laya_社区 发布时间: 20180326
... laya.ui.Image; import laya.utils.Handler; import laya.webgl.WebGL; public class DialogCenterClose { private const DIALOG_WIDTH:int = 220; private const DIALOG_HEIGHT:int = 275; private const CLOSE_BTN_WIDTH:int = 43; private const CLOSE_BTN_PADDING:int = 5; private var assets:Array; public function...
来源: Laya_社区 发布时间: 20170706
...x.com/api2/Chinese/index.html?version=2.9.0beta&type=Core&category=display&class=laya.display.Stage),找到screenMode属性。如图1所示。  (图1) #### 1.1 默认值none或者不设置screenMode属性 默认值none或者不设置screenMode属性时,无论屏幕方向如...
来源: Laya2.0_文档 发布时间: 20210714