大约有 250 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0078 秒)
... Texture, x?: number, y?: number, width?: number, height?: number, color?: string): DrawImageCmd | null Defined in laya/display/Graphics.ts:225 绘制单独图片 Parameters texture: Texture 纹理。 Default value x: number = 0 (可选)X轴偏移量。 Default value y: number = 0 (可选)Y...
来源: Laya3.0_api 发布时间: 20231115
... Texture, x?: number, y?: number, width?: number, height?: number, color?: string): DrawImageCmd | null Inherited from Graphics.drawImage Defined in laya/display/Graphics.ts:225 绘制单独图片 Parameters texture: Texture 纹理。 Default value x: number = 0 (可选)X轴偏移量。 Default ...
来源: Laya3.0_api 发布时间: 20231115
... + this.X_OFFSET; rg.y = this.Y_OFFSET; } } private createRadioGroup(skin: string): Laya.RadioGroup { let rg: Laya.RadioGroup = new Laya.RadioGroup(); rg.skin = skin; rg.space = 70; rg.direction = "vertical"; rg.labels = "Item1, Item2, Item3"; rg.labelColors = "#787878,#d3d3d3,#FFFFFF"; rg.labelSize...
来源: Laya3.0_文档 发布时间: 20241014
...n laya/display/Graphics.ts:54 Returns AutoBitmap Properties _color _color: string = "#ffffff" Defined in laya/ui/AutoBitmap.ts:31 uv uv: number[] = null Defined in laya/ui/AutoBitmap.ts:29 Accessors cmds get cmds(): any[] set cmds(value: any[]): void Inherited from Graphics.cmds Defined in laya/disp...
来源: Laya3.0_api 发布时间: 20231115
....text.BitmapFontUI { //给自己注册的字体起个名 private fontName: string = "diyFont"; constructor() {super();} onAwake(): void { //加载位位图字体 this.loadBitmapFont(); } /** * 实例化位图字体类,并加载位图字体 */ loadBitmapFont(): void { let bitmapFont: Laya.BitmapFon...
来源: Laya2.0_文档 发布时间: 20210715
...化引擎 Laya.init(600, 400); Laya.stage.bgColor = "#ffcccc"; var data: string = "data:image/svg+xml," + '' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp: Laya.Sprite = new Laya.Sprite(); sp.loadImage(data, 0, 0, 200, 200); Laya.stage.addChild(sp); } } new LayaUISample; ``` 通过dat...
来源: Laya2.0_文档 发布时间: 20210715
... private mDecorate:Decorate;//装饰器 private mHost: string; private mPort: number; private mConnected: boolean; /** 开启*/ public static OPEN: string = "open"; /** 关闭*/ public static CLOSE: string = ...
来源: Laya_社区 发布时间: 20161109
...} /** * 当报错时打印错误 * @param err 报错信息 */ onError(err: string): void { console.log("加载失败: " + err); } /** * 加载时侦听 */ onLoading(progress: number): void { //接近完成加载时,让显示进度比实际进度慢一点,这是为打开场景时的自动加载...
来源: Laya3.0_文档 发布时间: 20241014
...显示这个img。我们新建个项目。代码如下所示: var data: string = "data:image/svg+xml," + '<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">' + '<foreignObject width="100%" height="100%">' + '<div xmlns="http://www.w3.org/1999/xhtml" style="font-size:4...
来源: Laya3.0_文档 发布时间: 20241014
...始化引擎 Laya.init(600, 400); Laya.stage.bgColor ="#cccccc"; var data:String= "data:image/svg+xml,"+'' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp:Sprite = new Sprite(); sp.loadImage(data,0,0,200,200); Laya.stage.addChild(sp); } } } ``` 通过data来当做url传递给loadImage...
来源: Laya2.0_文档 发布时间: 20210715