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

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

31. 请问如何获取某组件的像素坐标 [ 77%]

...添加了vbox,里面含有N个hbox,在其中一个hbox里含有一个button,请问我如何获取这个button的像素点坐标,需要它的像素x、y、宽度、高度,如果用localToGlobal,好像获取得的是这个button相对stage的逻辑位置(或者是叫设计时的位置?...

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

32. 1.70beta Dialog增加动画后第二次执行popup不显示弹窗 [ 77%]

... 微信 a694284699 赞同来自: (function() { var Stage = Laya.Stage; var Button = Laya.Button; var Dialog = Laya.Dialog; var Image = Laya.Image; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var DIALOG_WIDTH = 220; var DIALOG_HEIGHT = 275; var CLOSE_BTN_WIDTH = 43; var CLOSE_BTN_PADDING = 5;...

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

33. 请问老师为什么我按照官网的实例播放音频没反应呢? [ 77%]

...up() { var gap = 10; //创建一个Sprite充当音效播放按钮 var soundButton = createButton("播放音效"); soundButton.x = (Laya.stage.width - soundButton.width * 2 + gap) / 2; soundButton.y = (Laya.stage.height - soundButton.height) / 2; Laya.stage.addChild(soundButton); //创建一个Sprite...

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

34. loadImage加载图片不会清掉原图 [ 77%]

loadImage加载图片不会清掉原图 用button调用loadImage加载图片,新加载的图片出来之后旧图也依然在并且覆盖在新图的上面,且button原本的状态切换失效,用skin则没这类问题,请问有人知道这是什么情况吗? 附件 : --> BugTest.zip 2022...

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

35. laya.ui.Button_API3.0 [ 76%]

...blic/Protected All Inherited Externals Only exported Menu Globals "laya/ui/Button" Button Class Button Button 组件用来表示常用的多态按钮。 Button 组件可显示文本标签、图标或同时显示两者。 * 可以是单态,两态和三态,默认三态(up,over,down)。 example 以...

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

36. 点击的按钮,变成红色字体,怎么写? [ 76%]

点击的按钮,变成红色字体,怎么写? button001.on(Laya.Event.MOUSE_DOWN, this, function (e) { //点击的按钮变成红色字体???? }); 2018-04-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个...

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

37. ttf 字体底部被切割 [ 75%]

... 没有背景图片的字更加的糊 请问大佬有没有解决的办法 Button control 的skin图片如何切割? 位图字体怎么用UI提供的图片制作 问题状态 最新活动: 2020-01-08 17:00 浏览: 1185 关注: 3 人 Laya_Aaron • 2018-06-15 14:08 字体本身有没有问题? ...

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

38. laya.ui.CheckBox_API3.0 [ 75%]

...出选中状态: checkBox.selected = " + checkBox.selected); } } Hierarchy Button CheckBox Implements ISelect Index Constructors constructor Properties _extra _graphics _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag toggle drawtocanvCtx Accessors _isHeightSet _isWi...

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

39. laya.ui.Radio_API3.0 [ 75%]

...该组中当前所选的 Radio 控件。 see laya.ui.RadioGroup Hierarchy Button Radio Implements ISelect Index Constructors constructor Properties _extra _graphics _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag toggle drawtocanvCtx Accessors _isHeightSet _isWidthS...

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

40. tilemap支不支持ObjectLayer(tiled编辑器)? [ 74%]

...己的ttf字体文件? ui编辑器编辑了一个面板,面板里有个button, 编辑好以后,正常加载ui 面板,button的图片资源没找到,导致button无法正常显示 问题状态 最新活动: 2019-03-12 11:56 浏览: 1255 关注: 2 人

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