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

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

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

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

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

32. 当使用Image作为一个对象的遮罩时,设置Image的ScaleX为0时遮罩失效! [ 84%]

...ull)); } private loaded():void{ var img:Laya.Image = new Laya.Image(); img.skin = "comp/img_pro.png"; Laya.stage.addChild(img); var imgMask:Laya.Image = new Laya.Image(); imgMask.skin = img.skin; imgMask.scaleX = 0; // 无效 // imgMask.scaleX = 1 // 有效 //imgMask.scaleX = 0.5 // 有效 img.mask ...

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

33. 为什么pannel里显示两张同样的图片显示不出来,只能显示一张 [ 84%]

...panel = new Laya.Panel(); this.panel.size(720, 1136); this.panel.vScrollBarSkin = "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/...

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

34. 屏幕适配的缩放模式详解(JavaScript-2D基础篇(JS)-屏幕适配) [ 84%]

...一个背景         var bg = new Image();         bg.skin = "res/img/loadingBg.jpg";         Laya.stage.addChild(bg);               //实例一个文本         txt = new Text();         txt.text = "适配模式("+modes+") ";      ...

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

35. image控件,手机浏览器环境,skin设置url网址链接获取不到图片,电脑浏览器种可以 [ 84%]

image控件,手机浏览器环境,skin设置url网址链接获取不到图片,电脑浏览器种可以 (1)laya版本2.6.1beta,新建一个物理示例项目,在TestScene.scene中放置一个image组件,skin设置:https://makasc.com/oppo/icon_road.png (参考截图) (2)发...

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

36. UI-List [ 84%]

... this.img = new Image(); this.addChild(this.img); } setImg(src) { this.img.skin = src; } } class UI_List { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, Web...

来源: Laya2.0_示例 发布时间: 20251130

37. UI-List [ 84%]

...w Image(); this.addChild(this.img); this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box); // 主要逻辑代码 var Stage = Laya.Stage; var List = Laya.List; var Handler = Laya.Handler; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas La...

来源: Laya_示例 发布时间: 20251130

38. List翻页效果 [ 83%]

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

39. List翻页效果怎么实现 [ 83%]

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

40. 屏幕适配的缩放模式详解(ActionScript-2D基础篇(AS3)-屏幕适配) [ 83%]

...背景         var bg:Image = new Image();         bg.skin = "res/img/loadingBg.jpg";         Laya.stage.addChild(bg);            //实例一个文本         txt = new Text();         txt.text = "适配模式("+Stage.SCALE_EXACTFIT+") ";...

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