大约有 8 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0035 秒)
... 2 个回复 cuixueying 赞同来自: 测试代码:package { import laya.display.BitmapFont; import laya.display.Sprite; import laya.display.Text; import laya.utils.Handler; public class GraphicCircle extends Sprite { private var mFontName:String="dataFont"; private var mBitmap:BitmapFont; public ...
来源: Laya_社区 发布时间: 20161116
...s.bold ? "bold " : "") + this.fontSize + "px " + (Browser.onIPhone ? (laya.display.Text._fontFamilyMap[this.font] || this.font) : this.font); Browser.context.font = ctxFont; var padding = this.padding; var startX = padding[3]; var textAlgin = "left"; var lineHeight = this.leading + this._charSize.he...
来源: Laya_社区 发布时间: 20180417
...应的LayaAirAs3_1.7.0_beta 文档类代码如下: package { import laya.display.Stage; import laya.display.Text; import laya.ui.Image; public class LayaSample { public function LayaSample() { //初始化引擎 Laya.init(1136, 640); Laya.stage.bgColor = "#235615"; //设置适配模式 Laya.stage.a...
来源: Laya_社区 发布时间: 20170228
...rue; Laya.stage.addChild(background); // 设定标题 var title = new laya.display.Text(); title.text = g_game_title; title.font = "Arial"; title.fontSize = 50; title.stroke = 2; title.strokeColor = "Black"; title.pos(g_stat_width / 2 - title.width / 2, 40); Laya.stage.addChild(title); // 设定版...
来源: Laya_社区 发布时间: 20160623
...proto.layout=function(){ if (!this.style)return; this.style._type |=/*laya.display.css.CSSStyle.ADDLAYOUTED*/0x200; var tArray=Layout.layout(this); if (tArray){ if (!this._$P.mHtmlBounds)this._set$P("mHtmlBounds",new Rectangle()); var tRectangle=this._$P.mHtmlBounds; tRectangle.x=tRectangl...
来源: Laya_社区 发布时间: 20180104
...defaultFont = "SimHei" Laya.init(600, 1200, WebGL); var txtName = new laya.display.Text(); txtName.fontSize = 20; txtName.color = "#ffffff"; txtName.align = "center"; txtName.stroke = 2; txtName.text = "设置全局字体无效"; Laya.stage.addChild(txtName); 2017-12-27 添加评论 免费帖 -->...
来源: Laya_社区 发布时间: 20171227
...字显示不全 代码demopackage { import laya.webgl.WebGL; import laya.display.Text; public class LayaSample { public function LayaSample() { //初始化引擎 Laya.init(480, 640,WebGL); Laya.stage.bgColor = "#FFFF33"; var txt:Text = new Text(); //给文本的text属性赋值 txt.text = "gggggqqqq...
来源: Laya_社区 发布时间: 20190606
...类型 Hp.HP_TYPE_SPEED = "hp_type_speed"; //Hp Laya.class(Hp,"Hp", laya.display.Sprite); var _proto = Hp.prototype; _proto.init = function(type){ this.width = 180; this.height = 21; var texture1 = Laya.loader.getRes("res/hp_bg.png"); var texture2; switch (type) { case Hp.HP_TYPE_ENERGY: texture2 = ...
来源: Laya_社区 发布时间: 20160803