大约有 1,204 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0050 秒)
Laya_社区(690) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(59) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
...t Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Tab { private skins: Array = ["res/ui/tab1.png", "res/ui/tab2.png"]; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTE...
来源: Laya2.0_示例 发布时间: 20241124
...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
...aya.Texture; import Handler = Laya.Handler; export class Loader_Sequence { private numLoaded: number = 0; private resAmount: number = 3; constructor() { Laya.init(500, 400); // 按序列加载 monkey2.png - monkey1.png - monkey0.png // 不开启缓存 // 关闭并发加载 Laya.loader.maxLoader = 1;...
来源: Laya_示例 发布时间: 20241124
...g"); Laya.loader.load(skins, Handler.create(this, this.onLoadComplete)); } private onLoadComplete(): void { this.placeHSlider(); this.placeVSlider(); } private placeHSlider(): void { var hs: HSlider = new HSlider(); hs.skin = "../../res/ui/hslider.png"; hs.width = 300; hs.pos(50, 170); hs.min = 0; h...
来源: Laya_示例 发布时间: 20241124
... public class LayaUISample { private var btn1:Button; private var btn2:Button; private var taskView:TaskUI; public function LayaUISample() { //初...
来源: Laya_社区 发布时间: 20180425
...Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createTexts(); } private createTexts(): void { var t1: Text = this.createText(); t1.overflow = Text.VISIBLE; t1.pos(10, 10); var t2: Text = this.createText(); t2.overflow = Text.SCROLL; t2.pos(10, 110); var t3: Text = this.createText(); t3.ov...
来源: Laya2.0_文档 发布时间: 20210715
drawTexture 画出来的数据会有以前的数据 private var iconSpr:Sprite; private var htmlCanvas:HTMLCanvas; private var texture:Texture; private var xNum:int = 0; private var yNum:int = 0; private var img:Image; public function TestView() { img = new Image("comp/lhjicon_5.png"); img.x = 640;...
来源: Laya_社区 发布时间: 20180113
...g"); Laya.loader.load(skins, Handler.create(this, this.onLoadComplete)); } private onLoadComplete(): void { this.placeHSlider(); this.placeVSlider(); } private placeHSlider(): void { var hs: HSlider = new HSlider(); hs.skin = "res/ui/hslider.png"; hs.width = 300; hs.pos(50, 170); hs.min = 0; hs.max ...
来源: Laya2.0_示例 发布时间: 20241124
...rt threeDimen.common.CameraMoveScript; public class D3Base_TargetTexture { private var skinMesh:MeshSprite3D; private var skinAni:SkinAnimations; private var mesh0:MeshSprite3D; private var mesh1:MeshSprite3D; private var camera2:Camera; private var x:Number = 0; private var y:Number = 0; public fun...
来源: Laya_社区 发布时间: 20170209
...isplay.Stage; public class LayaUISample { private var skin:String = "https://layaair.ldc.layabox.co ... 3B%3B private var aniPath:String = "https://layaair.ldc.layabox.co ... 3B%3B public function LayaUISample() { ...
来源: Laya_社区 发布时间: 20180725