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

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

201. UI-Tab [ 89%]

...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

202. UI弹窗 · LayaAir3.0文档 · LAYABOX [ 89%]

...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

203. 加载-加载序列 [ 89%]

...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

204. UI-Slider [ 88%]

...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

205. canvas下资源清理的问题 [ 88%]

...  public class LayaUISample {                           private var btn1:Button;         private var btn2:Button;                  private var taskView:TaskUI;                           public function LayaUISample() {             //初...

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

206. 超出文本区域的处理&滚动文本(TypeScript-LayaAir基础篇(TS)-文本) [ 88%]

...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

207. drawTexture 画出来的数据会有以前的数据 [ 88%]

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

208. UI-Slider [ 88%]

...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

209. 如何实现3d遮罩效果? [ 88%]

...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

210. 急急急,如何设置按钮点击加载ani [ 88%]

...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