大约有 9 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0022 秒)
...AirIDE让项目开发更高效。(function() { var Stage = Laya.Stage; var Label = Laya.Label; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleM...
来源: Laya_示例 发布时间: 20251130
...发更高效。(function() { var Box = Laya.Box; var Clip = Laya.Clip; var Label = Laya.Label; var Utils = Laya.Utils; // 此类对应的json对象: // {"child": [{"type": "Clip", "props": {"x": "13", "y": "0", "left": "12", "height": "24", "name": "selectBox", "skin": "ui/clip_selectBox.png", "ri...
来源: Laya_示例 发布时间: 20251130
...teController() { controller = new Button(buttonSkin, "暂停"); controller.labelBold = true; controller.labelColors = "#FFFFFF,#FFFFFF,#FFFFFF,#FFFFFF"; controller.size(84, 30); controller.on('click', this, onClipSwitchState); controller.x = (Laya.stage.width - controller.width) / 2; controller.y = ...
来源: Laya_示例 发布时间: 20251130
...marker = new BMap.Marker(new BMap.Point(0,0)); map.addOverlay(marker); var label = new BMap.Label("当前位置", { offset: new BMap.Size(-15, 30) }); marker.setLabel(label); } function createInfoText() { infoText = new Text(); Laya.stage.addChild(infoText); infoText.fontSize = 50; infoText.color = ...
来源: Laya_示例 发布时间: 20251130
...wHeightDelta = this.rowSpacing + this.rowHeight; // 显示左侧标签 showLabel("邮箱", 0, rowHeightDelta * 0); showLabel("出生日期", 0, rowHeightDelta * 1); showLabel("密码", 0, rowHeightDelta * 2); // 显示右侧输入框 var emailInput = createInputElement(); var birthdayInput = createI...
来源: Laya_示例 发布时间: 20251130
...); 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_示例 发布时间: 20251130
...; 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_示例 发布时间: 20251130
...目开发更高效。(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_示例 发布时间: 20251130
...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_示例 发布时间: 20251130