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

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

61. UI-Button [ 82%]

... this.onUIAssetsLoaded)); } private onUIAssetsLoaded(): void { for (var i: number = 0, len = this.skins.length; i < len; ++i) { var btn: Button = this.createButton(this.skins[i]); var x: number = i % this.COLUMNS * this.HORIZONTAL_SPACING + this.xOffset; var y: number = (i / this.COLUMNS | 0) * this...

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

62. 区块地图-滚动地图 [ 82%]

...ass TiledMap_SimpleDemo { private tiledMap: TiledMap; private mLastMouseX: number = 0; private mLastMouseY: number = 0; private mX: number = 0; private mY: number = 0; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.sc...

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

63. UI-Dialog [ 82%]

... import WebGL = Laya.WebGL; export class UI_Dialog { private DIALOG_WIDTH: number = 220; private DIALOG_HEIGHT: number = 275; private CLOSE_BTN_WIDTH: number = 43; private CLOSE_BTN_PADDING: number = 5; private assets: Array; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 6...

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

64. 动画-SWF动画 [ 82%]

...F { private SWFPath: string = "../../res/swf/dragon.swf"; private MCWidth: number = 318; private MCHeight: number = 406; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = ...

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

65. 加载-错误处理和进度 [ 82%]

...og("加载结束"); } // 加载进度侦听器 private onLoading(progress: number): void { console.log("加载进度: " + progress); } private onError(err: String): void { console.log("加载失败: " + err); } } } new laya.Loader_ProgressAndErrorHandle();package { import laya.events.Event; import l...

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

66. 如何监听移动端软键盘的弹出和收回? [ 82%]

... extends Sprite { private var textInput:TextField; private var sourceWidth:Number; private var sourceHeight:Number; public function TextInput() { //转换成h5项目后获取浏览器的宽度 //[IF-JS]sourceWidth = Laya.window.innerWidth; //转换成h5项目后获取浏览器的高度 //[IF-JS]sour...

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

67. 文本-下划线 [ 82%]

... "#FF7F50", 210, 290); } private createText(align: string, underlineWidth: number, underlineColor: string, x: number, y: number): Text { var txt: Text = new Text(); txt.text = "Layabox\n是HTML5引擎技术提供商\n与优秀的游戏发行商\n 面向AS/JS/TS开发者提供HTML5开发技术方案"...

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

68. UI-Dialog [ 82%]

... import WebGL = Laya.WebGL; export class UI_Dialog { private DIALOG_WIDTH: number = 220; private DIALOG_HEIGHT: number = 275; private CLOSE_BTN_WIDTH: number = 43; private CLOSE_BTN_PADDING: number = 5; private assets: Array; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 6...

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

69. 动画-SWF动画 [ 81%]

...ion_SWF { private SWFPath: string = "res/swf/dragon.swf"; private MCWidth: number = 318; private MCHeight: number = 406; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = ...

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

70. 文本-下划线 [ 81%]

... "#FF7F50", 210, 290); } private createText(align: string, underlineWidth: number, underlineColor: string, x: number, y: number): Text { var txt: Text = new Text(); txt.text = "Layabox\n是HTML5引擎技术提供商\n与优秀的游戏发行商\n 面向AS/JS/TS开发者提供HTML5开发技术方案"...

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