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

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

311. 屏幕适配-缩放-No Border [ 75%]

...= Laya.stage.height / 2; } } new SmartScale_Scale_NOBORDER();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_NOBORDER { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_NOBORDER; Laya.stage.bgColor = "#2...

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

312. 屏幕适配-缩放-No Scale [ 75%]

... = Laya.stage.height / 2; } } new SmartScale_Scale_NOSCALE();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_NOSCALE { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232...

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

313. UI-Label [ 75%]

...okeColor; } Laya.stage.addChild(label); return label; } })();module laya { import Stage = Laya.Stage; import Label = Laya.Label; import WebGL = Laya.WebGL; export class UI_Label { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MI...

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

314. UI-Tab [ 75%]

...le.log("当前选择的标签页索引为 " + index); } })();module laya { import Stage = Laya.Stage; import Tab = Laya.Tab; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Tab { private skins: Array = ["../../res/ui/tab1.png", "../../res/ui/tab2.png"]; constructor(){ // ...

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

315. 屏幕适配-缩放-Extract Fit [ 75%]

...aya.stage.height / 2; } } new SmartScale_Scale_EXTRACT_FIT();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_EXTRACT_FIT { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_EXACTFIT; Laya.stage.bgColor = ...

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

316. 屏幕适配-缩放-Show All [ 75%]

...= Laya.stage.height / 2; } } new SmartScale_Scale_SHOW_ALL();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_SHOW_ALL { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#23...

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

317. 缓动-缓动函数演示 [ 75%]

...{ this.label.text = value; } } new Tween_EaseFunctionsDemo();module laya { import Input = Laya.Input; import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import List = Laya.List; import Browser = Laya.Browser; import Ease = Laya.Ease; import Ha...

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

318. 缓动-缓动函数演示 [ 75%]

...y - 3); input.inputElementYAdjuster = 1; return input } })();module laya { import Input = Laya.Input; import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import List = Laya.List; import Browser = Laya.Browser; import Ease = Laya.Ease; import Ha...

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

319. UI-Tab [ 75%]

...前选择的标签页索引为 " + index); } } new UI_Tab();module laya { import Stage = Laya.Stage; import Tab = Laya.Tab; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Tab { private skins: Array = ["res/ui/tab1.png", "res/ui/tab2.png"]; constructor(){ // 不支持WebGL...

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

320. DOM元素-视频 [ 75%]

..., 0, 0, reference.width, reference.height]); } } new DOM_Video();package { import laya.display.Sprite; import laya.display.Stage; import laya.events.Event; import laya.renders.Render; import laya.utils.Browser; import laya.utils.Utils; /** * ... * @author */ public class DOM_Video { public function ...

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