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

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

1. runTime使用(TypeScript-IDE篇(TS)-组件化开发相关) [ 100%]

...``typescript /* ImageRunTime逻辑类 */ export default class ImageRunTime extends Laya.Image{ public scaleTime:number = 100; constructor() { super(); //设置组件的中心点 this.anchorX = this.anchorY = 0.5; //添加鼠标按下事件侦听。按时时缩小按钮。 this.on(Laya.Event.MOUSE_DO...

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

2. runTime使用(JavaScript-IDE篇(JS)-组件化开发相关) [ 99%]

...部代码如下所示: ```typescript export default class ImageRunTime extends Laya.Image{ constructor(){ super(); this.scaleTime = 100; //设置组件的中心点 this.anchorX = this.anchorY = 0.5; //添加鼠标按下事件侦听。按时时缩小按钮。 this.on(Laya.Event.MOUSE_DOWN,this,this...

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

3. runTime使用(ActionScript-IDE篇(AS3)-组件化开发相关) [ 98%]

...** *ImageRunTime逻辑类 * @author mengjia * */ public class ImageRunTime extends Image { //缩放时间100毫秒 public var scaleTime:int = 100; public function ImageRunTime() { //设置组件的中心点 this.anchorX = this.anchorY = 0.5; //添加鼠标按下事件侦听。按时时缩小按钮...

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

4. 预设/场景的导出(TypeScript-3D基础(TS)-LayaAir3D之3D场景可视化编辑) [ 89%]

...脚本方式实现,比如子弹脚本。 */ export default class GameUI extends ui.test.TestSceneUI { constructor(){ super(); //加载场景 Laya.Scene3D.load('LayaScene_test/Conventional/test.ls',Laya.Handler.create(this,this.onComplete)); } /** * 加载完成 */ private onComplete(scene:Laya.Sce...

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

5. 预设/场景的导出(ActionScript-3D基础(AS3)-LayaAir3D之3D场景可视化编辑) [ 79%]

...独立小模块,功能单一,建议用脚本方 */ public class GameUI extends TestSceneUI { public function GameUI():void { super(); //加载场景 Scene3D.load('LayaScene_test/Conventional/test.ls',Handler.create(this,onComplete)) } /** * 加载完成 */ private function onComplete(scene:Scene...

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

6. List属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 78%]

...+ index); } } import Box = Laya.Box; import Image = Laya.Image; class Item extends Box { public static WID: number = 373; public static HEI: number = 85; private img: Image; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img = new Image(); this.addChild(this.img); } public setImg(src: s...

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

7. List属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 77%]

...格类,继承于Box import laya.ui.Box; import laya.ui.Image; class Item extends Box { /***单元格宽***/ public static var WID:int = 375; /***单元格高***/ public static var HEI:int = 85; /***单元格中图片***/ public var img:Image; public function Item() { //设置大小宽高 size(WID,...

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

8. 位图字体的制作与使用(TypeScript-LayaAir基础篇(TS)-文本) [ 74%]

.../layaMaxUI"; //继承BitmapFont的ui场景类 export default class AllText extends ui.examples.text.BitmapFontUI { //给自己注册的字体起个名 private fontName: string = "diyFont"; constructor() {super();} onAwake(): void { //加载位位图字体 this.loadBitmapFont(); } /** * 实例化位...

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

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

..."Box", "props": {"name": "render", "right": "0", "left": "0"}}; class Item extends Box { constructor() { super(); this.right = 0; this.left = 0; var selectBox: Clip = new Clip("res/ui/tree/clip_selectBox.png", 1, 2); selectBox.name = "selectBox";//设置 selectBox 的name 为“selectBox”时,将...

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

10. Tree属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 69%]

...ght": "0", "left": "0"}}; /****树形结构中的单元格****/ class Item extends Box { public function Item() { //实例“文件夹”背景切片对象 var selectBox:Clip = new Clip("../../../../res/ui/tree/clip_selectBox.png", 1, 2); //设置 selectBox 的name 为“selectBox”时,将被识...

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