大约有 1,204 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0063 秒)
Laya_社区(690) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(59) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
...mport WebGL = Laya.WebGL; export class SmartScale_T { //所有适配模式 private modes: Array = ["noscale", "exactfit", "showall", "noborder", "full", "fixedwidth", "fixedheight"]; //当前适配模式索引 private index: number = 0; //全局文本信息 private txt: Text; constructor() { // 不...
来源: Laya_示例 发布时间: 20241123
...L = Laya.WebGL; export class Sound_SimpleDemo { //声明一个信息文本 private txtInfo: Text; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Lay...
来源: Laya_示例 发布时间: 20241123
...色值放到数组中 /** * 通过图片数据计算得到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
...mport WebGL = Laya.WebGL; export class SmartScale_T { //所有适配模式 private modes: Array = ["noscale", "exactfit", "showall", "noborder", "full", "fixedwidth", "fixedheight"]; //当前适配模式索引 private index: number = 0; //全局文本信息 private txt: Text; constructor() { // 不...
来源: Laya2.0_示例 发布时间: 20241123
...this.skins, Handler.create(this, this.onLoadComplete));//加载资源。 } private onLoadComplete(): void { for (var i: number = 0; i < this.skins.length; ++i) { var input: TextInput = this.createInput(this.skins[i]); input.prompt = 'Type:'; input.x = (Laya.stage.width - input.width) / 2; input.y = ...
来源: Laya_示例 发布时间: 20241123
...制的源码 openHandler 和 receiveHandler 没有响应 class Game { private socket: Laya.Socket; private byte: Laya.Byte; constructor() { //初始化引擎 //Laya.init(600, 400, Laya.WebGL); Laya.init(600,400); Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; Laya.stage.screenMode = Laya.Stage...
来源: Laya_社区 发布时间: 20180210
...this.skins, Handler.create(this, this.onLoadComplete));//加载资源。 } private onLoadComplete(): void { for (var i: number = 0; i < this.skins.length; ++i) { var input: TextInput = this.createInput(this.skins[i]); input.prompt = 'Type:'; input.x = (Laya.stage.width - input.width) / 2; input.y = ...
来源: Laya2.0_示例 发布时间: 20241123
...on; /** * Created by Administrator on 2017/7/19. */ public class YIMMain { private final String TAG = "MarketTest"; private final static String strAppKey = "123132123";//你申请的App Key private final static String strSecrect = "1231312312312312312312";//你申请的App Secret private static Stri...
来源: Laya_社区 发布时间: 20170722
... import Image=Laya.Image; import WebGl=Laya.WebGL; export class Font_Clip{ private TestClipNum:string="res/comp/fontClip_num.png"; private _ClipNum:string="res/comp/fontClip_num.png"; private _ClipNum1:string="res/comp/fontClip_num.png"; private TestFontClip:string="res/comp/fontClip.png"; private _...
来源: Laya2.0_示例 发布时间: 20241123
...his.rowHeight), 150, this.rowHeight); } } } 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...
来源: Laya2.0_示例 发布时间: 20241123