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

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

941. Tree属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 51%]

...dler = Laya.Handler; import WebGL = Laya.WebGL; import Utils = Laya.Utils; export class UI_Tree { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_S...

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

942. Sprite-新手引导 [ 51%]

...ge = Laya.Stage; import HitArea = Laya.HitArea; import WebGL = Laya.WebGL; export class Sprite_Guide { private red:Sprite; private guideContainer:Sprite; private tipContainer:Sprite; private guideSteps:Array = [ { x: 151, y: 575, radius:150, tip:"../../res/guide/help6.png", tipx:200, tipy:250 }, { x...

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

943. UI-Clip [ 51%]

...ge = Laya.Image; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Clip { private buttonSkin: string = "../../res/ui/button-7.png"; private clipSkin: string = "../../res/ui/num0-9.png"; private bgSkin: string = "../../res/ui/coutDown.png"; private counter: Clip; private currF...

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

944. 输入设备-地图 [ 51%]

...ocationInfo; import Browser = Laya.Browser; import Handler = Laya.Handler; export class InputDevice_Map { // 百度地图 private map; private marker; private BMap = Browser.window.BMap; private convertor = new this.BMap.Convertor(); // Div private mapDiv; private infoText:Text; constructor() { Laya...

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

945. 鼠标交互-修正交互区域 [ 51%]

...nt = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Interaction_FixInteractiveRegion { private logger: Text; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDD...

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

946. laya.resource.Prefab_API3.0 [ 51%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/resource/HierarchyResource" Prefab Class Prefab Hierarchy Resource Prefab PrefabImpl Index Constructors constructor Properties _id destroyedImmediately lock name url uuid version DEBUG Accessors cp...

来源: Laya3.0_api 发布时间: 20231115

947. List翻页效果 [ 51%]

...onfigInfo from "../data/ConfigInfo"; import { ui } from "../ui/layaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new L...

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

948. 版本号:2.0.2 beta, 在sound文件夹下音乐播放不了,放入到res文件夹下可播放 [ 51%]

... = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export default class Test_11_Sound {  //声明一个信息文本 private txtInfo: Text;  constructor() { this.setup(); }  private setup(): void { var gap: number = 10;  //创建一个Sprite充当音效播放按钮 var sou...

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

949. 仿照laya官方demo做了一个视频播放的UI,为啥在微信里不能用? [ 51%]

...回事?代码如下:   /**Created by the LayaAirIDE*/ module view { export class Guide extends ui.GuideUI { constructor() { super(); // 创建Video元素 let videoElmt: any = Laya.Browser.createElement("video"); Laya.Browser.document.body.appendChild(videoElmt); // 设置Video元素地样式和...

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

950. 颜色滤镜 差值变化 [ 51%]

...* leo */ module touch {     /**      * 颜色工具类      */ export class ColorTool { private _targetsValue: number = 16777215; private _targetsLastValue: number = null; private targets: Array<Laya.Sprite> = null; public static instance: ColorTool = null; private targetsFilter: L...

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