大约有 59 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0034 秒)
...色值放到数组中 /** * 通过图片数据计算得到AStart网格 */ private createGridFromAStarMap(texture): any { var textureWidth = texture.width; var textureHeight = texture.height; var pixelsInfo = texture.getPixels(); var aStarArr = []; var index = 0; for (var w = 0; w < textureWidth; ...
来源: Laya3.0_文档 发布时间: 20230303
...Code"></script> 一、首先介绍成员变量: // 百度地图 private map: any;// 地图引用 private marker: any;// 地图标注物 private BMap: any = Laya.Browser.window.BMap;// 百度地图命名空间 private convertor: any;// 坐标转换接口 private mapDiv: any;// 包含百度...
来源: Laya3.0_文档 发布时间: 20241014
...perty } = Laya; @regClass() export class UI_CheckBox extends Laya.Script { private COL_AMOUNT: number = 2; private ROW_AMOUNT: number = 3; private HORIZONTAL_SPACING: number = 200; private VERTICAL_SPACING: number = 100; private X_OFFSET: number = 100; private Y_OFFSET: number = 50; // 图片资源...
来源: Laya3.0_文档 发布时间: 20241014
... 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_文档 发布时间: 20241014
...lip extends Laya.Script { // 以下资源来自“引擎API使用示例” private buttonSkin: string = "resources/res/ui/button-7.png"; private clipSkin: string = "resources/res/ui/num0-9.png"; private bgSkin: string = "resources/res/ui/coutDown.png"; counter: any; controller: any; currFrame: any; ...
来源: Laya3.0_文档 发布时间: 20241014
... 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_文档 发布时间: 20241014
...roperty } = Laya; @regClass() export class UI_Dialog extends Laya.Script { private DIALOG_WIDTH: number = 220; private DIALOG_HEIGHT: number = 275; private CLOSE_BTN_WIDTH: number = 43; private CLOSE_BTN_PADDING: number = 5; private assets: any[]; private dialog: Laya.Dialog; constructor() { super()...
来源: Laya3.0_文档 发布时间: 20230303
...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
...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
...roperty } = Laya; @regClass() export class UI_Dialog extends Laya.Script { private DIALOG_WIDTH: number = 220; private DIALOG_HEIGHT: number = 275; private CLOSE_BTN_WIDTH: number = 43; private CLOSE_BTN_PADDING: number = 5; private assets: any[]; private dialog: Laya.Dialog; constructor() { super()...
来源: Laya3.0_文档 发布时间: 20241014