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

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

101. DOM元素-表单输入 [ 77%]

...rowHeight); } }class DOM_Form{ private form:Laya.Sprite; private rowHeight:number = 30; private rowSpacing:number = 10; constructor() { Laya.init(600,400); Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; Laya....

来源: Laya_示例 发布时间: 20241118

102. 鼠标交互-滑动 [ 77%]

... export class Interaction_Swipe { //swipe滚动范围 private TrackLength: number = 200; //触发swipe的拖动距离 private TOGGLE_DIST: number = this.TrackLength / 2; private buttonPosition: number; private beginPosition: number; private endPosition: number; private button: Sprite; constructor() ...

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

103. 文本-滚动文本 [ 77%]

...= Laya.WebGL; export class Text_Scroll { private txt: Text; private prevX: number = 0; private prevY: number = 0; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.AL...

来源: Laya_示例 发布时间: 20241118

104. UI-List [ 77%]

...对应图片的路径 let data = []; for (let i = 0; i = []; for (var i: number = 0; i < 10; ++i) { data.push("res/ui/listskins/1.jpg"); data.push("res/ui/listskins/2.jpg"); data.push("res/ui/listskins/3.jpg"); data.push("res/ui/listskins/4.jpg"); data.push("res/ui/listskins/5.jpg"); } list.array = ...

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

105. UI-List [ 77%]

...对应图片的路径 var data = []; for (var i = 0; i = []; for (var i: number = 0; i < 10; ++i) { data.push("../../res/ui/listskins/1.jpg"); data.push("../../res/ui/listskins/2.jpg"); data.push("../../res/ui/listskins/3.jpg"); data.push("../../res/ui/listskins/4.jpg"); data.push("../../res/ui/list...

来源: Laya_示例 发布时间: 20241118

106. DOM元素-表单输入 [ 76%]

...new DOM_Form();class DOM_Form{ private form:Laya.Sprite; private rowHeight:number = 30; private rowSpacing:number = 10; constructor() { Laya.init(600,400); Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; Laya....

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

107. 文本-滚动文本 [ 76%]

...= Laya.WebGL; export class Text_Scroll { private txt: Text; private prevX: number = 0; private prevY: number = 0; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.AL...

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

108. laya.ani.bone.canvasmesh.SkinMeshForGraphic_API3.0 [ 76%]

...h数据 Returns SkinMeshForGraphic Properties canvasPadding canvasPadding: number = 1 Inherited from MeshData.canvasPadding Defined in laya/ani/bone/canvasmesh/MeshData.ts:43 扩展像素,用来去除黑边 indexes indexes: Uint16Array = new Uint16Array([0, 1, 3, 3, 1, 2]) Inherited from MeshData.in...

来源: Laya3.0_api 发布时间: 20231115

109. UI-RadioGroup [ 76%]

...s, this.initRadioGroups)); } private initRadioGroups(): void { for (var i: number = 0; i < this.skins.length; ++i) { var rg: RadioGroup = this.createRadioGroup(this.skins[i]); rg.selectedIndex = i; rg.x = i * this.SPACING + this.X_OFFSET; rg.y = this.Y_OFFSET; } } private createRadioGroup(skin: stri...

来源: Laya_示例 发布时间: 20241118

110. UI-RadioGroup [ 76%]

...s, this.initRadioGroups)); } private initRadioGroups(): void { for (var i: number = 0; i < this.skins.length; ++i) { var rg: RadioGroup = this.createRadioGroup(this.skins[i]); rg.selectedIndex = i; rg.x = i * this.SPACING + this.X_OFFSET; rg.y = this.Y_OFFSET; } } private createRadioGroup(skin: stri...

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