大约有 1,204 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0051 秒)
Laya_社区(690) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(59) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
...点对软键盘执行弹出和收回状态的监听 如下列代码所示 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_示例 发布时间: 20241124
...= 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
...roperty } = Laya; @regClass() export class UI_Button extends Laya.Script { private COLUMNS: number = 2; private BUTTON_WIDTH: number = 147; private BUTTON_HEIGHT: number = 165 / 3; private HORIZONTAL_SPACING: number = 200; private VERTICAL_SPACING: number = 100; private xOffset: number; private yOff...
来源: Laya3.0_文档 发布时间: 20241014
... 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_示例 发布时间: 20241124
...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
...ss, property } = Laya; @regClass() export class Main extends Laya.Script { private tMap:Laya.TiledMap; onEnable() { //创建地图对象 this.tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(0, 0, Laya.stage.designWidth, Laya.stage.d...
来源: Laya3.0_文档 发布时间: 20230303
... 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
...ler = Laya.Handler; import WebGL = Laya.WebGL; export class Filters_Blur { private apePath: string = "res/apes/monkey2.png"; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.align...
来源: Laya2.0_示例 发布时间: 20241124