大约有 2,482 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0094 秒)
Laya_社区(720) Laya3.0_api(672) Laya2.0_api(367) laya_api(298) Laya_示例(150) Laya2.0_示例(114) Laya2.0_文档(107) Laya3.0_文档(54)
...rt laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class HelloLayabox { private const AniConfPath:String = "../../../../res/role.atlas"; private var roleAni:Animation; public function HelloLayabox() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWi...
来源: Laya2.0_文档 发布时间: 20210715
...imgArray.push(`ui/bg_help_0${i}.png`) } this.list_rule.array = imgArray; } public updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = L...
来源: Laya_社区 发布时间: 20180724
...a.Tween; import WebGL = Laya.WebGL; export class Interaction_CustomEvent { public static ROTATE: string = "rotate"; private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya....
来源: Laya2.0_示例 发布时间: 20260106
...t(){ this.turnNumber++; if(this.turnNumber>3) { this.turnNumber=0 } } public getPlayer()//电脑出牌方法 { var NTS: number; var NTE: number; this.turnNumber; if (this.lastPaixing != "") { if ( this.turnNumber == 1) { NTS = 8; NTE = 5; } if ( this.turnNumber == 2) { NTS = 12; NTE = 9; } if (...
来源: Laya_社区 发布时间: 20180626
....create(this, function(){ this.initView(); })); } /** 初始化场景 * */ public initView(): void{ // 加载并添加场景中需要使用的资源 this.baseBox = new Box(); this.baseBox.width = 443; this.baseBox.height = 622; this.baseBox.pos(30, 28); this.baseBox.bgColor = "#ffffff"; // 加载进...
来源: Laya2.0_示例 发布时间: 20260106
...ht,WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); this.startFun(); } public startFun():void { this.mAniPath = "res/spine/spineRes5/vine.sk"; this.mFactory = new Templet(); this.mFactory.on(Event.COMPLETE, this, this.parseComplete); this.mFactory.on(Event.ERROR, this, this.onError); this.mFacto...
来源: Laya2.0_示例 发布时间: 20260106
...ht,WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); this.startFun(); } public startFun():void { this.mAniPath = "res/spine/spineRes4/stretchyman.sk"; this.mFactory = new Templet(); this.mFactory.on(Event.COMPLETE, this, this.parseComplete); this.mFactory.on(Event.ERROR, this, this.onError); this...
来源: Laya2.0_示例 发布时间: 20260106
...ext" fontSize="12" editorInfo="compId=2"/> </View> mytexts.as: public class myTexts extends myTextsUI public function myTexts() { super(); } override protected function initialize():void { ...
来源: Laya_社区 发布时间: 20170703
...laya.display.Stage; import laya.webgl.WebGL; public class Sprite_DrawShapes { private var sp:Sprite; public function Sprite_DrawShapes() { Laya.init(500, 300, We...
来源: Laya2.0_文档 发布时间: 20210714
...ge { import laya.display.Text; /** @author Charley */ public class HelloLayabox { public function HelloLayabox() { //创建舞台,默认背景色是黑色的 Laya.init(600, 300); var txt:Text = new Text(); //设置文本内容 ...
来源: Laya2.0_文档 发布时间: 20210715