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

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

201. laya.ui.Radio_API3.0 [ 51%]

...宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this,onLoadComplete)); } private function onLoadComplete():void { trace("资源加载完成!"); var button:Button = new Button("resource/ui/button.png"...

来源: Laya3.0_api 发布时间: 20231115

202. laya.ui.TextInput_API3.0 [ 51%]

...宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布背景颜色。 Laya.loader.load(["resource/ui/input.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { var textInput:TextInput = new TextInput("这是一个TextInput实例...

来源: Laya3.0_api 发布时间: 20231115

203. laya.ui.TextArea_API3.0 [ 51%]

...置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布背景颜色。 Laya.loader.load(["resource/ui/input.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { var textArea:TextArea = new TextArea("这个一个TextArea实例。"...

来源: Laya3.0_api 发布时间: 20231115

204. laya.ui.List_API3.0 [ 50%]

...宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "resource/ui/vscroll$down.png", "resource/ui/vscroll$up.png"], Handler.create(this, onLoadComplete)); } private function onLoadComplete...

来源: Laya3.0_api 发布时间: 20231115

205. laya.ui.ProgressBar_API3.0 [ 49%]

...置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布背景颜色。 Laya.loader.load(["resource/ui/progress.png", "resource/ui/progress$bar.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { progressBar = new ProgressBar("re...

来源: Laya3.0_api 发布时间: 20231115

206. 在父sprite中添加子sprite ,移动父Sprite 子sprite为什么不动? [ 49%]

... = new Sprite(); // 守护神 this.angel = new Sprite(); // 加载主体背景 Laya.loader.load("res/island.png", Handler.create(this, function() { // 图片加载 var t = Laya.loader.getRes("res/island.png"); var tBall = Texture.create(t,866,190,548,305); var tTower = Texture.create(t,data.tower...

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

207. 分享:Dragonbones/Spine换肤操作 [ 49%]

...台左上角显示帧频信息 Laya.stage.bgColor='#EEFFCC';//设置舞台背景色 Laya.stage.alignH='center';//水平居中对齐 Laya.stage.alignV='middle';//垂直居中对齐 Laya.stage.scaleMode='showall';//缩放模式 Laya.stage.screenMode='horizontal';//竖屏显示 templete=new Templet();/...

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

208. laya.ui.HSlider_API3.0 [ 48%]

...置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布背景颜色。 Laya.loader.load(["resource/ui/hslider.png", "resource/ui/hslider$bar.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { hSlider = new HSlider();//创建一...

来源: Laya3.0_api 发布时间: 20231115

209. laya.ui.VSlider_API3.0 [ 48%]

...置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布背景颜色。 Laya.loader.load(["resource/ui/vslider.png", "resource/ui/vslider$bar.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { vSlider = new VSlider();//创建一...

来源: Laya3.0_api 发布时间: 20231115

210. laya.display.Stage [ 48%]

...为true,对性能有一定影响。 Sprite  bgColor : String舞台背景颜色默认为黑色,null为透明。Stage blendMode : String指定要使用混合模式。目前只支持"lighter"。Sprite cacheAs : String 指定显示对象是否缓存为静态图像,cacheAs时,子对...

来源: laya_api 发布时间: 20170929