/** * @file NPGClient.js * @author frtk */ var NPGClient = { 'version': '' }; NPGClient.NAMEMAXSIZE = 8; NPGClient.userName = ''; // ui NPGClient.CAN_W = 800; NPGClient.CAN_H = 500; NPGClient.CAN_COL = '#000000'; /** * Keyboard events */ NPGClient.KEYS = { F1 : 112, SPACE : 32, ESC : 27, ARROW_UP : 38, ARROW_DOWN : 40, ENTER : 13, DELETE : 46, BACKSPACE : 8, }; /** * APP PAGES */ NPGClient.pageCount = -1; // Login Page NPGClient.LOGIN = { NAME: 'login', SERVSTATUS: { 'text': { 'online' : 'server: online', 'offline' : 'server: offline', }, 'x': 400, 'y': 450, 'style': { 'font': '15px Arial', 'col': '#FFFFFF', 'align': 'center' }, }, TITLE: { 'text': 'nodePong', 'x': 400, 'y': 150, 'style': { 'font': '50px Arial', 'col': '#FFFFFF', 'align': 'center' } }, INPUT: { 'text': 'login: ', 'x': 285, 'y': 300, 'style': { 'font': '25px Monospace', 'col': '#FFFFFF', 'align': 'left' } }, CURSOR: { 'w': 19, 'h': 19, 'x': 390, 'y': 283, 'style': { 'fm': true, 'fc': '#FFFFFF', 'bm': false, 'bw': 0, 'bc': '', } }, };