大约有 1,004 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0043 秒)
Laya_社区(256) Laya3.0_api(238) Laya_示例(136) Laya2.0_api(103) Laya2.0_示例(102) Laya2.0_文档(90) laya_api(74) Laya3.0_文档(5)
...来自: laya123 package huamao.layer.ui { import app.TheGame; import laya.display.Sprite; import laya.maths.Rectangle; public class CdSprite extends Sprite { public static const START:int = -90; public static const COLOR:String = "#000000"; private var r:Number = BarCell.WID / Math.SQRT2; private va...
来源: Laya_社区 发布时间: 20171124
...anel下动态修改子容器宽高并刷新显示! package { import laya.display.Sprite; import laya.events.Event; import laya.ui.Button; import laya.ui.Panel; import laya.utils.Browser; import laya.utils.Handler; public class LayaUISample { public function LayaUISample() { // 不支持WebGL时自...
来源: Laya_社区 发布时间: 20170601
...ntext3D。使用Stage3D,一定要在游戏入口类里添加import flash.display3D.Context3D; 不引用Context3D的话,编译器会把你的项目与3D相关的类库在编译成H5时全部剔除掉。 2.AGAL脚本代码 AGAL脚本代码必须修改为GLSL脚本代码,项目中涉及到AG...
来源: Laya_社区 发布时间: 20151221
...value * 100) + "%"); } } } new laya.UI_ProgressBar();package { import laya.display.Stage; import laya.ui.ProgressBar; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_ProgressBar { private var progressBar:ProgressBar; public function UI_ProgressBar() { // 不支持WebGL时自动...
来源: Laya_示例 发布时间: 20251219
...享 微博 QZONE 微信 shiyang 赞同来自: package { import laya.display.Stage; import laya.events.Event; import laya.net.Loader; import laya.ui.Button; import laya.utils.Handler; import laya.utils.Stat; import ui.TaskUI; imp...
来源: Laya_社区 发布时间: 20180425
... " + cb.selectedLabel); } } } new laya.UI_ComboBox();package { import laya.display.Stage; import laya.ui.ComboBox; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_ComboBox { private var skin:String = "../../res/ui/combobox.png"; public function UI_ComboBox() { // 不支持WebGL...
来源: Laya2.0_示例 发布时间: 20251219
...his._createHorn() this._createBg() this._createView() this.on(Laya.Event.UNDISPLAY,this,this.stop) this.on(Laya.Event.DISPLAY,this,this.play) } /** 创建滚动区域 */ _createView() { this.hornBox = new Box() let _rectangle = new Laya.Rectangle(0,0,this.defaultX,55) this.hornBox.scrollRect = _rect...
来源: Laya_社区 发布时间: 20180314
...大战js源码中判断语句问题 (function Game() { var Sprite = laya.display.Sprite; //定义背景容器 var box; //定义背景1 var bg1; //定义背景2 var bg2; (function () { //初始化引擎,设置游戏的宽高 Laya.init(480, 852); //创建一个容器,用于存放背景图。 box =...
来源: Laya_社区 发布时间: 20160810
...3.resource.TextureCube; import laya.d3.resource.models.SkyBox; import laya.display.Stage; import laya.events.Event; import laya.utils.Stat; import common.CameraMoveScript; public class TerrainScene { public function TerrainScene() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCALE_FULL; L...
来源: Laya_示例 发布时间: 20251219
...ex | Frames No Frames SpriteProperties | Methods | Events Packagelaya.displayClasspublic class SpriteInheritanceSprite Node EventDispatcher ObjectSubclasses AnimationBase, PerfHUD, Scene, Stage, Text Sprite 是基本的显示图形的显示列表节点。 Sprite 默认没有宽高,默认不...
来源: Laya2.0_api 发布时间: 20190513