大约有 6 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0020 秒)
...selectBox 的name 为“selectBox”时,将被识别为树结构的项的背景。2帧:悬停时背景、选中时背景。 selectBox.height = 32; selectBox.x = 13; selectBox.left = 12; this.addChild(selectBox); let folder = new Clip("res/ui/tree/clip_tree_folder.png", 1, 3); folder.name = "fold...
来源: Laya2.0_示例 发布时间: 20260106
...tainer.cacheAs = "bitmap"; // 绘制遮罩区,含透明度,可见游戏背景 maskArea = new Sprite(); guideContainer.addChild(maskArea); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000"); // 绘制一个圆形区域,利用叠加模式,从遮...
来源: Laya2.0_示例 发布时间: 20260106
...Animation = Laya.Animation, Text = Laya.Text, Event = Laya.Event; // 创建背景 this.spBg = Sprite.fromImage(PathBg); Laya.stage.addChild(this.spBg); // 创建动画 this.aniFly = new Animation(); this.aniFly.loadAtlas(PathFly); this.aniFly.play(); this.aniFly.pos(250, 100); Laya.stage.addChild(th...
来源: Laya2.0_示例 发布时间: 20260106
..."center"; //设置垂直对齐 Laya.stage.alignV = "middle"; //实例一个背景 let bg = new Image(); bg.skin = "res/bg.jpg"; Laya.stage.addChild(bg); //实例一个文本 this.txt = new Text(); this.txt.text = "点击我切换适配模式(noscale)"; this.txt.bold = true; this.txt.pos(0, 200); thi...
来源: Laya2.0_示例 发布时间: 20260106
... = new Tween(); this.setup(); } setup() { this.createPhoenixes(); // 动态背景渲染 this.evalBgColor(); Laya.timer.frameLoop(1, this, this.renderBg); } createPhoenixes() { let scaleFactor = Math.min( Laya.stage.width / (phoenixWidth * 2), Laya.stage.height / phoenixHeight); // 混合模式的凤...
来源: Laya2.0_示例 发布时间: 20260106
...始化列表子项内容 * */ public function initItem(){ // 列表item的背景图 this.msgBG = new Image("res/ui/refreshList/img_bg22.png"); this.addChild(this.msgBG); this.msgBG.sizeGrid = "12,10,8,12"; this.msgBG.pos(0, 7); this.msgBG.autoSize = true; this.msgBG.height = 80; this.msgBG.left = 7;...
来源: Laya2.0_示例 发布时间: 20260106