大约有 908 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0050 秒)
Laya_社区(631) Laya3.0_api(68) Laya2.0_api(57) laya_api(53) Laya2.0_文档(50) Laya3.0_文档(28) Laya2.0_示例(11) Laya_示例(10)
...arSkin = "comp/vscroll.png"; Laya.stage.addChild(this.panel); var img:Laya.Image = new Laya.Image(); img.skin = "res/GameBG2.jpg" this.panel.addChild(img) var img1:Laya.Image = new Laya.Image(); img1.y = 1136; img1.skin = "res/GameBG2.jpg"; this.panel.addChild(img1) } } 两张同样的图片在panne...
来源: Laya_社区 发布时间: 20180529
...11-13 19:41 pannel吞噬了鼠标点击事件,我将我的pannel,改为image,然后将image的mousethruth改为true就没问题了 ymsdandan • 2017-11-13 19:44 @浪货界扛把子:嗯嗯,解决就好 浪货界扛把子 • 2017-11-13 20:54 @ymsdandan:但是在代码中设置mousethruth为t...
来源: Laya_社区 发布时间: 20171113
...number){ var img1 = cell.getChildByName("img1") as Laya.Image; var img2 = cell.getChildByName("img2") as Laya.Image; img1.on("click",this,this.onRefresh,[index]) //当索引相同时 BOX 高度改变 if(this.index_num...
来源: Laya_社区 发布时间: 20190522
...来自: 请设置图片的中心点pivotX和pivotY为中心位置,即image.width/2,image.height/2,image的宽高需要自己手动设置或者通过getBounds获取。 2016-11-18 0 0 分享 微博 QZONE 微信 shaouXie 赞同来自: var bg = new Laya.Sprite(); bg.loadImage("res/bg-480x720.jp...
来源: Laya_社区 发布时间: 20161118
...在一个txt文内。  2.选择文件->另存为Unicode编码的txt文件。  3.下载安装 windows下免费的...
来源: Laya2.0_文档 发布时间: 20201114
....ATLAS}, {url : "loading/progress.png", type : Laya.Loader.IMAGE}, {url : "loading/progress$bar.png", type : Laya.Loader.IMAGE}, ] Laya.loader.load(res_array, Handler.create(null, onLoaded)); } function onLoaded() { var res_array = [ ...
来源: Laya_社区 发布时间: 20180730
...? 现在有一个laya.ui.Panel,addChild了很多其他UI组件,比如Image和Button。然后现在要做一个特殊的扭曲效果,需要将这个laya.ui.Panel绘制为一张位图,这张位图要求包含里面的Image和Button,然后对这种位图进行扭曲处理。请问怎么将...
来源: Laya_社区 发布时间: 20170416
...beginLoad(); }); private function beginLoad():void { Laya.loader.load("res/images/rank.json", Handler.create(this, onLoaded)); } private function onLoaded():void { trace("加载成功"); var c:Image = new Image("rank/country.png"); Laya.stage.addChild(c); } 以上是子域项目中加载图集和...
来源: Laya_社区 发布时间: 20180830
...= Laya.Stage; import Button = Laya.Button; import Clip = Laya.Clip; import Image = Laya.Image; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Clip { private buttonSkin: string = "res/ui/button-7.png"; private clipSkin: string = "res/ui/num0-9.png"; private bgSkin: string =...
来源: Laya2.0_文档 发布时间: 20210714
...isplay.Stage; import laya.ui.Button; import laya.ui.Dialog; import laya.ui.Image; import laya.utils.Handler; import laya.webgl.WebGL; public class DialogCenterClose { private const DIALOG_WIDTH:int = 220; private const DIALOG_HEIGHT:int = 275; private const CLOSE_BTN_WIDTH:int = 43; private const CL...
来源: Laya_社区 发布时间: 20170706