大约有 850 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0046 秒)
Laya_社区(460) Laya3.0_api(77) laya_api(70) Laya2.0_api(64) Laya3.0_文档(53) Laya2.0_文档(50) Laya2.0_示例(39) Laya_示例(37)
...数 jsvm_value fnInitSteam; jsvm_create_function(env, "initializeSteam", SIZE_MAX, jsInitializeSteam, nullptr, &fnInitSteam); jsvm_set_named_property(env, exp, "initializeSteam", fnInitSteam); } } 2.2 生成动态链接库 生成动态链接库与其使用的方法可以参考Windows扩展文档...
来源: Laya3.0_文档 发布时间: 20251010
...mal; font-variant: normal; font-weight: normal; font-stretch: normal; font-size: 25px; line-height: normal; font-family: Arial;">1</div></div> 这样的,还会报错Uncaught RangeError: Maximum call stack size exceeded at CanvasRenderingContext2D.__proto.fillText (dsgame.max.j...
来源: Laya_社区 发布时间: 20170322
...: var div=Laya.HTMLCanvas.create=new HTMLCanvas("2D"); div.size(600,400); Laya.stage.addChild(div); console.log(div); var myChart = echarts.init(div.getCanvas()); // 指定图表的配置项和数据 var option = { title: { text: 'ECharts 入门示例' }, tooltip:...
来源: Laya_社区 发布时间: 20180626
...交 2 个回复 cuixueying 赞同来自: 控制panel的vScrollBar的scrollSize即可! 2017-07-19 0 6 分享 微博 QZONE 微信 cuixueying 赞同来自: package { import laya.display.Sprite; import laya.net.Loader; import laya.ui.Panel; import laya.utils.Handler; public class LayaAirDemo { public ...
来源: Laya_社区 发布时间: 20170719
...exture repeat : Boolean 是否使用重复模式纹理寻址 BaseTexture size : Size[read-only] 获取尺寸。 BaseTexture source : *[override] [read-only] 获取RenderTarget数据源,如果alreadyResolved等于false,则返回null。 RenderTexture surfaceFormat : int[read-only] 获取表...
来源: laya_api 发布时间: 20170929
...at_lab = new Laya.HTMLDivElement(); this.chat_lab.pos(2, 2); this.chat_lab.size(495,329); this.rect_sprite.addChild(this.chat_lab); .... //输入了一大堆聊天记录后,内容超过了329px,虽然限高height:329px;并加入了overflow-y:scroll;,但没有出现滚动条而且还漏了。 v...
来源: Laya_社区 发布时间: 20210121
...e(); var w = 300, h = 300; sp.graphics.drawRect(0, 0, w, h, "#FF7F50"); sp.size(w, h); sp.pivot(w / 2, h / 2); sp.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.stage.addChild(sp); sp.on(Event.MOUSE_DOWN, this, onMouseDown); } function onMouseDown(e) { var touches = e.touches; if (touches &&...
来源: Laya_示例 发布时间: 20251209
...按钮 btn.graphics.drawRect(0,0,150,30,'#FF0000'); btn.pos(10,430); btn.size(150,30);//sprite如果要触发鼠标事件,务必设置好size,也就是鼠标的相应区域 btn.on(Event.CLICK,this,onChangeSkin); Laya.stage.addChild(btn); var text:Text=new Text(); text.text='切换皮肤'; text.f...
来源: Laya_社区 发布时间: 20170324
...on = new Sprite(); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.size(w, h); button.graphics.fillText(label, w / 2, 17, "20px simHei", "#ffffff", "center"); return button; } function onDecreaseAlpha1(e) { //移除鼠标单击事件 button1.off(Event.CLICK, this, onDecreaseAlpha1); //定时...
来源: Laya_示例 发布时间: 20251209
...dChild(this.sp); this.sp.graphics.drawRect(0, 0, w, h, "#FF7F50"); this.sp.size(w, h); this.sp.pivot(w / 2, h / 2); this.sp.pos(Laya.stage.width / 2, Laya.stage.height / 2); this.sp.on(Event.MOUSE_DOWN, this, this.onMouseDown); } onMouseDown(e) { const Event = Laya.Event; // 手机上才有 touches ...
来源: Laya2.0_示例 发布时间: 20251209