Some sample frames, minor render fixes
This commit is contained in:
@@ -19,8 +19,8 @@ var FRAME_PAGENUM =12; /* Size of page number (length with a-z)
|
||||
var FRAME_COST =9; /* Size of cost (length without unit)*/
|
||||
var FRAME_COSTUNIT ='c'; /* Unit of cost */
|
||||
|
||||
var ERR_NOT_IMPLEMENTED = '\1RNOT IMPLEMENTED';
|
||||
var ERR_ROUTE = '\1WMISTAKE? \1GTRY AGAIN OR TELL US ON *08';
|
||||
var ERR_NOT_IMPLEMENTED = '\1RNOT IMPLEMENTED YET?';
|
||||
var ERR_ROUTE = '\1n\1h\1WMISTAKE? \1GTRY AGAIN OR TELL US ON *08';
|
||||
|
||||
// Our frame object
|
||||
function Frame(frame,index) {
|
||||
@@ -41,7 +41,7 @@ function Frame(frame,index) {
|
||||
this.render=function() {
|
||||
owner = base64_decode(this.owner);
|
||||
|
||||
return owner+' '.repeat(FRAME_HEADER-console.strlen(owner))+' '+
|
||||
return owner+' '.repeat(FRAME_HEADER-console.strlen(owner))+'\1n '+
|
||||
'\1W\1H'+this.page+' '.repeat(FRAME_PAGENUM-this.page.length)+' '+
|
||||
'\1G\1H'+' '.repeat(FRAME_COST-this.cost.toString().length)+this.cost+FRAME_COSTUNIT+
|
||||
(console.screen_columns > 80 ? '\n\r' : '') +
|
||||
|
Reference in New Issue
Block a user