|
@@ -5072,9 +5072,17 @@
|
|
|
this.firstPos = 385;
|
|
|
this.secondPos = 467;
|
|
|
this.showItemArr = [];
|
|
|
+ try {
|
|
|
+ Laya.loader.load("res/font/arial.fnt", Laya.Handler.create(this, this.onFontLoaded));
|
|
|
+ console.log("zh: constructor加载arial字体成功");
|
|
|
+ }
|
|
|
+ catch (error) {
|
|
|
+ console.log("zh: constructor加载arial字体失败");
|
|
|
+ }
|
|
|
}
|
|
|
onFontLoaded() {
|
|
|
try {
|
|
|
+ Laya.Text.defaultFont = "arial";
|
|
|
this.ui.myNode.conditionTxt.font = "arial";
|
|
|
console.log("zh: onFontLoaded 设置arial字体成功");
|
|
|
}
|
|
@@ -7147,6 +7155,7 @@
|
|
|
class UIFuli1 extends UIBase {
|
|
|
constructor() {
|
|
|
super();
|
|
|
+ this.jiage = 4.99;
|
|
|
}
|
|
|
onConstructor() {
|
|
|
this.ui = ui_UIFuli1.createInstance();
|
|
@@ -7159,6 +7168,7 @@
|
|
|
super.show();
|
|
|
this.x = (Laya.stage.width - this.width) / 2;
|
|
|
this.y = (Laya.stage.height - this.height) / 2;
|
|
|
+ this.ui.n2.txt_price.text = "$" + this.jiage;
|
|
|
}
|
|
|
closeSelf() {
|
|
|
DataMgr.loadUserSpOrderForAd();
|
|
@@ -7225,7 +7235,7 @@
|
|
|
}
|
|
|
onConstruct() {
|
|
|
this.n1 = (this.getChild("n1"));
|
|
|
- this.n0 = (this.getChild("n0"));
|
|
|
+ this.n2 = (this.getChild("n2"));
|
|
|
}
|
|
|
}
|
|
|
ui_UIFuli2.URL = "ui://isxx5ak7im8nv59o";
|
|
@@ -7233,18 +7243,20 @@
|
|
|
class UIFuli2 extends UIBase {
|
|
|
constructor() {
|
|
|
super();
|
|
|
+ this.jiage = 14.99;
|
|
|
}
|
|
|
onConstructor() {
|
|
|
this.ui = ui_UIFuli2.createInstance();
|
|
|
this.contentPane = this.ui;
|
|
|
this.isEject = false;
|
|
|
- this.addUIClick(this.ui.n0.n_buy, this.gotoBuy);
|
|
|
- this.addUIClick(this.ui.n0.n_no, this.closeSelf);
|
|
|
+ this.addUIClick(this.ui.n2.n_buy, this.gotoBuy);
|
|
|
+ this.addUIClick(this.ui.n2.n_no, this.closeSelf);
|
|
|
}
|
|
|
show() {
|
|
|
super.show();
|
|
|
this.x = (Laya.stage.width - this.width) / 2;
|
|
|
this.y = (Laya.stage.height - this.height) / 2;
|
|
|
+ this.ui.n2.txt_price.text = "$" + this.jiage;
|
|
|
}
|
|
|
closeSelf() {
|
|
|
DataMgr.loadUserSpOrderForAd();
|
|
@@ -17375,7 +17387,7 @@
|
|
|
init() {
|
|
|
this.setStage(Laya.stage);
|
|
|
fairygui.UIConfig.defaultFont = "微软雅黑";
|
|
|
- fairygui.UIConfig.modalLayerColor = "rgba(0,0,0,0.9)";
|
|
|
+ fairygui.UIConfig.modalLayerColor = "rgba(29, 22, 22, 0.9)";
|
|
|
fairygui.UIConfig.packageFileExtension = "obj";
|
|
|
fairygui.UIConfig.bringWindowToFrontOnClick = false;
|
|
|
Laya.stage.addChild(fairygui.GRoot.inst.displayObject);
|
|
@@ -21771,9 +21783,17 @@
|
|
|
this.firstPos = 385;
|
|
|
this.secondPos = 467;
|
|
|
this.showItemArr = [];
|
|
|
+ try {
|
|
|
+ Laya.loader.load("res/font/arial.fnt", Laya.Handler.create(this, this.onFontLoaded));
|
|
|
+ console.log("zh: constructor加载arial字体成功");
|
|
|
+ }
|
|
|
+ catch (error) {
|
|
|
+ console.log("zh: constructor加载arial字体失败");
|
|
|
+ }
|
|
|
}
|
|
|
onFontLoaded() {
|
|
|
try {
|
|
|
+ Laya.Text.defaultFont = "arial";
|
|
|
this.ui.myNode.conditionTxt.font = "arial";
|
|
|
console.log("zh: onFontLoaded 设置arial字体成功");
|
|
|
}
|
|
@@ -24158,6 +24178,7 @@
|
|
|
class UIFuli1$1 extends UIBase {
|
|
|
constructor() {
|
|
|
super();
|
|
|
+ this.jiage = 4.99;
|
|
|
}
|
|
|
onConstructor() {
|
|
|
this.ui = ui_UIFuli1.createInstance();
|
|
@@ -24170,6 +24191,7 @@
|
|
|
super.show();
|
|
|
this.x = (Laya.stage.width - this.width) / 2;
|
|
|
this.y = (Laya.stage.height - this.height) / 2;
|
|
|
+ this.ui.n2.txt_price.text = "$" + this.jiage;
|
|
|
}
|
|
|
closeSelf() {
|
|
|
DataMgr.loadUserSpOrderForAd();
|
|
@@ -24233,18 +24255,20 @@
|
|
|
class UIFuli2$1 extends UIBase {
|
|
|
constructor() {
|
|
|
super();
|
|
|
+ this.jiage = 14.99;
|
|
|
}
|
|
|
onConstructor() {
|
|
|
this.ui = ui_UIFuli2.createInstance();
|
|
|
this.contentPane = this.ui;
|
|
|
this.isEject = false;
|
|
|
- this.addUIClick(this.ui.n0.n_buy, this.gotoBuy);
|
|
|
- this.addUIClick(this.ui.n0.n_no, this.closeSelf);
|
|
|
+ this.addUIClick(this.ui.n2.n_buy, this.gotoBuy);
|
|
|
+ this.addUIClick(this.ui.n2.n_no, this.closeSelf);
|
|
|
}
|
|
|
show() {
|
|
|
super.show();
|
|
|
this.x = (Laya.stage.width - this.width) / 2;
|
|
|
this.y = (Laya.stage.height - this.height) / 2;
|
|
|
+ this.ui.n2.txt_price.text = "$" + this.jiage;
|
|
|
}
|
|
|
closeSelf() {
|
|
|
DataMgr.loadUserSpOrderForAd();
|