2013-02-09 14:31:41 +00:00
|
|
|
/*-- WallKit preview --*/
|
|
|
|
|
|
|
|
// definition call: create line
|
2015-04-02 16:42:42 +00:00
|
|
|
func Create(int x1, int y1, int x2, int y2, int clr)
|
2013-02-09 14:31:41 +00:00
|
|
|
{
|
2015-01-10 09:14:02 +00:00
|
|
|
var obj = CreateObjectAbove(WallKit_Preview);
|
2015-04-02 16:42:42 +00:00
|
|
|
obj->Set(x1, y1, x2, y2, clr);
|
2013-02-09 14:31:41 +00:00
|
|
|
return obj;
|
|
|
|
}
|
|
|
|
|
|
|
|
func Set(int x1,int y1,int x2,int y2,int clr)
|
|
|
|
{
|
2015-04-02 16:42:42 +00:00
|
|
|
SetVertexXY(0, x1, y1);
|
|
|
|
SetVertexXY(1, x2, y2);
|
2013-02-09 14:31:41 +00:00
|
|
|
this.LineColors = [clr, clr];
|
|
|
|
return;
|
|
|
|
}
|