大约有 147 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0042 秒)
...文字的代码: /** * this class is a extension of texts with gradient color */ var effect; (function (effect) { var GradientText = (function (_super) { const style = { DEFAULT: "default", VERTICAL: "vertical", HORIZONTAL:...
来源: Laya_社区 发布时间: 20180824
设置Label的text后立即设置color,color不起作用 如题, 问题:文本还是白色 附件 : --> 新建文本文档.rar 2021-11-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cmxStar 赞同...
来源: Laya_社区 发布时间: 20211103
text.color 属性运行时候修改颜色没有变化 如图: 通过代码 text.color = ""; 修改颜色值但是显示颜色一直都是白色。 附件 : --> 2019-02-17 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...
来源: Laya_社区 发布时间: 20190217
...新划分文本 private underLineWidth = 0; //下划线长度 private underColor = ""; //下划线颜色 /** * 渲染文字 * @param begin * @param visibleLineCount */ renderText(begin, visibleLineCount) { var graphics = this.graphics; graphics.clear(true); var ctxFont = (this.italic ? "italic " : "...
来源: Laya_社区 发布时间: 20180417
位图字体是否可以设置color 位图字体是否可以设置color?比如: text.font="myfont"; text.color="red"; 2016-09-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 目前位...
来源: Laya_社区 发布时间: 20160927
...LDivElement = new HTMLDivElement(); text.style.lineHeight = 30; text.style.color = color; text.style.width = 500; text.style.align = "center"; text.style.weight = "bold"; text.innerHTML = "中华人民共和国"; text.filters = [new GlowFilter("#000", 4, 2, 2)]; text.x = (ClientConfig.displayWidth-t...
来源: Laya_社区 发布时间: 20170216
...0; Laya.Tween.to(letterText,{y:100,update:new Laya.Handler(this,this.changeColor,[letterText])},3000,Laya .Ease.backOut,Laya.Handler.create(this,this.onEaseComplete),1000,null,true); function onEaseComplete(){ console.log("ease complete"); } function changeColor(text){ console.log("update"); var c =...
来源: Laya_社区 发布时间: 20180620
...ext = new Text(); this.text.fontSize = 20; this.text.pos(12, 5); this.text.color = "#FF00FF"; this.text.zOrder = 1; this.addChild(this.text); this.setImg = function(data) { var aar=[[150,160],[10,80],[150,0],[300,80]]; this.text.text="房号:1000000\n底分:222222\n玩法:看牌抢庄" this.jushu = ...
来源: Laya_社区 发布时间: 20170920
...x() for(let i =0;i<1000;i++){ let t = new Laya.Text() t.text = 'test' t.color = '#ffffff' container.addChild(t) } Laya.stage.addChild(container)新建一个精灵 向其中插入1000个文字 内存快照变为10.5var WebGL = laya.webgl.WebGL; Laya.init(600, 400, WebGL); let container = new Laya....
来源: Laya_社区 发布时间: 20180728
...e; public function HtmlView1() { super(); // 文本样式一 str="<span color='blue' style=' font" + ":18px 华文琥珀' href='http://ask.layabox.com'>LayaBox</span>" + "<span color='white' style=' font:18px 华文琥珀'>邀请</span>" + "<span color='yellow' style=' fon...
来源: Laya_社区 发布时间: 20170107