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

大约有 6 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0018 秒)

1. 文本-单行输入 [ 100%]

...inputText.y = Laya.stage.height - inputText.height >> 1; // 移动端输入提示符 inputText.prompt = "Type some word..."; // 设置字体样式 inputText.bold = true; inputText.bgColor = "#666666"; inputText.color = "#ffffff"; inputText.fontSize = 20; } } new Text_InputSingleline();module laya { ...

来源: Laya2.0_示例 发布时间: 20240929

2. 文本-多行输入 [ 98%]

... - inputText.height >> 1; inputText.padding = [2,2,2,2]; // 移动端输入提示符 inputText.prompt = "Type some word..."; // 设置字体样式 inputText.bgColor = "#666666"; inputText.color = "#ffffff"; inputText.fontSize = 20; } } new Text_InputMultiline();module laya { import Input = Laya.Inpu...

来源: Laya2.0_示例 发布时间: 20240929

3. 鼠标交互-键盘交互 [ 87%]

...抬起处理 */ onKeyUp(e) { delete keyDownList[e["keyCode"]]; } /** 添加提示文本 */ createLogger() { const Text = Laya.Text; logger = new Text(); logger.size(Laya.stage.width, Laya.stage.height); logger.fontSize = 30; logger.font = "SimHei"; logger.wordWrap = true; logger.color = "#FFFFFF"; l...

来源: Laya2.0_示例 发布时间: 20240929

4. IDE-显示IDE创建的界面 [ 85%]

...是编辑器界面设定的,代码里面能直接使用,并且有代码提示 this.btn.on(Event.CLICK, this, onBtnClick); this.btn2.on(Event.CLICK, this, onBtn2Click); function onBtnClick() { //手动控制组件属性 this.radio.selectedIndex = 1; this.clip.index = 8; this.tab.selectedIndex = 2...

来源: Laya2.0_示例 发布时间: 20200319

5. 鼠标交互-鼠标交互 [ 77%]

...—"); break; case Event.MOUSE_MOVE: // 如果上一个操作是移动,提示信息仅加入.字符 if (/鼠标移动\.*$/.test(txt.text)) { this.appendText("."); } else { this.appendText("\n鼠标移动"); } break; case Event.MOUSE_OVER: this.appendText("\n鼠标经过目标"); break; case Event....

来源: Laya2.0_示例 发布时间: 20240929

6. UI-RefreshList [ 43%]

... this.refreshList.mouseHandler = new Handler(this, this.onListMouse); // 提示文字 var image = new Laya.Image("res/ui/refreshList/img_bg05.png"); Laya.stage.addChild(image); image.pos(510, 20); image.width = 484; image.height = 256; var tiptext = new Text(); image.addChild(tiptext); tiptext.text ...

来源: Laya2.0_示例 发布时间: 20240929