大约有 432 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0055 秒)
...xtends Laya.Sprite { private swimpoolani:Laya.Animation; constructor() { super(); this.swimpoolani=new Laya.Animation(); //this.init(); this.swimpoolani.loadAtlas("./res/atlas/Comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ Laya.Animation.createFrames([swimpo...
来源: Laya_社区 发布时间: 20190805
...te static cached:boolean = false; private body:Laya.Sprite; constructor(){ super(); this.init(); } public init():void{ if(!Ball.cached){ Ball.cached = true; this.body = new Laya.Sprite(); this.body.loadImage("war/ball.png"); this.body.pivot(12,12); } this.addChild(this.body); Laya.timer.frameLoop(1,...
来源: Laya_社区 发布时间: 20171108
...E_DOWN, this, function (e) { list.addItem(1); }); function Item() { Item.__super.call(this); this.size(416, 270); this.text = new Text(); this.text.fontSize = 20; this.text.pos(12, 5); this.text.color = "#FF00FF"; this.text.zOrder = 1; this.addChild(this.text); this.setImg = function(data) { var aar...
来源: Laya_社区 发布时间: 20170920
... protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow().requestFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.L...
来源: Laya_社区 发布时间: 20170423
... > ```typescript class MonkeyScript extends Laya.Script3D { constructor(){ super(); this.rotation = new Laya.Vector3(0, 0.01, 0); } onAwake() { console.log("onAwake"); } onStart() { console.log("onStart"); } onUpdate() { this.owner.transform.rotate(this.rotation, false); } onLateUpdate() { console.l...
来源: Laya2.0_文档 发布时间: 20210714
...velScrollUI extends ui.LevelUI { private panel:Laya.Panel; constructor() { super(); this.panel = new Laya.Panel(); this.panel.size(720, 1136); this.panel.vScrollBarSkin = "comp/vscroll.png"; Laya.stage.addChild(this.panel); var img:Laya.Image = new Laya.Image(); img.skin = "res/GameBG2.jpg" this.pan...
来源: Laya_社区 发布时间: 20180529
...tainer:Sprite; private var gameContainer:Sprite; public function KouTu() { super(); //绘制一个蓝色方块,不被抠图 gameContainer = new Sprite(); gameContainer.loadImage("crazy_snowball.png", 0, 0, 600, 400); addChild(gameContainer); // 引导所在容器 guideContainer = new Sprite(); // ...
来源: Laya_社区 发布时间: 20170315
...laya.events.Event; // 创建TestPageUI的子类 function TestUI() { TestUI.super(this); //list赋值,先获得一个数据源数组 var arr = ; for (var i = 0; i < 100; i++) { arr.push({label: "item " + i, clip: i % 9,btn:"btn"+i}); } //给list赋值更改list的显示 this.list.array = arr; //...
来源: Laya_社区 发布时间: 20170513
...不一样的。你这样调整下就行了: function showui() { showui.super(this); var arr2 = new Array(); arr2.push(this.dimg); this.dimg.on(Laya.Event.CLICK, this,apeclick2, arr2); } function apeclick2(that) { console.log("apeclick sucess"); that.skin = "../img/5.jpg"; console.log(that); that.z...
来源: Laya_社区 发布时间: 20170217
...Ui extends Sprite { private var testPan:Sprite; public function MainUi() { super(); this.graphics.drawRect(0,0,500,500,"#fff0cc"); testPan = new Sprite(); testPan.name = "testPan"; this.addChild( testPan ); testPan.pos( 300,300); testPan.graphics.drawRect(0,0,90,100,"#faaff0"); testPan.on(Event.CLIC...
来源: Laya_社区 发布时间: 20161124