:drawTexturedRect { This scm-function draws a rectangle. Params in: 0@ - Screen X1 (max - 1024, enable invertX parameter if you want to draw at the right side) 1@ - Screen Y1 (max - 1024) 2@ - Screen X2 (max - 1024, enable invertX parameter if you want to draw at the right side) 3@ - Screen Y2 (max - 1024) 4@ - Texture adress (NULL - without texture) 5@ - Priority 6@, 7@, 8@, 9@ - color RGBA 10@ - InvertX 11@ - InvertY Params out: - Example: 0AB1: call_scm_function @drawTexturedRect params 12 pos_x1 187.0 pos_y1 161.0 pos_x2 600.9 posy_2 400.9 texture 0@ priority 0 color_RGBA 255 255 255 255 invert_x false invert_y false } 0A8D: 12@ = read_memory 0xC17048 size 4 virtual_protect 0 0093: 12@ = integer 12@ to_float 0@ /= 1024.0 006B: 0@ *= 12@ 1@ /= 1024.0 006B: 1@ *= 12@ 2@ /= 1024.0 006B: 2@ *= 12@ 3@ /= 1024.0 006B: 3@ *= 12@ 0D41: set_vertices 1 vertex 1 xyz 0@ 1@ 0.0 rhw 3.33 RGBA 6@ 7@ 8@ 9@ uv 0.0 0.0 invert_x 10@ invert_y 11@ 0D41: set_vertices 1 vertex 2 xyz 0@ 3@ 0.0 rhw 3.33 RGBA 6@ 7@ 8@ 9@ uv 0.0 1.0 invert_x 10@ invert_y 11@ 0D41: set_vertices 1 vertex 3 xyz 2@ 3@ 0.0 rhw 3.33 RGBA 6@ 7@ 8@ 9@ uv 1.0 1.0 invert_x 10@ invert_y 11@ 0D41: set_vertices 1 vertex 4 xyz 2@ 1@ 0.0 rhw 3.33 RGBA 6@ 7@ 8@ 9@ uv 1.0 0.0 invert_x 10@ invert_y 11@ 0D40: draw_2d_shape_type 5 texture 4@ numVerts 4 pVerts 1 vertexAlpha 1 srcBlend 5 dstBlend 6 priority 5@ 0AB2: ret 0