|
@@ -7020,7 +7020,12 @@
|
|
|
onConstruct() {
|
|
|
this.c1 = this.getController("c1");
|
|
|
this.n18 = (this.getChild("n18"));
|
|
|
- this.n19 = (this.getChild("n19"));
|
|
|
+ this.n21 = (this.getChild("n21"));
|
|
|
+ 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_UILogin.URL = "ui://isxx5ak7bobav57u";
|
|
@@ -7040,8 +7045,8 @@
|
|
|
onFontLoaded() {
|
|
|
try {
|
|
|
Laya.Text.defaultFont = this.fontStr;
|
|
|
- this.ui.n19.txt_ua.font = this.fontStr;
|
|
|
- this.ui.n19.txt_up.font = this.fontStr;
|
|
|
+ this.ui.txt_ua.font = this.fontStr;
|
|
|
+ this.ui.txt_up.font = this.fontStr;
|
|
|
console.log("zh: onFontLoaded 设置" + this.fontStr + "字体成功");
|
|
|
}
|
|
|
catch (error) {
|
|
@@ -7052,9 +7057,9 @@
|
|
|
this.ui = ui_UILogin.createInstance();
|
|
|
this.contentPane = this.ui;
|
|
|
this.isEject = false;
|
|
|
- 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);
|
|
|
+ this.addUIClick(this.ui.closeBtn, this.closeSelf);
|
|
|
+ this.addUIClick(this.ui.btn_gotoReg, this.gotoRegPage);
|
|
|
+ this.addUIClick(this.ui.btn_login, this.userLogin);
|
|
|
}
|
|
|
show() {
|
|
|
super.show();
|
|
@@ -7066,9 +7071,9 @@
|
|
|
this.hide();
|
|
|
}
|
|
|
userLogin() {
|
|
|
- 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);
|
|
|
+ let ua = this.ui.txt_ua.text;
|
|
|
+ let up = this.ui.txt_up.text;
|
|
|
+ console.log('zh:ua font' + this.ui.txt_ua.font);
|
|
|
if (ua && up) {
|
|
|
let reqData = JSON.stringify({
|
|
|
username: ua.trim(),
|
|
@@ -13335,21 +13340,6 @@
|
|
|
}
|
|
|
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"));
|
|
@@ -16845,7 +16835,6 @@
|
|
|
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);
|
|
@@ -24129,8 +24118,8 @@
|
|
|
onFontLoaded() {
|
|
|
try {
|
|
|
Laya.Text.defaultFont = this.fontStr;
|
|
|
- this.ui.n19.txt_ua.font = this.fontStr;
|
|
|
- this.ui.n19.txt_up.font = this.fontStr;
|
|
|
+ this.ui.txt_ua.font = this.fontStr;
|
|
|
+ this.ui.txt_up.font = this.fontStr;
|
|
|
console.log("zh: onFontLoaded 设置" + this.fontStr + "字体成功");
|
|
|
}
|
|
|
catch (error) {
|
|
@@ -24141,9 +24130,9 @@
|
|
|
this.ui = ui_UILogin.createInstance();
|
|
|
this.contentPane = this.ui;
|
|
|
this.isEject = false;
|
|
|
- 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);
|
|
|
+ this.addUIClick(this.ui.closeBtn, this.closeSelf);
|
|
|
+ this.addUIClick(this.ui.btn_gotoReg, this.gotoRegPage);
|
|
|
+ this.addUIClick(this.ui.btn_login, this.userLogin);
|
|
|
}
|
|
|
show() {
|
|
|
super.show();
|
|
@@ -24155,9 +24144,9 @@
|
|
|
this.hide();
|
|
|
}
|
|
|
userLogin() {
|
|
|
- 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);
|
|
|
+ let ua = this.ui.txt_ua.text;
|
|
|
+ let up = this.ui.txt_up.text;
|
|
|
+ console.log('zh:ua font' + this.ui.txt_ua.font);
|
|
|
if (ua && up) {
|
|
|
let reqData = JSON.stringify({
|
|
|
username: ua.trim(),
|