Improved Source and Terminal queue
This commit is contained in:
@@ -13,14 +13,14 @@ function Command(content)
|
||||
{
|
||||
var module_name = null;
|
||||
|
||||
if(content.indexOf(".") > -1){
|
||||
module_name = content.split(" ")[0].split(".")[0]
|
||||
if(this.parts[0].indexOf(".") > -1){
|
||||
module_name = this.parts[0].split(" ")[0].split(".")[0]
|
||||
}
|
||||
else if(content.indexOf(":") > -1){
|
||||
module_name = content.split(" ")[0].split(":")[0]
|
||||
else if(this.parts[0].indexOf(":") > -1){
|
||||
module_name = this.parts[0].split(" ")[0].split(":")[0]
|
||||
}
|
||||
else{
|
||||
module_name = content.split(" ")[0];
|
||||
module_name = this.parts[0].split(" ")[0];
|
||||
}
|
||||
return ronin.modules[module_name] ? ronin.modules[module_name] : null;
|
||||
}
|
||||
@@ -36,8 +36,11 @@ function Command(content)
|
||||
|
||||
this.setting = function()
|
||||
{
|
||||
var content = this.content;
|
||||
var module = this.module();
|
||||
if(!module || content.indexOf(":") < 0){ return null; }
|
||||
|
||||
if(!module){ return null; }
|
||||
if(content.indexOf(":") < 0){ return null; }
|
||||
|
||||
var setting_name = this.parts[0].split(":")[1];
|
||||
return module.settings[setting_name] ? setting_name : null;
|
||||
|
||||
@@ -29,7 +29,7 @@ function Ronin()
|
||||
|
||||
this.modules[this.source.name] = this.source;
|
||||
this.modules[this.render.name] = this.render;
|
||||
// this.modules[this.eye.constructor.name] = this.eye;
|
||||
this.modules[this.eye.name] = this.eye;
|
||||
this.modules[this.magnet.name] = this.magnet;
|
||||
|
||||
this.modules[this.cursor.name] = this.cursor;
|
||||
|
||||
Reference in New Issue
Block a user