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

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

1. UI-Tree [ 100%]

...pe": "Clip", "props": {"x": "13", "y": "0", "left": "12", "height": "24", "name": "selectBox", "skin": "ui/clip_selectBox.png", "right": "0", "clipY": "2"}}, {"type": "Clip", "props": {"y": "4", "x": "14", "name": "folder", "clipX": "1", "skin": "ui/clip_tree_folder.png", "clipY": "3"}}, {"type": "L...

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

2. Sprite-屏幕截图 [ 96%]

...ng", "res/threeDimen/ui/button.png", "res/threeDimen/ui/button.png"]; this.nameArr = ["canvas截图","sprite截图","清理"]; this._canvas = null; this.aimSp = null; this.drawImage = null; this.drawSp = null; this.monkeyTexture = null; // 不支持WebGL时自动切换至Canvas Config.preserveDrawin...

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

3. 鼠标交互-修正交互区域 [ 92%]

...DeepSkyblueRect(); this.createDarkOrchidRect(); // 设置舞台 Laya.stage.name = "暗灰色舞台" Laya.stage.on(Event.MOUSE_DOWN, this, this.onDown); } createCoralRect() { const Sprite = Laya.Sprite, Event = Laya.Event; let coralRect = new Sprite(); coralRect.graphics.drawRect(0, 0, Laya.stage.wid...

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

4. UI-Dialog [ 81%]

...ssets[0]); dialog.addChild(bg); let button = new Button(assets[1]); button.name = Dialog.CLOSE; button.pos(DIALOG_WIDTH - CLOSE_BTN_WIDTH - CLOSE_BTN_PADDING, CLOSE_BTN_PADDING); dialog.addChild(button); dialog.dragArea = "0,0," + DIALOG_WIDTH + "," + DIALOG_HEIGHT; dialog.show(); } } new UI_Dialog(...

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

5. UI-RefreshList [ 80%]

...格索引 */ /** * 处理列表刷新数据时的限制 * @paramthis.eventName = null; 要侦听的事件名 * @paramthis.moveLimit = null; 移动距离的上限,达到上限后才会抛出要侦听的事件 * @paramthis.distance = null; 相对布局,位于父节点的距离 * @paramthis.time = ...

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

6. 骨骼动画-Spine事件 [ 79%]

...belSprite.pos(mStartX, mStartY); mLabelSprite.graphics.fillText(tEventData.name, 0, 0, "20px Arial", "#ff0000", "center"); Tween.to(mLabelSprite, { y: mStartY - 200 }, 1000, null, Handler.create(this, this.playEnd)) } playEnd() { mLabelSprite.removeSelf(); } } new Skeleton_SpineEvent();module laya {...

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

7. 网络和格式-POST [ 69%]

...Error); hr.send('http://xkxz.zhonghao.huo.inner.layabox.com/api/getData', 'name=myname&psword=xxx', 'post', 'text'); } showLogger() { const Text = Laya.Text; logger = new Text(); logger.fontSize = 30; logger.color = "#FFFFFF"; logger.align = 'center'; logger.valign = 'middle'; logger.size(Laya.stage...

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

8. 网络和格式-GET [ 69%]

...estError); hr.send('http://xkxz.zhonghao.huo.inner.layabox.com/api/getData?name=myname&psword=xxx', null, 'get', 'text'); } showLogger() { const Text = Laya.Text; logger = new Text(); logger.fontSize = 30; logger.color = "#FFFFFF"; logger.align = 'center'; logger.valign = 'middle'; logger.size(Laya....

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

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

...royed = true; this.txt.text = "恢复"; } } } new Loader_ClearTextureRes();namespace leo { import Sprite = laya.display.Sprite; import Animation = laya.display.Animation; import Text = laya.display.Text; import Stage = laya.display.Stage; import Browser = laya.utils.Browser; import Stat = laya.utils...

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