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

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

61. 多行输入文本组件 · LayaAir3.0文档 · LAYABOX [ 73%]

...st { regClass, property } = Laya; @regClass() export class TextAreaControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.TextArea } ) public txtarea: Laya.TextArea; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建...

来源: Laya3.0_文档 发布时间: 20230629

62. runTime使用(ActionScript-IDE篇(AS3)-组件化开发相关) [ 73%]

...** *ImageRunTime逻辑类 * @author mengjia * */ public class ImageRunTime extends Image { //缩放时间100毫秒 public var scaleTime:int = 100; public function ImageRunTime() { //设置组件的中心点 this.anchorX = this.anchorY = 0.5; //添加鼠标按下事件侦听。按时时缩小按钮...

来源: Laya2.0_文档 发布时间: 20210714

63. 下拉选项框组件 · LayaAir3.0文档 · LAYABOX [ 72%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.ComboBox }) public combobox: Laya.ComboBox; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.combobox.pos(...

来源: Laya3.0_文档 发布时间: 20231008

64. 如何才能生成scene配套的代码 [ 72%]

...i.test { import laya.ui.*; import laya.display.*; public class TestSceneUI extends Scene { public var scoreLbl:Label; public var tipLbll:Label; override protected function createChildren():void { super.createChildren(); loadScene("test/TestScene"); } } } 2018-10-24 添加评论 免费帖 --> 分享 ...

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

65. TS版分包报错 [ 72%]

...类似如下代码: module ui.coreUI {         export class TestUI extends View{         // do something...         } }       我在其它包的类中通过 import TestUI = ui.coreUI.TestUI ;  方式引入类 定义时报错:  "Uncaught ReferenceError: ui is not defined"    ...

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

66. 异步加载一个UI对象时的问题 [ 72%]

...此我将load方法放到了createChildren函数里面去。 class MyView extends ui.view.MyViewUI { constructor() { super(); } createChildren():void { super.createChildren(); let assets = [ { url: "res/atlas/ui/shared.atlas", type: Loader.ATLAS }, { url: "res/atlas/ui/myview.atlas", type: Loader.AT...

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

67. 创建laya的视图销毁destroy()清除不了 [ 71%]

...不了 创建laya的视图销毁destroy()清除不了。  class Mail2View extends laya.display.Sprite { private display:ui.mail.mail2UI; constructor(){ super(); this.display = new ui.mail.mail2UI(); this.addChild(this.display); } public destroy():void { this.display.destroy(); this.display.removeSe...

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

68. HTMLIframeElement加载html网页的问题 [ 71%]

...et.Loader; import HTMLIframeElement = Laya.HTMLIframeElement; class TestUI extends ui.htmlUI { constructor() { super(); var iHtml: HTMLIframeElement = new HTMLIframeElement(); Laya.stage.addChild(iHtml); iHtml.href = "https://www.baidu.com/"; } } // 程序入口 Laya.init(600, 400); Laya.loader.load...

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

69. 为什么这个ui中给这个TextInput组件runtime属性绑定了一个类 [ 71%]

...runtime属性绑定了一个类 绑定了这个类后, class TextInputEx extends Laya.TextInput constructor() { console.log("执行了"); super() ; } // 获取焦点 onFocus() : void { console.log("焦点进入"); // 是否缓存初始的文本提示字符串和文本颜色. if (!this.initText) { ...

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

70. ComboBox显示问题 [ 70%]

...nHead { import laya.ui.*; import laya.display.*;  public class MainHeadUI extends View { public var image1:Image; public var input:TextInput; public var combox:ComboBox; public var radio:RadioGroup; public var checkBox:CheckBox; public var gongji:Button; public var btn1HasLabel:Button; public stati...

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