大约有 2,546 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0088 秒)
..."] ], { fillStyle: "#00ffff" }); } } new Sprite_DrawShapes();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import WebGL = Laya.WebGL; export class Sprite_DrawShapes { private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(740, 400, WebGL); Lay...
来源: Laya2.0_示例 发布时间: 20240930
... 使用的官方示例代码为(为小游戏做了轻微的改动): import WebGL = Laya.WebGL import Handler = Laya.Handler module laya { import Stage = Laya.Stage; import Label = Laya.Label; import WebGL = Laya.WebGL; export class UI_Label { constructor() { // // 不支持WebGL时自动切换...
来源: Laya_社区 发布时间: 20180529
...atically generated by LayaAirIDE, please do not make any modifications. */ import View=Laya.View; import Dialog=Laya.Dialog; import Scene=Laya.Scene; var REG: Function = Laya.ClassUtils.regClass; export module ui.test { export class TestSceneUI extends Laya.Scene { public scoreLbl:La...
来源: Laya_社区 发布时间: 20190402
...ClipNum); Laya.stage.addChild(clipnum1); } } new Font_Clip(); module laya{ import Stage=Laya.Stage; import FontClip=Laya.FontClip; import Image=Laya.Image; import WebGl=Laya.WebGL; export class Font_Clip{ private TestClipNum:string="res/comp/fontClip_num.png"; private _ClipNum:string="res/comp/fontC...
来源: Laya2.0_示例 发布时间: 20240930
...一行未满的情况下在下一行输入。 ```typescript module laya { import Input = Laya.Input; import Stage = Laya.Stage; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class HelloLayabox { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidt...
来源: Laya2.0_文档 发布时间: 20210715
...项目中需要的Clip。 **示例代码:** ```typescript module laya { import Stage = Laya.Stage; import Button = Laya.Button; import Clip = Laya.Clip; import Image = Laya.Image; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Clip { private buttonSkin: string = "res/ui/...
来源: Laya2.0_文档 发布时间: 20210714
...内容相关的链接 提交 1 个回复 Laya_phhh 赞同来自: Main.ts: import observe from "@observe"; tsconfig: "@observe": ["utils/observe"], 2023-08-07 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 y...
来源: Laya_社区 发布时间: 20230807
...= Laya.stage.height / 2; } } new SmartScale_Scale_NOBORDER();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_NOBORDER { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_NOBORDER; Laya.stage.bgColor = "#2...
来源: Laya2.0_示例 发布时间: 20240930
... = Laya.stage.height / 2; } } new SmartScale_Scale_NOSCALE();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_NOSCALE { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232...
来源: Laya2.0_示例 发布时间: 20240930
...以自己创建。项目入口文件类Main.as的代码如下: package { import flash.display.Sprite; import flash.events.Event; public class Main extends Sprite { public function Main() { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(event:Event = n...
来源: Laya_社区 发布时间: 20151218