Added debug menu option and started tidying up 'window' handling

This commit is contained in:
Jon Benson
2013-05-07 14:09:30 +10:00
parent d97b78fafb
commit 0108d1b49c
11 changed files with 62 additions and 30 deletions

30
code/window_management.js Normal file
View File

@ -0,0 +1,30 @@
// created to start cleaning up "window" interaction
//
window.show = function(id) {
switch(id) {
case 'full':
window.chat.show('full');
break;
case 'compact':
window.chat.show('compact');
break;
case 'public':
window.chat.show('public');
break;
case 'faction':
window.chat.show('faction');
break;
case 'debug':
window.debug.console.show();
break;
case 'map':
window.smartphone.mapButton.click();
break;
case 'info':
window.smartphone.sideButton.click();
break;
default:
window.smartphone.mapButton.Click();
break;
}
}