Removed old render()
This commit is contained in:
@@ -6,7 +6,7 @@ function Angle(angle_str = "0'")
|
||||
|
||||
this.degrees = parseFloat(angle_str.replace('\'',''));
|
||||
|
||||
this.render = function()
|
||||
this.toString = function()
|
||||
{
|
||||
return this.degrees+"'";
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ function Any(str)
|
||||
this.example = "";
|
||||
this.string = str;
|
||||
|
||||
this.render = function()
|
||||
this.toString = function()
|
||||
{
|
||||
return this.string;
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ function Bang()
|
||||
|
||||
this.example = "";
|
||||
|
||||
this.render = function()
|
||||
this.toString = function()
|
||||
{
|
||||
return "BANG";
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ function Color(hex = '#000000')
|
||||
return { r:rgb.r/255, g:rgb.g/255, b:rgb.b/255 }
|
||||
}
|
||||
|
||||
this.render = function()
|
||||
this.toString = function()
|
||||
{
|
||||
return this.hex;
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ function Filepath(path_str)
|
||||
this.example = "assets/demo.png";
|
||||
this.path = path_str;
|
||||
|
||||
this.render = function()
|
||||
this.toString = function()
|
||||
{
|
||||
return this.path;
|
||||
}
|
||||
|
||||
@@ -6,11 +6,6 @@ function Mode(name,key = "")
|
||||
this.name = name;
|
||||
this.key = key;
|
||||
|
||||
this.render = function()
|
||||
{
|
||||
return "?";
|
||||
}
|
||||
|
||||
this.toString = function()
|
||||
{
|
||||
return "<span class='mode'>~"+this.name+(this.key ? '['+this.key+']' : '')+"</span>"
|
||||
|
||||
@@ -40,7 +40,7 @@ function Position(position_str = "0,0",y = null)
|
||||
}
|
||||
}
|
||||
|
||||
this.render = function()
|
||||
this.toString = function()
|
||||
{
|
||||
return (isNaN(this.x) ? 0 : this.x)+","+(isNaN(this.y) ? 0 : this.y);
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ function Range(range_str)
|
||||
this.from = parseFloat(this.range_str.split("..")[0]);
|
||||
this.to = parseFloat(this.range_str.split("..")[1]);
|
||||
|
||||
this.render = function()
|
||||
this.toString = function()
|
||||
{
|
||||
return this.from+".."+this.to;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ function Rect(rect_str)
|
||||
|
||||
this.example = "200x300";
|
||||
|
||||
this.render = function()
|
||||
this.toString = function()
|
||||
{
|
||||
return (isNaN(this.width) ? 0 : this.width)+"x"+(isNaN(this.height) ? 0 : this.height);
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ function Setting(name,value)
|
||||
this.name = name;
|
||||
this.value = value;
|
||||
|
||||
this.render = function()
|
||||
this.toString = function()
|
||||
{
|
||||
return "?";
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ function Value(value_str)
|
||||
this.float = parseFloat(this.value);
|
||||
this.int = parseInt(this.value);
|
||||
|
||||
this.render = function()
|
||||
this.toString = function()
|
||||
{
|
||||
return this.value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user