大约有 2,173 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0079 秒)
Laya_社区(1729) Laya3.0_api(198) Laya2.0_文档(65) Laya2.0_api(61) laya_api(55) Laya3.0_文档(44) Laya2.0_示例(11) Laya_示例(10)
...g( arrayBuff,width,height,conch.getCachePath()+"/test.png" ); window.globalImage = window.document.createElement("img"); window.globalImage.onload=function() { ...使用image对象 } window.globalImage.src = "file:///" + conch.getCachePath()+"/test.png"; */ // window.image = window.document.createEl...
来源: Laya_社区 发布时间: 20180227
...示 lose skin WBHomeUI/btn_queding.png 图片无法加载 但是 通过 image 设置 skin 这张图片 ,可以加载显示出来? 这是什么鬼? 附件 : --> Test.zip 2017-06-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...
来源: Laya_社区 发布时间: 20170607
我就问一下一个遮罩的问题 const img:Laya.Image = new Laya.Image() img.skin = 'xxxx' // 图片url路径 this.addChild(img) const imgMask:Laya.Sprite = new Laya.Sprite() img.mask = imgMask 我就问一下,这个时候img是能显示还是不能显示? 答案是,如果Laya.init...
来源: Laya_社区 发布时间: 20190328
...就设置物件visible的属性 假设我的list裡面的项目是由一个Image跟一个Label构成 那麽我的做法是这样var arr=[]; arr.push({Image:"url",Label:"text"}); list.array=arr; 我现在想在push当中就设置Image的visible属性为false 以简化我的码 请问有可行办法...
来源: Laya_社区 发布时间: 20170822
...3B videoTexTure.on(Laya.Event.READY,this,()=>{ videoTexTure.play(); var image:Laya.Image = new Laya.Image(); image.texture = new Laya.Texture(videoTexTure); this.addChild(image); image.pos(100,100); }); 2024-03-04 1 1 分享 微博 QZONE 微信 phhh 赞同来自: 2d播放视频要事件触发 202...
来源: Laya_社区 发布时间: 20230825
...coder 赞同来自: var url = "https://***********.jpg"; var miniMap = new Image(); miniMap.onload=function(){ if(miniMap.complete==true){ var img = circle_image(miniMap,750,1334); console.log(miniMap); var miniMap1 = new Laya.Image(); miniMap1.loadImage(img); Laya.stage.addChild(miniMap1); } } mini...
来源: Laya_社区 发布时间: 20181125
...ite; var Animation = Laya.Animation; // Class Character function Character(images) { Character.super(this); Character.WIDTH = 110; Character.HEIGHT = 110; var bloodBar; var animation; var nameLabel; Character.prototype.createAnimation = function(images) { animation = new Animation(); animation.loadI...
来源: Laya_示例 发布时间: 20260303
进行预加载,每次进入游戏都会重新加载一次 ar images = ["res/atlas/" + lang + "/shz_images.png","res/atlas/shz_line.png", "res/atlas/" + lang + "/shz_nav.png"。。。。。。。】 用这个进行预加载 Laya.loader.load(images, null, Laya.Handler.create(this, onImagesProgress...
来源: Laya_社区 发布时间: 20170216
...应该能让切图轻松一些把 mport os import math from PIL import Image # if png pngs=[] maxWith = 0 maxHeight = 0 for idx in range(1,4): fname = os.path.join( os.path.curdir, "btn_{0}.png".format(idx)) if os.path.exists( fname) : im=Image.open( fname) pngs.append( im) maxWith = max( maxW...
来源: Laya_社区 发布时间: 20180721
....stage.screenMode = Stage.SCREEN_HORIZONTAL; Stat.enable(); Laya.stage.loadImage("res/cartoon2/background.jpg", 0, 0, 1280, 900); this.createCharacters(); text = new Text(); text.zOrder = 10000; text.fontSize = 60; text.color = "#ff0000" Laya.stage.addChild(text); Laya.timer.frameLoop(1, this, this....
来源: Laya2.0_示例 发布时间: 20260303