phantom
This commit is contained in:
parent
256c1c4031
commit
06798446a7
|
@ -8036,9 +8036,9 @@
|
||||||
ui.css.styles.sheet.insertRule('#window #control{font-family: STHeiti,SimHei,Microsoft JhengHei,Microsoft YaHei,WenQuanYi Micro Hei,Helvetica,Arial,sans-serif}',0);
|
ui.css.styles.sheet.insertRule('#window #control{font-family: STHeiti,SimHei,Microsoft JhengHei,Microsoft YaHei,WenQuanYi Micro Hei,Helvetica,Arial,sans-serif}',0);
|
||||||
}
|
}
|
||||||
switch(lib.config.glow_phase){
|
switch(lib.config.glow_phase){
|
||||||
case 'yellow':ui.css.styles.sheet.insertRule('#arena .player:not(.selectable):not(.selected).glow_phase {box-shadow: rgba(0, 0, 0, 0.3) 0 0 0 1px, rgb(235, 239, 59) 0 0 15px, rgb(199, 64, 64) 0 0 15px !important;',0);break;
|
case 'yellow':ui.css.styles.sheet.insertRule('#arena .player:not(.selectable):not(.selected).glow_phase {box-shadow: rgba(0, 0, 0, 0.3) 0 0 0 1px, rgb(235, 239, 59) 0 0 15px, rgb(199, 64, 64) 0 0 15px !important;}',0);break;
|
||||||
case 'green':ui.css.styles.sheet.insertRule('#arena .player:not(.selectable):not(.selected).glow_phase {box-shadow: rgba(0, 0, 0, 0.3) 0 0 0 1px, rgba(10, 155, 67, 1) 0 0 15px, rgba(10, 155, 67, 1) 0 0 15px !important;',0);break;
|
case 'green':ui.css.styles.sheet.insertRule('#arena .player:not(.selectable):not(.selected).glow_phase {box-shadow: rgba(0, 0, 0, 0.3) 0 0 0 1px, rgba(10, 155, 67, 1) 0 0 15px, rgba(10, 155, 67, 1) 0 0 15px !important;}',0);break;
|
||||||
case 'purple':ui.css.styles.sheet.insertRule('#arena .player:not(.selectable):not(.selected).glow_phase {box-shadow: rgba(0, 0, 0, 0.3) 0 0 0 1px, rgb(178, 59, 239) 0 0 15px, rgb(199, 64, 101) 0 0 15px !important;',0);break;
|
case 'purple':ui.css.styles.sheet.insertRule('#arena .player:not(.selectable):not(.selected).glow_phase {box-shadow: rgba(0, 0, 0, 0.3) 0 0 0 1px, rgb(178, 59, 239) 0 0 15px, rgb(199, 64, 101) 0 0 15px !important;}',0);break;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
layout:function(layout,nosave){
|
layout:function(layout,nosave){
|
||||||
|
|
|
@ -1,20 +1,29 @@
|
||||||
var load=function(id){
|
var fs = require('fs');
|
||||||
var page = require('webpage').create();
|
var webpage = require('webpage')
|
||||||
|
var load = function(id){
|
||||||
|
var page = webpage.create();
|
||||||
page.settings.userAgent = 'SpecialAgent';
|
page.settings.userAgent = 'SpecialAgent';
|
||||||
page.open('http://localhost/index.html?server='+id, function(status) {
|
page.open('file://'+fs.workingDirectory+'/index.html?server='+id, function(status) {
|
||||||
if(status !== 'success') {
|
if(status !== 'success') {
|
||||||
|
console.log(fs.workingDirectory);
|
||||||
console.log('Unable to access network');
|
console.log('Unable to access network');
|
||||||
}
|
}
|
||||||
setInterval(function(){
|
setInterval(function(){
|
||||||
page.evaluate(function(){
|
if(page.evaluate(function(){
|
||||||
if(!lib.node||!lib.node.clients||!lib.node.clients.length){
|
if(!lib.node||!lib.node.clients||!lib.node.clients.length){
|
||||||
game.reload();
|
return true;
|
||||||
}
|
}
|
||||||
});
|
else{
|
||||||
},3600000);
|
return false;
|
||||||
|
}
|
||||||
|
})){
|
||||||
|
page.close();
|
||||||
|
load(id);
|
||||||
|
}
|
||||||
|
},600000);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
load(1);
|
load(1);
|
||||||
// load(2);
|
load(2);
|
||||||
// load(3);
|
load(3);
|
||||||
|
|
Loading…
Reference in New Issue