draw_arrow()
Add "int draw_arrow(double x1,double y1,double x2,double y2,double size)" to the fnames.txt file.
Add the following to ENIGMAsystem\SHELL\Graphics_Systems\OpenGL\GMstdraw.h:
int draw_arrow(double x1,double y1,double x2,double y2,double size)
{
enigma::untexture();
double dir_left=point_direction(x1,y1,x2,y2);
glBegin(GL_LINES);
glVertex2f(x1, y1);
glVertex2f(x2, y2);
glEnd();
double ALx= cos((dir+135)/180.0*pi)*(size/2);
double ALy=-sin((dir+135)/180.0*pi)*(size/2);
double ARx= cos((dir+135)/180.0*pi)*(size/2);
double ARy=-sin((dir+135)/180.0*pi)*(size/2);
glBegin(GL_TRIANGLES);
glVertex2f(x2, y2);
glVertex2f(x2+ALx, y2+ALy);
glVertex2f(x2+ARx, y2+ARy);
glEnd();
return 0;
}
I looked for a simple and random function in the list that needed to be done, and here it is.