大约有 1,491 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0055 秒)
Laya_社区(917) Laya2.0_文档(193) Laya_示例(125) Laya2.0_示例(101) Laya3.0_api(79) Laya3.0_文档(72) laya_api(2) Laya2.0_api(2)
...eateInfoText() { const Text = Laya.Text; infoText = new Text(); Laya.stage.addChild(infoText); infoText.fontSize = 50; infoText.color = "#FFFFFF"; infoText.size(Laya.stage.width, Laya.stage.height); } // 更新设备位置 updatePosition(p) { const Browser = Laya.Browser, BMap = Browser.window.BMap;...
来源: Laya2.0_示例 发布时间: 20251209
...geHandler = new Handler(this, this.onChange); //加载到舞台 Laya.stage.addChild(this.hScrollBar); //创建提示信息 this.createPromptText(this.hScrollBar) } /***创建提示信息***/ private createPromptText(scrollBar:ScrollBar):void { //实例化提示信息 this.promptText=new Text(); //...
来源: Laya2.0_文档 发布时间: 20210715
...geHandler = new Handler(this, this.onChange); //加载到舞台 Laya.stage.addChild(this.vScrollBar); //创建提示信息 this.createPromptText(this.vScrollBar) } /***创建提示信息***/ private createPromptText(scrollBar:ScrollBar):void { //实例化提示信息 this.promptText=new Text(); //...
来源: Laya2.0_文档 发布时间: 20210715
...ine = true; txt.underlineColor = underlineColor; txt.pos(x, y); Laya.stage.addChild(txt); return txt; } })();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import WebGL = Laya.WebGL; export class Text_Underline { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(...
来源: Laya_示例 发布时间: 20251209
...private function showFoods():void{ foodSprite = new Sprite(); Laya.stage.addChild(foodSprite); //初始化当前菜品下标 this.index = 0; //数据数组 foodArray = ; foodArray.push(new Food("菜品1", "1", 0)); foodArray.push(new Food("菜品2", "2", 1)); foodArray.push(new Food("菜品3", "3", ...
来源: Laya_社区 发布时间: 20180407
...d(): void { //示例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); }// TestView.as package { import game.ui.test.TestPageUI; import laya.display.Text; import laya.events.Event; import laya.ui.Box; import laya.ui.Label; public class TestView extends TestPageUI { public funct...
来源: Laya_示例 发布时间: 20251209
...d(): void { //示例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); }// TestView.as package { import game.ui.test.TestPageUI; import laya.display.Text; import laya.events.Event; import laya.ui.Box; import laya.ui.Label; public class TestView extends TestPageUI { public funct...
来源: Laya2.0_示例 发布时间: 20200319
... this.sp = new Sprite(); Laya.stage.addChild(this.sp); //画直线 this.sp.graphics.drawLine(10, 58, 146, 58, "#ff0000", 3); } } } new laya.Sprite_DrawShapes(); ``` 发布后如下...
来源: Laya2.0_文档 发布时间: 20210714
...Dialog(); let bg: Laya.Image = new Laya.Image(this.assets[0]); this.dialog.addChild(bg); let button: Laya.Button = new Laya.Button(this.assets[1]); button.name = Laya.Dialog.CLOSE; button.pos(this.DIALOG_WIDTH - this.CLOSE_BTN_WIDTH - this.CLOSE_BTN_PADDING, this.CLOSE_BTN_PADDING); this.dialog.addC...
来源: Laya3.0_文档 发布时间: 20251024
...tion onLoaded():void { createList(); createItems(); createLoading(); _list.addChild(_loadingBg); Laya.stage.addChild(_list); } protected function createList():void { _list = new List(); _list.itemRender = RecordItem; _list.repeatX = 1; _list.repeatY = 13; _list.spaceY = 3; _list.vScrollBarSkin = "";...
来源: Laya_社区 发布时间: 20170323