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

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

1081. UI-Tab [ 59%]

...); tabB.labelColors = "#FFFFFF,#8FB299,#FFFFFF"; } private createTab(skin: string): Tab { var tab: Tab = new Tab(); tab.skin = skin; tab.labelBold = true; tab.labelSize = 20; tab.labelStrokeColor = "#000000"; tab.labels = "Tab Control 1,Tab Control 2,Tab Control 3"; tab.labelPadding = "0,0,0,0"; tab...

来源: Laya2.0_示例 发布时间: 20260303

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

...改成你们自己想要的格式 pfUtils.postMessage = function(action: string, data?: any) {     var msg = {action, data};     wx.postMessage(msg); }; // --------正式代码开始-------- module lie {     /**      * 微信数据开放域控件      * 使用:设置好控件大小、...

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

1083. UI-Button [ 59%]

...ICAL_SPACING + this.yOffset; btn.pos(x, y); } } private createButton(skin: string): Button { var btn: Button = new Button(skin); Laya.stage.addChild(btn); return btn; } } } new laya.UI_Button();package { import laya.display.Stage; import laya.ui.Button; import laya.utils.Handler; import laya.webgl.W...

来源: Laya2.0_示例 发布时间: 20260303

1084. UI-Button [ 59%]

...ICAL_SPACING + this.yOffset; btn.pos(x, y); } } private createButton(skin: string): Button { var btn: Button = new Button(skin); Laya.stage.addChild(btn); return btn; } } } new laya.UI_Button();package { import laya.display.Stage; import laya.ui.Button; import laya.utils.Handler; import laya.webgl.W...

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

1085. 鼠标交互-键盘交互 [ 59%]

...r(): void { var numKeyDown: number = this.keyDownList.length; var newText: string = '[ '; for (var i: number = 0; i < numKeyDown; i++) { if (this.keyDownList[i]) { newText += i + " "; } } newText += ']'; this.logger.changeText(newText); } /**添加提示文本*/ private createLogger(): void { this.l...

来源: Laya2.0_示例 发布时间: 20260303

1086. laya.events.InputManager_API3.0 [ 59%]

...Id: number Returns Readonly&lt;Point&gt; Static hasKeyDown hasKeyDown(key: string | number): boolean Defined in laya/events/InputManager.ts:93 返回指定键是否被按下。 Parameters key: string | number 键值。参考:https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event...

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

1087. laya.d3.math.Vector2_API3.0 [ 59%]

...eturns void Static rewriteNumProperty rewriteNumProperty(proto: any, name: string, index: number): void Defined in laya/d3/math/Vector2.ts:144 Parameters proto: any name: string index: number Returns void Static scalarLength scalarLength(a: Vector2): number Defined in laya/d3/math/Vector2.ts:115 计...

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

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

...yaSample.bb的num console.info(s); }, 1000); } } class Child{ private _num:string; public num(n:string){ this._num = n; } public shuchu(){ return this._num; } } new LayaSample(); 2018-08-05 3 0 分享 微博 QZONE 微信 手撕腊鸭 赞同来自: 138*****417 、呆到八得 、陈斌 、小卡 ...

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

1089. 其他引擎的Demo-Example_21 [ 59%]

... 0; private isDown:Boolean = false; private path:Array = []; private color:String = this.colors[0]; private liveGraphics:Graphics; private canvasGraphics:Graphics; constructor() { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.bgColor = "#3da8bb"; this.createCanvases(); Laya.timer.frame...

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

1090. 设置遮罩(ActionScript-LayaAir基础篇(AS3)-位图) [ 59%]

...exture; import laya.utils.Handler; public class MaskDemo { private var Res:String; private var img:Sprite; public function MaskDemo() { Laya.init(1136,640); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" //资源路径 Res = "res/img/monkey1.png"; //先加载图片资源,在图片资源加...

来源: Laya2.0_文档 发布时间: 20210714