• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 6 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0018 秒)

1. 输入设备-地图 [ 100%]

...ClickZoom(); map.disablePinchToZoom(); // 初始地点北京,缩放系数15 map.centerAndZoom(new BMap.Point(116.32715863448607, 39.990912172420714), 15); // 创建标注物 marker = new BMap.Marker(new BMap.Point(0,0)); map.addOverlay(marker); let label = new BMap.Label("当前位置", { offset: ...

来源: Laya2.0_示例 发布时间: 20240929

2. UI-TextArea [ 91%]

...rial"; ta.fontSize = 18; ta.bold = true; ta.color = "#3d3d3d"; ta.pos(100, 15); ta.size(375, 355); ta.padding = "70,8,8,8"; Laya.stage.addChild(ta); } } new UI_TextArea();module laya { import Stage = Laya.Stage; import TextArea = Laya.TextArea; import Browser = Laya.Browser; import Handler = Laya.Ha...

来源: Laya2.0_示例 发布时间: 20240929

3. DOM元素-表单输入 [ 80%]

... Laya.Text(); t.height = this.rowHeight; t.valign = "middle"; t.fontSize = 15; t.font = "SimHei"; t.text = label; t.pos(x, y); this.form.addChild(t); } createInputElement(){ let input = Laya.Browser.createElement("input"); input.style.zIndex = Laya.Render.canvas.zIndex + 1; input.style.width = "100p...

来源: Laya2.0_示例 发布时间: 20240929

4. 加载-销毁Texture使用的图片资源 [ 76%]

...57AFB"); this.txt = new Text(); this.txt.text = "销毁"; this.txt.pos(75, 15); this.txt.fontSize = 25; this.txt.color = "#FF0000"; this.btn.addChild(this.txt); this.btn.pos(20, 160); Laya.stage.addChild(this.btn); //添加侦听 this.btn.on(Event.MOUSE_UP, this, this.onMouseUp); } /** * 鼠标事...

来源: Laya2.0_示例 发布时间: 20240929

5. 2D物理-仿生机器人 [ 24%]

...1 * s * this.scale, 8 * -1 * this.scale]; const p5 = [60 * s * this.scale, 15 * -1 * this.scale]; const p6 = [25 * s * this.scale, 37 * -1 * this.scale]; let leg1 = new Sprite(); leg1.pos(this.pos[0] + this.m_offset[0], this.pos[1] + this.m_offset[1] + 16 * this.scale); // TODO 这里的数值待优...

来源: Laya2.0_示例 发布时间: 20240929

6. UI-RefreshList [ 19%]

...HotText.pos(11.5, 9); this.redHotText.width = 14; this.redHotText.height = 15; // 列表item标题 this.LmsgTitle = new Label(); this.LmsgTitle.text = "测试标题"; this.addChild(this.LmsgTitle); this.LmsgTitle.font = "Microsoft YaHei"; this.LmsgTitle.fontSize = 22; this.LmsgTitle.color = "#000000...

来源: Laya2.0_示例 发布时间: 20240929