v0.2.0 - Start Menu Page base
This commit is contained in:
@@ -14,6 +14,8 @@ NPGClient.PageHandler = {
|
||||
self.currPage = NPGClient.LOGIN.NAME;
|
||||
// create login page
|
||||
self.createLoginPage();
|
||||
// create start menu page
|
||||
self.createStartMenuPage();
|
||||
},
|
||||
|
||||
//
|
||||
@@ -85,7 +87,7 @@ NPGClient.PageHandler = {
|
||||
//
|
||||
console.log('[NPGClient] Creating Login Page');
|
||||
var self = this;
|
||||
var p = new NPGClient.AppPage('login');
|
||||
var p = new NPGClient.AppPage(NPGClient.LOGIN.NAME);
|
||||
// Title label
|
||||
p.addUIObject(new NPGClient.UILabel('login_title', NPGClient.LOGIN.TITLE));
|
||||
// name input
|
||||
@@ -98,5 +100,25 @@ NPGClient.PageHandler = {
|
||||
self.pages.push(p);
|
||||
},
|
||||
|
||||
|
||||
// create login page
|
||||
createStartMenuPage: function() {
|
||||
//
|
||||
console.log('[NPGClient] Creating Start Menu Page');
|
||||
var self = this;
|
||||
var p = new NPGClient.AppPage(NPGClient.STARTMENU.NAME);
|
||||
// Title label
|
||||
p.addUIObject(new NPGClient.UILabel('login_title', NPGClient.STARTMENU.TITLE));
|
||||
// Start Menu
|
||||
|
||||
// Server Players and Games status
|
||||
|
||||
//
|
||||
self.pages.push(p);
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user