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

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

371. UI-List [ 76%]

...temRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.height - HEI * list.repeatY) / 2; // 使用但隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handler(this, onSelect); list.renderHandler = n...

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

372. Clip属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 76%]

...lipX、竖向分隔数量 clipY,或横向分割每个切片的宽度 clipWidth、竖向分割每个切片的高度 clipHeight,从左向右,从上到下,分割组合为一个切片动画。 ​ Clip 组件可以用来播放切片动画,和显示切片动画的某一帧图片。 ​ 点击...

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

373. Label属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 75%]

...vate createLabel(color: string, strokeColor: string): Label { const STROKE_WIDTH: number = 4; var label: Label = new Label(); label.font = "Microsoft YaHei"; label.text = "SAMPLE DEMO"; label.fontSize = 30; label.color = color; if (strokeColor) { label.stroke = STROKE_WIDTH; label.strokeColor = stro...

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

374. typescipt在一定范围内加载图片按照等比排列 [ 75%]

...min是右边的效果             let ratio = Math.max(source.width, source.height) / 100;             img.width = source.width / ratio;             img.height = source.height / ratio;         }     }     reset();     img.on(Laya.Event.LOADED, ...

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

375. 为什么谷歌浏览器调试可以显示这些文字打包后却没有了 [ 75%]

...le"; // div.style.fontFamily = "Microsoft YaHei"; div.style.width = 200; div.style.color = "#black"; for(let i=0; i<FaceView.faceArray.length; i++) { txt = txt.replace(FaceView.repl[i],'<img src="res/face/face'+i+'.png" style="width:36px;height:36px;posi...

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

376. 缓动-缓动函数演示 [ 75%]

...ntroller() { const Event = Laya.Event; let durationInput = this.createInputWidthLabel("Duration:", '2000', 400, 10); durationInput.on(Event.INPUT, this, function() { duration = parseInt(durationInput.text); }); } createInputWidthLabel(label, prompt, x, y) { const Text = Laya.Text, Input = Laya.Input...

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

377. 文本-自动调整文本尺寸 [ 75%]

...ow = Text.VISIBLE; autoSizeText.y = 50; // 该文本被限制了宽度 var widthLimitText = createSampleText(); widthLimitText.width = 100; widthLimitText.y = 180; //该文本被限制了高度 var heightLimitText = createSampleText(); heightLimitText.height = 20; heightLimitText.y = 320; } function...

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

378. list 加载动画为什么实现的效果会错乱掉? [ 75%]

...的边界信息 var bounds = ani.getGraphicBounds(); ani.scale(80/bounds.width ,80/bounds.height) this.addChild(ani) } } Laya.class(Item1, "Item1", Box); var List = Laya.List; function setup(effList) { var list = new List(); list.itemRender = Item1; list.repeatX = 3; list.repeatY = 4; list.x = (Laya...

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

379. 关于裁剪的问题 [ 75%]

...ole.log("loginUI.bar.value = ", loginUI.bar.value); loginUI.bbbar.viewport.width = loginUI.bbbar.viewport.width + 0.2 //console.log("loginUI.bbbar.viewport.width = ", loginUI.bbbar.viewport.width); }, 1000, 100); 2017-09-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

380. 2D物理-桥 [ 75%]

...static"; point1.addComponentIntance(pointRB1); let preBody = pointRB1; let width = 20, height = 2.5; for (let i = 0; i { let targetX = (300 + Math.random() * 400) / Laya.Physics.PIXEL_RATIO, targetY = 500 / Laya.Physics.PIXEL_RATIO; let newBall = new Laya.Sprite(); Laya.Laya.stage.addChild(newBall);...

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