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

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

231. UI-Slider [ 71%]

... = Laya.VSlider; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Slider { 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_...

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

232. 位图字体的制作与使用(ActionScript-LayaAir基础篇(AS3)-文本) [ 71%]

...63538965101975.png) ​ 6.设置导出样式,选择菜单栏的 Options->Export Options ,打开Export Options 设置导出选项,设置完毕后点击OK按钮保存。 ​ Padding:文字的内边框,或者理解为文字的周边留空要多大。做后期样式时这个属性很重要,...

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

233. 鼠标交互-Hold [ 71%]

...dler = Laya.Handler; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class Interaction_Hold { private HOLD_TRIGGER_TIME: number = 1000; private apePath: string = "../../res/apes/monkey2.png"; //触发hold事件时间为1秒 private ape: Sprite; private isApeHold: Boolean; constructor() ...

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

234. UI-Label [ 71%]

... 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_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_...

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

235. 【Laya2.1BUG】 给view设置runtime后,类型是any [ 71%]

...tCodeLines=tCode.split("\n"); tStr=tCodeLines.shift(); while(tStr.indexOf("export module")<0){ tStr=StringTool.trimSide(tStr); if(preStr.indexOf(tStr)<0){ preStr+=tStr+"\n"; } tStr=tCodeLines.shift(); } if(i==0){ tCodeLines.splice(0,0,tStr); } if(i!=len-1){ tStr=tCodeLines.pop(); while(tStr.in...

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

236. 加载TiledMap 不显示 [ 71%]

...ctangle; import Handler = Laya.Handler; import WebGL = Laya.WebGL;  export class TiledMap_IsometricWorld {     private tiledMap: TiledMap;     private layer: MapLayer;     private sprite: Sprite;      constructor ()     {         // 不支持WebGL时自...

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

237. 鼠标交互-Hold [ 71%]

...dler = Laya.Handler; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class Interaction_Hold { private HOLD_TRIGGER_TIME: number = 1000; private apePath: string = "res/apes/monkey2.png"; //触发hold事件时间为1秒 private ape: Sprite; private isApeHold: Boolean; constructor() { // ...

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

238. 区块地图-滚动地图 [ 71%]

...andler = Laya.Handler; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class TiledMap_SimpleDemo { private tiledMap: TiledMap; private mLastMouseX: number = 0; private mLastMouseY: number = 0; private mX: number = 0; private mY: number = 0; constructor() { // 不支持WebGL时自动切换...

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

239. UI-Slider [ 71%]

... = Laya.VSlider; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Slider { 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_...

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

240. 屏幕适配-对齐模式 [ 71%]

...e.bgColor = "#232628"; })(); })();module laya { import Stage = Laya.Stage; export class SmartScale_Align_Contral { constructor() { Laya.init(100, 100); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.bgColor = "#2...

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