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

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

31. ide新建UI页面,初始化时,直接new的话出问题。已经测试很多次,希望帮忙看一下。看看什么问题 [ 93%]

ide新建UI页面,初始化时,直接new的话出问题。已经测试很多次,希望帮忙看一下。看看什么问题 附件 : --> hello_ts.rar 2017-12-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复...

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

32. UI-TextArea [ 93%]

...dComplete)); } onLoadComplete() { const TextArea = Laya.TextArea; let ta = new TextArea(""); ta.skin = skin; ta.font = "Arial"; ta.fontSize = 18; ta.bold = true; ta.color = "#3d3d3d"; ta.pos(100, 15); ta.size(375, 355); ta.padding = "70,8,8,8"; Laya.stage.addChild(ta); } } new UI_TextArea();module l...

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

33. UI-Image [ 93%]

....stage.bgColor = "#232628"; setup(); })(); function setup() { var dialog = new Image("../../res/ui/dialog (3).png"); dialog.pos(165, 62.5); Laya.stage.addChild(dialog); } })();module laya { import Stage = Laya.Stage; import Image = Laya.Image; import WebGL = Laya.WebGL; export class UI_Image { const...

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

34. 调用uinew的时候出现Uncaught TypeError: Cannot read property 'call' of undefined [ 92%]

调用uinew的时候出现Uncaught TypeError: Cannot read property 'call' of undefined 代码: var Test = (function(_surper){    function Test(){         Test.super(this);     };     Laya.class(Test, "Test", _surper);     return Test;      })(ui.TestUI);     报错Uncaught Typ...

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

35. UI-RadioGroup [ 92%]

... private createRadioGroup(skin: string): RadioGroup { var rg: RadioGroup = new RadioGroup(); rg.skin = skin; rg.space = 70; rg.direction = "v"; rg.labels = "Item1, Item2, Item3"; rg.labelColors = "#787878,#d3d3d3,#FFFFFF"; rg.labelSize = 20; rg.labelBold = true; rg.labelPadding = "5,0,0,5"; rg.selec...

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

36. UI-RadioGroup [ 92%]

... private createRadioGroup(skin: string): RadioGroup { var rg: RadioGroup = new RadioGroup(); rg.skin = skin; rg.space = 70; rg.direction = "v"; rg.labels = "Item1, Item2, Item3"; rg.labelColors = "#787878,#d3d3d3,#FFFFFF"; rg.labelSize = 20; rg.labelBold = true; rg.labelPadding = "5,0,0,5"; rg.selec...

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

37. UI-Label [ 91%]

...rokeColor) { const Label = Laya.Label; const STROKE_WIDTH = 4; var label = new Label(); Laya.stage.addChild(label); label.font = "Microsoft YaHei"; label.text = "SAMPLE DEMO"; label.fontSize = 30; label.color = color; if (strokeColor) { label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor; }...

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

38. UI-FontClip [ 91%]

...wContent)); } ShowContent() { const FontClip = Laya.FontClip; var clipnum= new FontClip(assets[0]); var fontClip = new FontClip(assets[1]); var TestFontClip = new FontClip(assets[1]); var TestClipNum = new FontClip(assets[0]); var clipnum1 = new FontClip(assets[0]); clipnum.pos(240, 500); clipnum.si...

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

39. matterjs渲染laya的ui [ 91%]

....Matter.Bodies.circle(200, 200, 120); //自己定义的ui let layaSprite = new MatterSprite(); //对齐 layaSprite.anchorX = layaSprite.anchorY = 0.5; //背景色 layaSprite.graphics.drawCircle(120, 120, 120, '#ffffff'); ball.layaSprite = layaSprite; 2018-04-23 添加评论 免费帖 --> 分享 微...

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

40. 微信小游戏加云开发,项目怎样配置 [ 91%]

...ui.js:  TypeError: Class constructor Component cannot be invoked without 'new'     at new Widget (laya.ui.js:201)     at laya.ui.js:349     at laya.ui.js:1     at wrapFn (gameContext?id=1:51)     at require (VM37 WAGameSubContext.js:2)     at VM37 WAGameSubContext.js:2     at index.js...

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