大约有 773 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0060 秒)
Laya_社区(382) Laya2.0_文档(85) Laya3.0_api(74) Laya2.0_api(66) laya_api(63) Laya3.0_文档(44) Laya_示例(32) Laya2.0_示例(27)
...esource.HTMLCanvas; import laya.ui.Image; /** * ... * @author ww */ public class TestBase64Img { public function TestBase64Img() { Laya.init(1000, 900); testDraw(); } public function testDraw():void { var sp:Sprite; sp = new Sprite(); sp.graphics.drawRect(0, 0, 100, 100, "#ff0000"); Laya.stage.addCh...
来源: Laya_社区 发布时间: 20170417
...t管理器 * location shareobject manager * @author hengry */ public final class yfqian_SaveALoad { public static function set(key:String, value:String):String { LocalStorage.setItem(key,value); return value; } public static function get(key:String):String { return LocalStorage.getItem(key); } publi...
来源: Laya_社区 发布时间: 20180722
...display.Sprite; import laya.utils.Browser; import laya.webgl.WebGL; public class HelloLaya { public function HelloLaya() { Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor="#eeffcc"; var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,200,300,"#000fff"); Laya.stage.addChild(sp); s...
来源: Laya_社区 发布时间: 20170830
... on(Laya.Event.MOUSE_DOWN 来检测。 下面是我的代码处理: class demo { private down:Laya.Image; constructor() { // 鼠标事件 Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.onMouseMove); Laya.stage.on(Laya.Event.MOUSE_UP...
来源: Laya_社区 发布时间: 20180731
...教Laya.BitmapFont加载位图文字不能显示的问题 // 程序入口 class GameMain{ private mFontName:string = "diyFont"; private mBitmapFont:Laya.BitmapFont; constructor() { Laya.init(600,400); this.mBitmapFont = new Laya.BitmapFont(); this.mBitmapFont.loadFont("../laya/assets/txt.fnt", new L...
来源: Laya_社区 发布时间: 20171028
API DocumentationAll Packages | All Classes | Index | Frames No Frames ViewStackProperties | Methods | Events Packagelaya.uiClasspublic class ViewStackInheritanceViewStack Box UIComponent Sprite Node EventDispatcher ObjectImplements IItem ViewStack 类用于视图堆栈类,用于视图...
来源: Laya2.0_api 发布时间: 20190513
API DocumentationAll Packages | All Classes | Index | Frames No Frames ScaleBoxProperties | Methods | Events Packagelaya.uiClasspublic class ScaleBoxInheritanceScaleBox Box UIComponent Sprite Node EventDispatcher Object 自适应缩放容器,容器设置大小后,容器大小始终保...
来源: Laya2.0_api 发布时间: 20190513
...代码如下: ```typescript package { import laya.display.Text; public class HelloLayabox { public function HelloLayabox() { //初始化引擎 Laya.init(600, 300); var txt:Text = new Text(); //设置文本内容 txt.text = "Hello Layabox"; //设置文本颜色为白色,默认颜色为黑色 txt....
来源: Laya2.0_文档 发布时间: 20210715
...真阅读文章,现在改成在具体的使用说明: 主域:public class LayaUISample { public function LayaUISample() { //微信小游戏适配库初始化 MiniAdpter.init(true,false); //初始化引擎 Laya.init(640, 480,WebGL); Laya.stage.scaleMode = Stage.SCALE_FIXED_HEIGHT; Laya.stage.bg...
来源: Laya_社区 发布时间: 20180525
...题。 2018-05-08 0 0 分享 微博 QZONE 微信 Miller 赞同来自: class Item extends Laya.Box { public static WID: number = 600; public static HEI: number = 85; private img: Laya.Image; //private text: Laya.Label; constructor(){ super(); this.size(Item.WID, Item.HEI); this...
来源: Laya_社区 发布时间: 20180507