大约有 7 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0024 秒)
...3, HEI = 85; const Box = Laya.Box; class Item extends Box { constructor(){ super(); const Image = Laya.Image; this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); } setImg(src) { this.img.skin = src; } } class UI_List { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebG...
来源: Laya2.0_示例 发布时间: 20241117
...vent = Laya.Event; // 创建TestPageUI的子类 function TestUI() { TestUI.super(this); //btn是编辑器界面设定的,代码里面能直接使用,并且有代码提示 this.btn.on(Event.CLICK, this, onBtnClick); this.btn2.on(Event.CLICK, this, onBtn2Click); function onBtnClick() { //手动控...
来源: Laya2.0_示例 发布时间: 20200319
...ight; } } class Segment extends Laya.Sprite { constructor(width, height) { super(); this.size(width, height); this.init(); } init() { this.graphics.drawRect(-this.height / 2, -this.height / 2, this.width + this.height, this.height, "#FF7F50"); } // 获取关节另一头位置 getPinPosition() { cons...
来源: Laya2.0_示例 发布时间: 20241117
...; return input } } class ListItemRender extends Laya.Box { constructor() { super(); const Label = Laya.Label; this.size(100, 20); this.label = new Label(); this.label.fontSize = 12; this.label.color = "#FFFFFF"; this.addChild(this.label); } setLabel(value) { this.label.text = value; } } new Tween_Ea...
来源: Laya2.0_示例 发布时间: 20241117
...tring(); } } } class Character extends Laya.Sprite { constructor(images) { super(); this.speed = 5; this.bloodBar; this.animation; this.nameLabel; this.createAnimation(images); this.createBloodBar(); this.createNameLabel(); } createAnimation(images) { const Animation = Laya.Animation; this.animation...
来源: Laya2.0_示例 发布时间: 20241117
...er", "right": "0", "left": "0"}}; class Item extends Box { constructor() { super(); this.right = 0; this.left = 0; let selectBox = new Clip("res/ui/tree/clip_selectBox.png", 1, 2); selectBox.name = "selectBox"; // 设置 selectBox 的name 为“selectBox”时,将被识别为树结构的项的背...
来源: Laya2.0_示例 发布时间: 20241117
...g; public var flagText; public var del; public var delText; constructor(){ super(); this.width = 443; this.height = 86; this.left = 0; this.right = 0; this.zOrder = 2; this.initItem(); } /** 初始化列表子项内容 * */ public function initItem(){ // 列表item的背景图 this.msgBG = new Image...
来源: Laya2.0_示例 发布时间: 20241117