大约有 9 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0033 秒)
...der", "full", "fixedwidth", "fixedheight"]; //当前适配模式索引 var index = 0; //全局文本信息 var txt; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(1136, 640); //设置适配模式 Laya.stage.scaleMode = "noscale"; //设置横竖屏 Laya.stage.screenMode = Stage.SCR...
来源: Laya_示例 发布时间: 20241118
...} function showTotalSeconds() { var clip = new Clip(clipSkin, 10, 1); clip.index = clip.clipX - 1; clip.pos(counter.x + 60, counter.y); Laya.stage.addChild(clip); } function createController() { controller = new Button(buttonSkin, "暂停"); controller.labelBold = true; controller.labelColors = "#FF...
来源: Laya_示例 发布时间: 20241118
...ck); function onBtnClick() { //手动控制组件属性 this.radio.selectedIndex = 1; this.clip.index = 8; this.tab.selectedIndex = 2; this.combobox.selectedIndex = 0; this.check.selected = true; } function onBtn2Click() { //通过赋值可以简单快速修改组件属性 //赋值有两种方式:...
来源: Laya_示例 发布时间: 20241118
...i/listskins/5.jpg"); } list.array = data; } private updateItem(cell: Item, index: number): void { cell.setImg(cell.dataSource); } private onSelect(index: number): void { console.log("当前选择的索引:" + index); } } import Box = Laya.Box; import Image = Laya.Image; class Item extends Box { pu...
来源: Laya_示例 发布时间: 20241118
... 1,Tab Control 2,Tab Control 3"; tab.labelPadding = "0,0,0,0"; tab.selectedIndex = 1; onSelect(tab.selectedIndex); tab.selectHandler = new Handler(this, onSelect); Laya.stage.addChild(tab); return tab; } function onSelect(index) { console.log("当前选择的标签页索引为 " + index); } })();mod...
来源: Laya_示例 发布时间: 20241118
... new Laya.Vector3(0, 0, 0); this._quaternion = new Laya.Quaternion(); this.index = 0; this.curPathIndex = 0; this.nextPathIndex = 1; this.pointCount = 10; Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); this.path = new Array(); //预加...
来源: Laya_示例 发布时间: 20241118
...i) { var rg: RadioGroup = this.createRadioGroup(this.skins[i]); rg.selectedIndex = i; rg.x = i * this.SPACING + this.X_OFFSET; rg.y = this.Y_OFFSET; } } private createRadioGroup(skin: string): RadioGroup { var rg: RadioGroup = new RadioGroup(); rg.skin = skin; rg.space = 70; rg.direction = "v"; rg.l...
来源: Laya_示例 发布时间: 20241118
...动画 ani.interval = 30; // 设置播放间隔(单位:毫秒) ani.index = 1; // 当前播放索引 ani.play(); // 播放图集动画 // 获取动画的边界信息 var bounds = ani.getGraphicBounds(); ani.pivot(bounds.width / 2, bounds.height / 2); ani.pos(Laya.stage.width / 2, Laya.stage.hei...
来源: Laya_示例 发布时间: 20241118
...历节点,播放动画 public playSkinAnimation(spirit3D: Laya.Sprite3D, index: number): void { if (spirit3D instanceof Laya.MeshSprite3D) { var meshSprite3D: Laya.MeshSprite3D = spirit3D as Laya.MeshSprite3D; var skinAni: Laya.SkinAnimations = meshSprite3D.getComponentByType(Laya.SkinAnimations) as...
来源: Laya_示例 发布时间: 20241118