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

大约有 726 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0058 秒)

561. UI-ComboBox [ 47%]

...ion onSelect(cb) { console.log("选中了: " + cb.selectedLabel); } })();module laya { import Stage = Laya.Stage; import ComboBox = Laya.ComboBox; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ComboBox { private skin: string = "../../res/ui/combobox.png"; constructor() ...

来源: Laya_示例 发布时间: 20260303

562. 文本-位图字体 [ 47%]

... 1, Laya.stage.height - txt.height >> 1); Laya.stage.addChild(txt); } })();module laya { import BitmapFont = Laya.BitmapFont; import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Text_BitmapFont { pr...

来源: Laya_示例 发布时间: 20260303

563. 文本-复杂的文本样式 [ 47%]

...(Laya.stage.height - txt.textHeight) / 2; Laya.stage.addChild(txt); } })();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_ComplexStyle { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(...

来源: Laya_示例 发布时间: 20260303

564. new Laya.Templet() 时,说这不是一个constructor [ 47%]

.../mylaya/myLaya/bin/js/bundle.js:10103:28)   at Object.47.../bin/libs/node_modules/es6-promise (file:///D:/layaProjects/mylaya/myLaya/bin/js/bundle.js:10551:1)   at o (file:///D:/layaProjects/mylaya/myLaya/bin/js/bundle.js:11:265)   at r (file:///D:/layaProjects/mylaya/myLaya/bin/js/bundle.js:11:4...

来源: Laya_社区 发布时间: 20181023

565. 性能测试-虫子(慎入) [ 47%]

... wb.y + wb.height) y -= wb.height; maggot.pos(x, y); } tick += 0.1; } })();module laya { import Sprite = Laya.Sprite; import Browser = Laya.Browser; import Handler = Laya.Handler; import Stat = Laya.Stat; import Rectangle = Laya.Rectangle; import WebGL = Laya.WebGL; export class PerformanceTest_Magg...

来源: Laya_示例 发布时间: 20260303

566. 滤镜-发光滤镜 [ 47%]

...合为发光滤镜 this.ape.filters = [glowFilter]; } } new Filters_Glow();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import GlowFilter = Laya.GlowFilter; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL...

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

567. Sprite-显示图片 [ 47%]

....graphics.drawTexture(monkey2, 100, 0); })); } } new Sprite_DisplayImage();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Sprite_DisplayImage { ...

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

568. sound manager在MOUSE_OVER事件中无法播放 [ 47%]

...可以做到鼠标移入按钮后播放一个音效,求解决方案。 module laya {     import Sprite = Laya.Sprite;     import Stage = Laya.Stage;     import Text = Laya.Text;     import Event = Laya.Event;     import SoundManager = Laya.SoundManager;    ...

来源: Laya_社区 发布时间: 20201203

569. 微信小游戏引用spine-core-3.8.js报错 [ 47%]

...ding(env: Windows,mg,1.05.2204264; lib: 2.17.0)   VM84 WAGame.js:2 Error: module "libs/spine-core-3.8.js" is not defined     at require (VM97 WAGameSubContext.js:2)     at a (VM97 WAGameSubContext.js:2)     at index.js? [sm]:28     at require (VM97 WAGameSubContext.js:2)     at a (VM...

来源: Laya_社区 发布时间: 20220531

570. UI-ProgressBar [ 46%]

...(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: ProgressBar; constructor() { // 不...

来源: Laya_示例 发布时间: 20260303