大约有 1,232 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0050 秒)
Laya_社区(702) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(75) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
... property } = Laya; @regClass() export class UI_VBox extends Laya.Script { private vbox: Laya.VBox; private btn1: Laya.Button; private btn2: Laya.Button; private btn3: Laya.Button; // 按钮皮肤资源 private skins: string = "atlas/comp/button.png"; //组件被激活后执行,此时所有节点...
来源: Laya3.0_文档 发布时间: 20251010
... property } = Laya; @regClass() export class UI_HBox extends Laya.Script { private hbox: Laya.HBox; private btn1: Laya.Button; private btn2: Laya.Button; private btn3: Laya.Button; // 按钮皮肤资源 private skins: string = "atlas/comp/button.png"; //组件被激活后执行,此时所有节点...
来源: Laya3.0_文档 发布时间: 20251010
...skins/4.jpg"); data.push("res/ui/listskins/5.jpg"); } list.array = data; } private updateItem(cell: Item, index: number): void { cell.setImg(cell.dataSource); } private onSelect(index: number): void { console.log("当前选择的索引:" + index); } } import Box = Laya.Box; import Image = Laya.Ima...
来源: Laya2.0_示例 发布时间: 20251209
...点对软键盘执行弹出和收回状态的监听 如下列代码所示 private var textInput:TextField; textInput=new TextField(); textInput.type=TextFieldType.INPUT; textInput.border=true; textInput.multiline=true; textInput.wordWrap=true; textInput.width=200; textInput.x=100; textInput.y=200; a...
来源: Laya_社区 发布时间: 20151225
...4.jpg"); data.push("../../res/ui/listskins/5.jpg"); } list.array = data; } private updateItem(cell: Item, index: number): void { cell.setImg(cell.dataSource); } private onSelect(index: number): void { console.log("当前选择的索引:" + index); } } import Box = Laya.Box; import Image = Laya.Ima...
来源: Laya_示例 发布时间: 20251209
...= Laya.Handler; import WebGL = Laya.WebGL; export class Interaction_Drag { private ApePath: string = "../laya/monkey2.png"; private ape: Sprite; private dragRegion: Rectangle; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya....
来源: Laya_社区 发布时间: 20171106
... Laya.Browser; import WebGL = Laya.WebGL; export class Interaction_Mouse { private txt: Text; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.st...
来源: Laya_示例 发布时间: 20251209
...laya.webgl.WebGL; public class UI_ScrollBar { /***垂直滚动条资源**/ private var skins:Array=["../../../../res/ui/vscroll.png", "../../../../res/ui/vscroll$bar.png", "../../../../res/ui/vscroll$down.png", "../../../../res/ui/vscroll$up.png"]; /***提示信息文本框**/ private var promptText...
来源: Laya2.0_文档 发布时间: 20210715
...laya.webgl.WebGL; public class UI_ScrollBar { /***水平滚动条资源**/ private var skins:Array=["../../../../res/ui/hscroll.png", "../../../../res/ui/hscroll$bar.png", "../../../../res/ui/hscroll$down.png", "../../../../res/ui/hscroll$up.png"]; /***提示信息文本框**/ private var promptText...
来源: Laya2.0_文档 发布时间: 20210714
... Browser.height, WebGL); this.CreateCircle(); // this.CreateRectangle(); } private firstSp: Laya.Sprite; private _adaptSp: Laya.Sprite; private _pointList : Point[]; private _rootSp : Laya.Sprite; public CreateCircle() { this._rootSp = new Laya.Sprite(); this.firstSp = new Laya.Sprite(); this.fi...
来源: Laya_社区 发布时间: 20190314