大约有 8 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0028 秒)
... Laya.ComboBox, Handler = Laya.Handler; let comboBox = new ComboBox(skin, "item0,item1,item2,item3,item4,item5"); Laya.stage.addChild(comboBox); comboBox.labelSize = 30; comboBox.itemSize = 25; comboBox.selectHandler = new Handler(this, this.onSelect, [comboBox]); return comboBox; } onSelect(cb) { c...
来源: Laya2.0_示例 发布时间: 20241117
...开发更高效。const WID = 373, 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 =...
来源: Laya2.0_示例 发布时间: 20241117
...gColor = "#232628"; this.setup(); } setup() { let xmlValueContainsError = "item aitem bsomethis..."; let xmlValue = "item aitem bsomethings..."; this.proessXML(xmlValueContainsError); console.log("\n"); this.proessXML(xmlValue); } // 使用xml proessXML(source) { const Utils = Laya.Utils; let xml; t...
来源: Laya2.0_示例 发布时间: 20241117
...ioGroup(); rg.skin = skin; rg.space = 70; rg.direction = "v"; rg.labels = "Item1, Item2, Item3"; rg.labelColors = "#787878,#d3d3d3,#FFFFFF"; rg.labelSize = 20; rg.labelBold = true; rg.labelPadding = "5,0,0,5"; rg.selectHandler = new Handler(this, this.onSelectChange); Laya.stage.addChild(rg); return...
来源: Laya2.0_示例 发布时间: 20241117
...rr: Array = []; for (var i: number = 0; i < 100; i++) { arr.push({ label: "item " + i, clip: i % 9 }); } //给list赋值更改list的显示 this.list.array = arr; //还可以自定义list渲染方式,可以打开下面注释看一下效果 //list.renderHandler = new Handler(this, onListRender); } ...
来源: Laya2.0_示例 发布时间: 20200319
...dler = Laya.Handler; let easeFunctionsList = new List(); easeFunctionsList.itemRender = ListItemRender; easeFunctionsList.pos(5, 5); easeFunctionsList.repeatX = 1; easeFunctionsList.repeatY = 20; easeFunctionsList.vScrollBarSkin = ''; easeFunctionsList.selectEnable = true; easeFunctionsList.selectHa...
来源: Laya2.0_示例 发布时间: 20241117
...a); let tree = new Tree(); tree.scrollBarSkin = "res/ui/vscroll.png"; tree.itemRender = Item; tree.xml = xml; tree.size(300, 300); tree.x = (Laya.stage.width - tree.width) / 2; tree.y = (Laya.stage.height - tree.height) / 2; Laya.stage.addChild(tree); } } const Box = Laya.Box, Clip = Laya.Clip, Labe...
来源: Laya2.0_示例 发布时间: 20241117
...位置 */ this.moveLastPos = null; /** 列表单元是否已打开 */ this.itemIsOpen=false; /**展开的单元格索引ID */ this.itemOpenId=-1; /**展开的单元格对象 */ this.openedItem = null; /** 记录模拟数据的红点状态 */ this.redHotStatus =[]; /** 纪录鼠标按下状态,true...
来源: Laya2.0_示例 发布时间: 20241117