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

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

561. 文本-复杂的文本样式 [ 45%]

...(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_示例 发布时间: 20241001

562. sound manager在MOUSE_OVER事件中无法播放 [ 45%]

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

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

563. 性能测试-虫子(慎入) [ 45%]

... 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_示例 发布时间: 20241001

564. 滤镜-发光滤镜 [ 45%]

...合为发光滤镜 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_示例 发布时间: 20241001

565. Sprite-显示图片 [ 45%]

....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_示例 发布时间: 20241001

566. 2.0 Beta3版本中,runtime脚本的的问题 [ 45%]

...View=Laya.View; import Dialog=Laya.Dialog; import Scene=Laya.Scene; export module ui { export class BGPageUI extends View { constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("BGPage"); } } export class MonkeyPageUI extends View { constructor(){ super()} createChi...

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

567. UI-ProgressBar [ 45%]

...(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_示例 发布时间: 20241001

568. ComboBox属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 45%]

...设置ComboBox,创建出符合自己需要的下拉框。 ```javascript 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() { // ...

来源: Laya2.0_文档 发布时间: 20210715

569. 文本-复杂的文本样式 [ 45%]

....y = (Laya.stage.height - txt.textHeight) / 2; } } new Text_ComplexStyle();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(...

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

570. UI-ComboBox [ 45%]

...) { console.log("选中了: " + cb.selectedLabel); } } new UI_ComboBox();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() { // ...

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