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

大约有 136 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0032 秒)

21. VScrollBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 93%]

...说明** | | ----------------- | ----------------------------------- | | skin | 滚动条的图像资源地址。 | | sizeGrid | 滚动条轨道图资源的有效缩放网格数据(九宫格数据)。 | | value | 表示当前滚动位置的数字。 | | min | 表示最低滚动位置的数字。...

来源: Laya2.0_文档 发布时间: 20210715

22. Button属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 92%]

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

23. Image属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 91%]

...图像的组件,用来显示位图图像。可以设置 Image 组件的 skin 属性来改变 Image 组件呈现的图像。Image 组件支持九宫格数据设定,用于实现图像放大后图像显示不失真的效果。 ​ 点击资源面板里的 Image 组件,拖放到页面编辑区,...

来源: Laya2.0_文档 发布时间: 20210714

24. Button属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 91%]

...台背景颜色 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

25. 我就问一下一个遮罩的问题 [ 91%]

...问一下一个遮罩的问题 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

26. Image属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 91%]

...图像的组件,用来显示位图图像。可以设置 Image 组件的 skin 属性来改变 Image 组件呈现的图像。Image 组件支持九宫格数据设定,用于实现图像放大后图像显示不失真的效果。 ​ 点击资源面板里的 Image 组件,拖放到页面编辑区,...

来源: Laya2.0_文档 发布时间: 20210715

27. List翻页效果 [ 91%]

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

28. List翻页效果怎么实现 [ 91%]

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

29. laya 的list组件,如果有多页信息,怎么实现翻页丫?? [ 90%]

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

30. Button属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 90%]

...```typescript // 程序入口 class GameMain{ //按钮资源路径 private skin:string = "button.png"; constructor() { //初始化引擎,设置宽高并开启WebGL渲染模式 Laya.init(600,400,Laya.WebGL); //设置舞台背景颜色 Laya.stage.bgColor = "#ffffff"; //加载资源成功后,执行...

来源: Laya2.0_文档 发布时间: 20210714