大约有 1,738 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0065 秒)
Laya_社区(1124) Laya3.0_api(223) Laya2.0_文档(89) Laya2.0_api(72) Laya2.0_示例(66) Laya_示例(63) laya_api(62) Laya3.0_文档(39)
...Point; // 程序入口 class GameMain{ constructor() { Laya.init(Browser.width, Browser.height, WebGL); this.CreateCircle(); // this.CreateRectangle(); } private firstSp: Laya.Sprite; private _adaptSp: Laya.Sprite; private _pointList : Point[]; private _rootSp : Laya.Sprite; public CreateCircle(...
来源: Laya_社区 发布时间: 20190314
...ssvalue.anchorY = 0.5; this.progressvalue.pos(15, 15); //记录宽度 this.width_x = this.progress.width + 3; this.vmask = new Laya.Sprite(); this.vmask.pos(15,15); this.vmask.graphics.drawPie(0, 0, 20, -90, 270, "#000000"); this.progress.addChild(this.progressvalue); this.progressvalue.mask = th...
来源: Laya_社区 发布时间: 20180725
...这个也是最快捷方便的一个方法了(本来使用Laya。stage.width,发现,发现只要尺寸变换就要从新获取比较麻烦) 2018-07-24 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 设置 宽高等于 Laya.stage.width, height 2018-07-23 0 1 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20180723
...xture的x位置。 * @param y 相对于目标Texture的y位置。 * @param width 截取的宽度。 * @param height 截取的高度。 * @return 返回一个新的Texture。 */ public static function createFromTexture(texture:Texture, x:Number, y:Number, width:Number, height:Number):Texture 这个...
来源: Laya_社区 发布时间: 20180110
...aya.Browser.createElement('canvas'); //设置大小 canvas.width = Laya.stage.width; canvas.height = Laya.stage.height; ctx = canvas.getContext('2d'); Laya.stage.graphics.clear(false);//清空绘制命令。 var textture = new Laya.Texture(canvas); ...
来源: Laya_社区 发布时间: 20190411
...n(0,-(Math.max(0,m_info.ability.mExp / m_info.ability.mMaxExp)*m_mcExpMask.width)) : -m_mcExpMask.width; 经验条动态设置遮罩,用X轴来做移动可以实现经验条的遮罩效果,而用scaleX来设置怎么设置,动态附值怎么也改变不了。只默认第一次设置的值...
来源: Laya_社区 发布时间: 20170412
...hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColor blendMode bottom cacheAs centerX centerY components content customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCall...
来源: Laya3.0_api 发布时间: 20231115
...lider() { var hs = new HSlider(); hs.skin = "../../res/ui/hslider.png"; hs.width = 300; hs.pos(50, 170); hs.min = 0; hs.max = 100; hs.value = 50; hs.tick = 1; hs.changeHandler = new Handler(this, onChange); Laya.stage.addChild(hs); } function placeVSlider() { var vs = new VSlider(); vs.skin = "../.....
来源: Laya_示例 发布时间: 20241001
...么,获取界面组件的宽高吗,你可以试下用getBounds().width去获取试试! 2017-07-20 0 5 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 peterz3g 相关问题 两个对象new了一个相同的对象,调用第一个的...
来源: Laya_社区 发布时间: 20170720
...nt; var rect = new Laya.Sprite(); rect.graphics.drawRect(0, 0, this.contentWidth, this.contentHeight, "#000000"); content.hitArea = new Laya.HitArea(); content.hitArea.hit = rect.graphics; } 然后分别在panel的“setContentSize”和“changeScroll”方法的最后一行添加 this.setContent...
来源: Laya_社区 发布时间: 20170610