Improved help

This commit is contained in:
Devine Lu Linvega
2017-09-28 15:01:17 +13:00
parent 83b7d32062
commit a51eddeb2f
6 changed files with 18 additions and 6 deletions

View File

@@ -15,9 +15,20 @@ function Hint()
for(module_id in ronin.modules){
var module = ronin.modules[module_id];
html += module.hint()+" ";
html += module_id+" ";
}
var target_module = ronin.commander.query().module;
if(ronin.commander.input_el.value == ""){
this.el.innerHTML = html;
}
else if(ronin.modules[target_module]){
this.el.innerHTML = this.pad(ronin.commander.input_el.value)+ronin.modules[target_module].hint();
}
else{
this.el.innerHTML = this.pad(ronin.commander.input_el.value)+" > Idle."
}
this.el.innerHTML = this.pad(ronin.commander.input_el.value)+(ronin.commander.input_el.value == "" ? html : "");
}
this.pad = function(input)