|
@@ -7001,21 +7001,14 @@
|
|
|
}
|
|
|
onConstruct() {
|
|
|
this.n38 = (this.getChild("n38"));
|
|
|
- this.n9 = (this.getChild("n9"));
|
|
|
- this.n14 = (this.getChild("n14"));
|
|
|
- this.n15 = (this.getChild("n15"));
|
|
|
- this.n34 = (this.getChild("n34"));
|
|
|
+ this.n51 = (this.getChild("n51"));
|
|
|
this.closeBtn = (this.getChild("closeBtn"));
|
|
|
this.lab_tip = (this.getChild("lab_tip"));
|
|
|
- this.n43 = (this.getChild("n43"));
|
|
|
this.txt_ua = (this.getChild("txt_ua"));
|
|
|
- this.n44 = (this.getChild("n44"));
|
|
|
this.txt_up1 = (this.getChild("txt_up1"));
|
|
|
- this.n45 = (this.getChild("n45"));
|
|
|
this.txt_up2 = (this.getChild("txt_up2"));
|
|
|
this.btn_gotoLogin = (this.getChild("btn_gotoLogin"));
|
|
|
this.btn_reg = (this.getChild("btn_reg"));
|
|
|
- this.n50 = (this.getChild("n50"));
|
|
|
}
|
|
|
}
|
|
|
ui_UIReg.URL = "ui://isxx5ak7bobav57v";
|
|
@@ -7027,17 +7020,7 @@
|
|
|
onConstruct() {
|
|
|
this.c1 = this.getController("c1");
|
|
|
this.n18 = (this.getChild("n18"));
|
|
|
- this.n7 = (this.getChild("n7"));
|
|
|
- this.n5 = (this.getChild("n5"));
|
|
|
- this.n6 = (this.getChild("n6"));
|
|
|
- this.closeBtn = (this.getChild("closeBtn"));
|
|
|
- this.btn_gotoReg = (this.getChild("btn_gotoReg"));
|
|
|
- this.btn_login = (this.getChild("btn_login"));
|
|
|
- this.n31 = (this.getChild("n31"));
|
|
|
- this.txt_up = (this.getChild("txt_up"));
|
|
|
- this.n32 = (this.getChild("n32"));
|
|
|
- this.txt_ua = (this.getChild("txt_ua"));
|
|
|
- this.n40 = (this.getChild("n40"));
|
|
|
+ this.n19 = (this.getChild("n19"));
|
|
|
}
|
|
|
}
|
|
|
ui_UILogin.URL = "ui://isxx5ak7bobav57u";
|
|
@@ -7045,27 +7028,47 @@
|
|
|
class UILogin extends UIBase {
|
|
|
constructor() {
|
|
|
super();
|
|
|
+ this.fontStr = 'big-john-woff2-2';
|
|
|
+ try {
|
|
|
+ Laya.loader.load("res/font/big-john-woff2-2.ttf", Laya.Handler.create(this, this.onFontLoaded));
|
|
|
+ console.log("zh: constructor加载arial字体成功");
|
|
|
+ }
|
|
|
+ catch (error) {
|
|
|
+ console.log("zh: constructor加载arial字体失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ onFontLoaded() {
|
|
|
+ try {
|
|
|
+ Laya.Text.defaultFont = this.fontStr;
|
|
|
+ this.ui.n19.txt_ua.font = this.fontStr;
|
|
|
+ this.ui.n19.txt_up.font = this.fontStr;
|
|
|
+ console.log("zh: onFontLoaded 设置" + this.fontStr + "字体成功");
|
|
|
+ }
|
|
|
+ catch (error) {
|
|
|
+ console.log("zh: constructor onFontLoaded加载" + this.fontStr + "字体失败");
|
|
|
+ }
|
|
|
}
|
|
|
onConstructor() {
|
|
|
this.ui = ui_UILogin.createInstance();
|
|
|
this.contentPane = this.ui;
|
|
|
this.isEject = false;
|
|
|
- this.addUIClick(this.ui.closeBtn, this.closeSelf);
|
|
|
- this.addUIClick(this.ui.btn_gotoReg, this.gotoRegPage);
|
|
|
- this.addUIClick(this.ui.btn_login, this.userLogin);
|
|
|
+ this.addUIClick(this.ui.n19.closeBtn, this.closeSelf);
|
|
|
+ this.addUIClick(this.ui.n19.btn_gotoReg, this.gotoRegPage);
|
|
|
+ this.addUIClick(this.ui.n19.btn_login, this.userLogin);
|
|
|
}
|
|
|
show() {
|
|
|
super.show();
|
|
|
this.x = (Laya.stage.width - this.width) / 2;
|
|
|
this.y = (Laya.stage.height - this.height) / 2;
|
|
|
- this.setGlobalFont(this.ui);
|
|
|
+ this.onFontLoaded();
|
|
|
}
|
|
|
closeSelf() {
|
|
|
this.hide();
|
|
|
}
|
|
|
userLogin() {
|
|
|
- let ua = this.ui.txt_ua.text;
|
|
|
- let up = this.ui.txt_up.text;
|
|
|
+ let ua = this.ui.n19.txt_ua.text;
|
|
|
+ let up = this.ui.n19.txt_up.text;
|
|
|
+ console.log('zh:ua font' + this.ui.n19.txt_ua.font);
|
|
|
if (ua && up) {
|
|
|
let reqData = JSON.stringify({
|
|
|
username: ua.trim(),
|
|
@@ -7121,6 +7124,26 @@
|
|
|
class UIReg extends UIBase {
|
|
|
constructor() {
|
|
|
super();
|
|
|
+ this.fontStr = 'big-john-woff2-2';
|
|
|
+ try {
|
|
|
+ Laya.loader.load("res/font/big-john-woff2-2.ttf", Laya.Handler.create(this, this.onFontLoaded));
|
|
|
+ console.log("zh: constructor加载arial字体成功");
|
|
|
+ }
|
|
|
+ catch (error) {
|
|
|
+ console.log("zh: constructor加载arial字体失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ onFontLoaded() {
|
|
|
+ try {
|
|
|
+ Laya.Text.defaultFont = this.fontStr;
|
|
|
+ this.ui.txt_ua.font = this.fontStr;
|
|
|
+ this.ui.txt_up1.font = this.fontStr;
|
|
|
+ this.ui.txt_up2.font = this.fontStr;
|
|
|
+ console.log("zh: onFontLoaded 设置" + this.fontStr + "字体成功");
|
|
|
+ }
|
|
|
+ catch (error) {
|
|
|
+ console.log("zh: constructor onFontLoaded加载" + this.fontStr + "字体失败");
|
|
|
+ }
|
|
|
}
|
|
|
onConstructor() {
|
|
|
this.ui = ui_UIReg.createInstance();
|
|
@@ -7134,7 +7157,7 @@
|
|
|
super.show();
|
|
|
this.x = (Laya.stage.width - this.width) / 2;
|
|
|
this.y = (Laya.stage.height - this.height) / 2;
|
|
|
- this.setGlobalFont(this.ui);
|
|
|
+ this.onFontLoaded();
|
|
|
}
|
|
|
closeSelf() {
|
|
|
this.hide();
|
|
@@ -7218,6 +7241,7 @@
|
|
|
this.x = (Laya.stage.width - this.width) / 2;
|
|
|
this.y = (Laya.stage.height - this.height) / 2;
|
|
|
this.ui.n2.txt_price.text = "$" + this.jiage;
|
|
|
+ this.ui.n2.n_zzq_fl1.url = 'res/fuli1.png';
|
|
|
this.setGlobalFont(this.ui);
|
|
|
}
|
|
|
closeSelf() {
|
|
@@ -13311,6 +13335,21 @@
|
|
|
}
|
|
|
ui_powerEft.URL = "ui://isxx5ak79u9xv4mr";
|
|
|
|
|
|
+ class ui_Component1305_logo extends fgui.GComponent {
|
|
|
+ static createInstance() {
|
|
|
+ return (fgui.UIPackage.createObject("game", "Component1305_logo"));
|
|
|
+ }
|
|
|
+ onConstruct() {
|
|
|
+ this.n7 = (this.getChild("n7"));
|
|
|
+ this.closeBtn = (this.getChild("closeBtn"));
|
|
|
+ this.txt_ua = (this.getChild("txt_ua"));
|
|
|
+ this.btn_gotoReg = (this.getChild("btn_gotoReg"));
|
|
|
+ this.btn_login = (this.getChild("btn_login"));
|
|
|
+ this.txt_up = (this.getChild("txt_up"));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ui_Component1305_logo.URL = "ui://isxx5ak7a1zav5ao";
|
|
|
+
|
|
|
class ui_PutBallLevelDisplay extends fgui.GComponent {
|
|
|
static createInstance() {
|
|
|
return (fgui.UIPackage.createObject("game", "PutBallLevelDisplay"));
|
|
@@ -13391,7 +13430,6 @@
|
|
|
onConstruct() {
|
|
|
this.button = this.getController("button");
|
|
|
this.n6 = (this.getChild("n6"));
|
|
|
- this.n4 = (this.getChild("n4"));
|
|
|
}
|
|
|
}
|
|
|
ui_Button_reg.URL = "ui://isxx5ak7bobav57y";
|
|
@@ -15460,7 +15498,6 @@
|
|
|
onConstruct() {
|
|
|
this.button = this.getController("button");
|
|
|
this.n5 = (this.getChild("n5"));
|
|
|
- this.n3 = (this.getChild("n3"));
|
|
|
}
|
|
|
}
|
|
|
ui_Button_login.URL = "ui://isxx5ak7nnz5v587";
|
|
@@ -16808,6 +16845,7 @@
|
|
|
fgui.UIObjectFactory.setExtension(ui_Component129.URL, ui_Component129);
|
|
|
fgui.UIObjectFactory.setExtension(ui_Component130.URL, ui_Component130);
|
|
|
fgui.UIObjectFactory.setExtension(ui_powerEft.URL, ui_powerEft);
|
|
|
+ fgui.UIObjectFactory.setExtension(ui_Component1305_logo.URL, ui_Component1305_logo);
|
|
|
fgui.UIObjectFactory.setExtension(ui_UILevelDisplay.URL, ui_UILevelDisplay);
|
|
|
fgui.UIObjectFactory.setExtension(ui_PutBallLevelDisplay.URL, ui_PutBallLevelDisplay);
|
|
|
fgui.UIObjectFactory.setExtension(ui_Component79.URL, ui_Component79);
|
|
@@ -24079,27 +24117,47 @@
|
|
|
class UILogin$1 extends UIBase {
|
|
|
constructor() {
|
|
|
super();
|
|
|
+ this.fontStr = 'big-john-woff2-2';
|
|
|
+ try {
|
|
|
+ Laya.loader.load("res/font/big-john-woff2-2.ttf", Laya.Handler.create(this, this.onFontLoaded));
|
|
|
+ console.log("zh: constructor加载arial字体成功");
|
|
|
+ }
|
|
|
+ catch (error) {
|
|
|
+ console.log("zh: constructor加载arial字体失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ onFontLoaded() {
|
|
|
+ try {
|
|
|
+ Laya.Text.defaultFont = this.fontStr;
|
|
|
+ this.ui.n19.txt_ua.font = this.fontStr;
|
|
|
+ this.ui.n19.txt_up.font = this.fontStr;
|
|
|
+ console.log("zh: onFontLoaded 设置" + this.fontStr + "字体成功");
|
|
|
+ }
|
|
|
+ catch (error) {
|
|
|
+ console.log("zh: constructor onFontLoaded加载" + this.fontStr + "字体失败");
|
|
|
+ }
|
|
|
}
|
|
|
onConstructor() {
|
|
|
this.ui = ui_UILogin.createInstance();
|
|
|
this.contentPane = this.ui;
|
|
|
this.isEject = false;
|
|
|
- this.addUIClick(this.ui.closeBtn, this.closeSelf);
|
|
|
- this.addUIClick(this.ui.btn_gotoReg, this.gotoRegPage);
|
|
|
- this.addUIClick(this.ui.btn_login, this.userLogin);
|
|
|
+ this.addUIClick(this.ui.n19.closeBtn, this.closeSelf);
|
|
|
+ this.addUIClick(this.ui.n19.btn_gotoReg, this.gotoRegPage);
|
|
|
+ this.addUIClick(this.ui.n19.btn_login, this.userLogin);
|
|
|
}
|
|
|
show() {
|
|
|
super.show();
|
|
|
this.x = (Laya.stage.width - this.width) / 2;
|
|
|
this.y = (Laya.stage.height - this.height) / 2;
|
|
|
- this.setGlobalFont(this.ui);
|
|
|
+ this.onFontLoaded();
|
|
|
}
|
|
|
closeSelf() {
|
|
|
this.hide();
|
|
|
}
|
|
|
userLogin() {
|
|
|
- let ua = this.ui.txt_ua.text;
|
|
|
- let up = this.ui.txt_up.text;
|
|
|
+ let ua = this.ui.n19.txt_ua.text;
|
|
|
+ let up = this.ui.n19.txt_up.text;
|
|
|
+ console.log('zh:ua font' + this.ui.n19.txt_ua.font);
|
|
|
if (ua && up) {
|
|
|
let reqData = JSON.stringify({
|
|
|
username: ua.trim(),
|
|
@@ -24155,6 +24213,26 @@
|
|
|
class UIReg$1 extends UIBase {
|
|
|
constructor() {
|
|
|
super();
|
|
|
+ this.fontStr = 'big-john-woff2-2';
|
|
|
+ try {
|
|
|
+ Laya.loader.load("res/font/big-john-woff2-2.ttf", Laya.Handler.create(this, this.onFontLoaded));
|
|
|
+ console.log("zh: constructor加载arial字体成功");
|
|
|
+ }
|
|
|
+ catch (error) {
|
|
|
+ console.log("zh: constructor加载arial字体失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ onFontLoaded() {
|
|
|
+ try {
|
|
|
+ Laya.Text.defaultFont = this.fontStr;
|
|
|
+ this.ui.txt_ua.font = this.fontStr;
|
|
|
+ this.ui.txt_up1.font = this.fontStr;
|
|
|
+ this.ui.txt_up2.font = this.fontStr;
|
|
|
+ console.log("zh: onFontLoaded 设置" + this.fontStr + "字体成功");
|
|
|
+ }
|
|
|
+ catch (error) {
|
|
|
+ console.log("zh: constructor onFontLoaded加载" + this.fontStr + "字体失败");
|
|
|
+ }
|
|
|
}
|
|
|
onConstructor() {
|
|
|
this.ui = ui_UIReg.createInstance();
|
|
@@ -24168,7 +24246,7 @@
|
|
|
super.show();
|
|
|
this.x = (Laya.stage.width - this.width) / 2;
|
|
|
this.y = (Laya.stage.height - this.height) / 2;
|
|
|
- this.setGlobalFont(this.ui);
|
|
|
+ this.onFontLoaded();
|
|
|
}
|
|
|
closeSelf() {
|
|
|
this.hide();
|
|
@@ -24241,6 +24319,7 @@
|
|
|
this.x = (Laya.stage.width - this.width) / 2;
|
|
|
this.y = (Laya.stage.height - this.height) / 2;
|
|
|
this.ui.n2.txt_price.text = "$" + this.jiage;
|
|
|
+ this.ui.n2.n_zzq_fl1.url = 'res/fuli1.png';
|
|
|
this.setGlobalFont(this.ui);
|
|
|
}
|
|
|
closeSelf() {
|