• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 786 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0064 秒)

451. 重复背景,全方向地图拖动Demo [ 58%]

...o UI创建4个image  var分别: map0,map1,map2,map3 背景图宽高 1800 class WorldPage extends ui.WorldPageUI{ constructor (x,y) { super() this.maxX = 149850 this.maxY = 97500 this.offsetX = x * 150 this.offsetY = y * 150 this.downMouseX = 0 this.downMouseY = 0 Laya.loader.load(['bg/world_bg.jpg...

来源: Laya_社区 发布时间: 20181220

452. 切换后台时,引擎如何判断是否停止定时器? [ 57%]

...何判断是否停止定时器? 在pc上时,做个简单的测试, class TestUI extends ui.test.TestPageUI {      constructor() {         super();          this.stage.on(Laya.Event.FOCUS, this, this.onFocus);         this.stage.on(Laya.Event.BLUR, this, this.onBlu...

来源: Laya_社区 发布时间: 20180724

453. laya.ui.Box [ 57%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames BoxProperties | Methods | Events Packagelaya.uiClasspublic class BoxInheritanceBox UIComponent Sprite Node EventDispatcher ObjectImplements IBoxSubclasses LayoutBox, List, Panel, ScaleBox, Tree, UIGroup, ViewStack Box ...

来源: Laya2.0_api 发布时间: 20190513

454. laya.ui.Tree_API3.0 [ 57%]

...ted All Inherited Externals Only exported Menu Globals "laya/ui/Tree" Tree Class Tree Tree 控件使用户可以查看排列为可扩展树的层次结构数据。 example package { import laya.ui.Tree; import laya.utils.Browser; import laya.utils.Handler; public class Tree_Example { public function...

来源: Laya3.0_api 发布时间: 20231115

455. 使用 addChild 加载界面后,绑定事件报错 [ 57%]

...载场景后报上面图片的错误 GameStart 类如下: export default class GameStart extends ui.GameStartUI {     constructor() {         super();          this.btnStart.on(Laya.Event.CLICK, this, this.startGame);     }      startGame(): void {         //L...

来源: Laya_社区 发布时间: 20190510

456. 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 [ 57%]

...非你的代码有问题 代码如下 输出结果为 1   // 程序入口 class LayaSample{ private static aa:Child; private static bb:Child; constructor() { Laya.init(600,400); this.init(); } private init(){ LayaSample.aa = new Child(); LayaSample.aa.num("1"); LayaSample.bb = new Child(); LayaSamp...

来源: Laya_社区 发布时间: 20180729

457. 求问:西文字体下半部分被遮挡,怎么处理? [ 57%]

...请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: class TextRender getFontSizeInfo 函数,最后部分    var xoff:int = Math.max( orix - pixelBBX[0], 0);    var yoff:int = Math.max( oriy - pixelBBX[1], 0);    var bbxw:int = pixelBBX[2] - pixelBBX[0];    var bbxh:int ...

来源: Laya_社区 发布时间: 20200108

458. 输入设备-指南针 [ 57%]

...Laya.Handler; import WebGL = Laya.WebGL; import Event = Laya.Event; export class InputDevice_Compasss { private compassImgPath:string = "../../res/inputDevice/kd.png"; private compassImg:Sprite; private degreesText:Text; private directionIndicator:Sprite; private firstTime:Boolean = true; constructo...

来源: Laya_示例 发布时间: 20251209

459. 自定义组件时,设置组件子节点的image的skin时,路径为layaIde的路径而非项目路径 [ 57%]

...I.Button; import laya.ui.Image; /** * ... * @author Caixiansheng */ public class HProgressSlider extends HSlider { /**@private */ protected var _progress:Image protected var _proMask:Sprite; public function HProgressSlider(skin:String=null) { super(skin); } override protected function initialize():v...

来源: Laya_社区 发布时间: 20170327

460. 微信小游戏渲染开放域卡顿处理 [ 57%]

...套的,不同开放域代码请勿使用该类      */     export class WXBitmap extends Laya.Sprite {         private $viewName: string;         private $texture: Laya.Texture;         private $bitmap: any;         private $timer: lie.Timer;         public auto: boolean =...

来源: Laya_社区 发布时间: 20181114