大约有 99 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0041 秒)
...void { this.view.box_mark.graphics.drawPie(216, 216, 216, -90, (-90 + Math.floor(percent * 360)), "#ff0000"); //画进度 let point: { x: number, y: number, hudu: number } = this.cal(216, 216, 205, Math.abs(Math.floor(percent * 360) ) - 90); //现在是顺时针,如果逆时针旋转 Math.abs(Math...
来源: Laya_社区 发布时间: 20190629
..._path_radians = Math.PI / 180 * this._path_angle ; this._tail_pos.x = Math.floor( this._head_pos.x + this._path_length * Math.cos( this._path_radians ) ); this._tail_pos.y = Math.floor( this._head_pos.y + this._path_length * Math.sin( this._path_radians ) ); // // 确保路径的终点不能超出...
来源: Laya_社区 发布时间: 20180515
...value += 0.05; } function onChange(value) { console.log("进度:" + Math.floor(value * 100) + "%"); } })();module laya { import Stage = Laya.Stage; import ProgressBar = Laya.ProgressBar; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ProgressBar { private progressBar: Pr...
来源: Laya_示例 发布时间: 20260303
...位。 旋转代码: var _rotateLeft = new Laya.Vector3(0, 1, 0); floor.transform.rotate(_rotateLeft, true, false); 或者 floor.transform.rotate(_rotateLeft, false, false); 2018-08-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20180822
...gressBar.value += 0.05; } onChange(value) { console.log("进度:" + Math.floor(value * 100) + "%"); } } new UI_ProgressBar();module laya { import Stage = Laya.Stage; import ProgressBar = Laya.ProgressBar; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ProgressBar { priva...
来源: Laya2.0_示例 发布时间: 20260303
...啊 public onChange(value: number): void { console.log("进度:" + Math.floor(value * 100) + "%"); var num:number = Math.floor(value*100); // this.updateFont(num); this.updateFont(100); //test用 // if(num==100){ // G.I.loginManager.preload(); // } } private hbox:Laya.HBox; private updateFont(valu...
来源: Laya_社区 发布时间: 20180615
...width != 640) { var ratio:Number = width / 640; width = 640; height = Math.floor(height / ratio); } if (height > 1280) height = 1280; else if (height < 960) height = 960;*/ var browerRatio:Number = width / height ; if( height != 1136 ) { // w 640 // h 1136 var ratioW:Number = height / 1136 ; h...
来源: Laya_社区 发布时间: 20170828
...val:int = 1 / animator.cacheFrameRate; //总帧数 var endFrame:int = Math.floor(maxTime / frameInterval); //计算开始帧 var startFrame:int = Math.floor(endFrame * (1 - percent)); animator.addClip(totalAnimationClip,"runShoot",startFrame); animator.on(Event.STOPPED, this, this.removeClip); anima...
来源: Laya_社区 发布时间: 20180725
...ansform.rotate(new Vector3(-30, 0, 0), true, false); //添加地板 var floor:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createPlane(10, 2000, 100, 100))) as MeshSprite3D; //给地板添加物理组件 var floorCollicar:PhysicsCollider = floor.addComponent(PhysicsCollider); // ...
来源: Laya_社区 发布时间: 20190417
...的关数 = [1,2,3,4,5,6,7]; if(第一关过关了){ var 随机数 = Math.floor(Math.random() * 未过的关数.length; var 新的未过的关数 = []; var 剩下关数 = 未过的关数.length - 1; for(var i =0;i<剩下关数;i++){ if(i != 随机数){ 新的未过的关数.push(未过的关数[i...
来源: Laya_社区 发布时间: 20180615