大约有 136 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0032 秒)
Laya2.0_文档(69) Laya_社区(39) Laya3.0_文档(23) laya_api(1) Laya_示例(1) Laya3.0_api(1) Laya2.0_示例(1) Laya2.0_api(1)
...说明** | | ----------------- | ----------------------------------- | | skin | 滚动条的图像资源地址。 | | sizeGrid | 滚动条轨道图资源的有效缩放网格数据(九宫格数据)。 | | value | 表示当前滚动位置的数字。 | | min | 表示最低滚动位置的数字。...
来源: Laya2.0_文档 发布时间: 20210715
...webgl.WebGL; public class ComponentDemo { //按钮资源路径 private var skin:String = "./res/img/btn_test.png"; public function ComponentDemo() { //初始化引擎,设置宽高并开启WebGL渲染模式 Laya.init(1334,750, WebGL); //设置舞台背景颜色 Laya.stage.bgColor = "#ffffff"; //加...
来源: Laya2.0_文档 发布时间: 20210715
...图像的组件,用来显示位图图像。可以设置 Image 组件的 skin 属性来改变 Image 组件呈现的图像。Image 组件支持九宫格数据设定,用于实现图像放大后图像显示不失真的效果。 点击资源面板里的 Image 组件,拖放到页面编辑区,...
来源: Laya2.0_文档 发布时间: 20210714
...台背景颜色 Laya.stage.bgColor = "#ffffff"; //按钮资源路径 var skin = "./res/img/btn_test.png"; //加载资源成功后,执行onLoaded回调方法 Laya.loader.load(skin,Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个Button实例 var btn = new Laya.Button(skin); /...
来源: Laya2.0_文档 发布时间: 20210714
...问一下一个遮罩的问题 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
...图像的组件,用来显示位图图像。可以设置 Image 组件的 skin 属性来改变 Image 组件呈现的图像。Image 组件支持九宫格数据设定,用于实现图像放大后图像显示不失真的效果。 点击资源面板里的 Image 组件,拖放到页面编辑区,...
来源: Laya2.0_文档 发布时间: 20210715
..._downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rule.mouseHandler = new Laya.Handler(this, this.onMou...
来源: Laya_社区 发布时间: 20171202
..._downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rule.mouseHandler = new Laya.Handler(this, this.onMou...
来源: Laya_社区 发布时间: 20181112
..._downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rule.mouseHandler = new Laya.Handler(this, this.onMou...
来源: Laya_社区 发布时间: 20180724
...```typescript // 程序入口 class GameMain{ //按钮资源路径 private skin:string = "button.png"; constructor() { //初始化引擎,设置宽高并开启WebGL渲染模式 Laya.init(600,400,Laya.WebGL); //设置舞台背景颜色 Laya.stage.bgColor = "#ffffff"; //加载资源成功后,执行...
来源: Laya2.0_文档 发布时间: 20210714