大约有 196 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0060 秒)
...; input.inputElementYAdjuster = 1; return input } } } class ListItemRender extends Box { private label: Label; constructor() { super(); this.size(100, 20); this.label = new Label(); this.label.fontSize = 12; this.label.color = "#FFFFFF"; this.addChild(this.label); } public setLabel(value: string): v...
来源: Laya_示例 发布时间: 20241002
...,IDE F8编译时也不通过 代码: export default class Index extends Laya.Script { /* @prop {name: speed, tips: "速度", type: Number, default: 10} */ constructor() { super(); } onAwake() { console.log("...
来源: Laya_社区 发布时间: 20191227
...方式实现,比如子弹脚本。 */ export default class GameUI extends ui.test.TestSceneUI { private mat1: Laya.BlinnPhongMaterial; private newScene: Laya.Scene3D; private arr: any; constructor() { super(); this.arr...
来源: Laya_社区 发布时间: 20201120
...下: const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { onAwake(): void { let img = new Laya.Image; Laya.stage.addChild(img); img.pos(500,100); img.skin = "resources/layabox.png"; //纹理压缩的图片的路径 } onStart() { Laya.Stat.show(0, 0); //性能面...
来源: Laya3.0_文档 发布时间: 20231219
...脚本方式实现,比如子弹脚本。 */ export default class GameUI extends ui.test.TestSceneUI { private mat1: Laya.BlinnPhongMaterial; private newScene: Laya.Scene3D; private sMapRes = "remote/model/res/Conventional/map1.ls" private sBullRes = "remote/model/res/Conventional/bull.lh" private ...
来源: Laya_社区 发布时间: 20200720
...*******************************************************/ class DollGunRole extends GunRole{ public _box: GunBox; // toset: /** 飞行的范围, 用于计算飞行路径 */ private _fly_site:Site = new SiteEntity( 10, 10, -1, 400 ); public static _ani_cached:boolean = false; // toset: /** 飞...
来源: Laya_社区 发布时间: 20180515
...直等于-1? -------------------------------- class RoleControlScript extends Laya.Script{ /*角色模型*/ public roleModel:Laya.Sprite3D; /*角色动画组件*/ public roleAni:Laya.Animator; /*角色当前动作*/ public currentAction:string = "stand"; /*角色动画是否完成*/ public aniCo...
来源: Laya_社区 发布时间: 20171113
...aMaxUI"; import MyDialogUI = ui.game.MyDialogUI; export class MyDialog extends MyDialogUI { constructor() { super(); } onOpened(param: any): void { console.log("mylog------:" + JSON.stringify("onOpened")); this.openDataView.postMsg("test10086"); ...
来源: Laya_社区 发布时间: 20190307
...plicationDomain; import flash.system.LoaderContext; public class SwfBinary extends Sprite { public function SwfBinary() { super(); if(stage) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { var loader:Loader=new Loader(); var context...
来源: Laya_社区 发布时间: 20151224
...———————————————— public class MainActivity extends Activity{ private IPlugin mPlugin = null; private IPluginRuntimeProxy mProxy = null; boolean isLoad=false; boolean isExit=false; private WebView webView = null; private Acti...
来源: Laya_社区 发布时间: 20170517