大约有 11 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0026 秒)
...ess组件的value为2 //复杂复制,可以通知某个属性,比如:label:{color:"#ff0000",text:"Hello LayaAir"} this.box.dataSource = {slider: 50, scroll: 80, progress: 0.2, input: "This is a input", label: {color: "#ff0000", text: "Hello LayaAir"}}; //list赋值,先获得一个数据源...
来源: Laya_示例 发布时间: 20241118
...目开发更高效。(function() { // 项渲染器 var Box = Laya.Box; var Label = Laya.Label; function ListItemRender() { var label = null; ListItemRender.__super.call(this); this.size(100, 20); label = new Label(); label.fontSize = 12; label.color = "#FFFFFF"; this.addChild(label); this.setLabel =...
来源: Laya_示例 发布时间: 20241118
...t(55, 72); target.pos(100,100); } function createTimerLine() { timeLine.addLabel("turnRight",0).to(target,{x:450, y:100, scaleX:0.5, scaleY:0.5},2000,null,0) .addLabel("turnDown",0).to(target,{x:450, y:300, scaleX:0.2, scaleY:1, alpha:1},2000,null,0) .addLabel("turnLeft",0).to(target,{x:100, y:300, ...
来源: Laya_示例 发布时间: 20241118
...); musicButton.on(Event.CLICK, this, onPlayMusic); } function createButton(label) { var w = 110; var h = 40; var button = new Sprite(); button.size(w, h); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.graphics.fillText(label, w / 2, 8, "25px SimHei", "#FFFFFF", "center"); Laya.stage.addChi...
来源: Laya_示例 发布时间: 20241118
...; button2.on(Event.CLICK, this, onDecreaseAlpha2); } function createButton(label) { var w = 300, h = 60; var button = new Sprite(); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.size(w, h); button.graphics.fillText(label, w / 2, 17, "20px simHei", "#ffffff", "center"); return button; } fun...
来源: Laya_示例 发布时间: 20241118
... Laya.Physics.rayCast(ray, _outHitInfo, 30, 0); } (function loadUI() { var label = new Laya.Label(); label.text = "点击放置"; label.pos(Laya.Browser.clientWidth / 2.5, 100); label.fontSize = 50; label.color = "#40FF40"; Laya.stage.addChild(label); var _position = new Laya.Vector3(0, 0, 0); var _...
来源: Laya_示例 发布时间: 20241118
... Laya.Physics.rayCast(ray, _outHitInfo, 30, 0); } (function loadUI() { var label = new Laya.Label(); label.text = "点击放置"; label.pos(Laya.Browser.clientWidth / 2.5, 100); label.fontSize = 50; label.color = "#40FF40"; Laya.stage.addChild(label); var _offset = new Laya.Vector3(0, 0.25, 0); var ...
来源: Laya_示例 发布时间: 20241118
...wHeightDelta = this.rowSpacing + this.rowHeight; // 显示左侧标签 showLabel("邮箱", 0, rowHeightDelta * 0); showLabel("出生日期", 0, rowHeightDelta * 1); showLabel("密码", 0, rowHeightDelta * 2); // 显示右侧输入框 var emailInput = createInputElement(); var birthdayInput = createI...
来源: Laya_示例 发布时间: 20241118
...mCurrIndex = 0; var mArmature; var mCurrSkinIndex = 0; var mFactory2; var mLabelSprite; (function(){ Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); mLabelSprite = new Sprite(); startFun(); })(); function startFun() { mAniPath = "../../res/spine/spineRes6...
来源: Laya_示例 发布时间: 20241118
...Physics.rayCastAll(ray, _outHitAllInfo, 30, 0); } (function loadUI() { var label = new Laya.Label(); label.text = "点击选取的几何体"; label.pos(Laya.Browser.clientWidth / 2.5, 100); label.fontSize = 50; label.color = "#40FF40"; Laya.stage.addChild(label); //鼠标事件 Laya.stage.on(Laya.Ev...
来源: Laya_示例 发布时间: 20241118