:drawTexturedQuad { This scm-function draws a quad. Params in: 0@ - Screen X base position (max - 1024, enable invertX parameter if you want to draw at the right side) 1@ - Screen Y base position (max - 1024) 2@ - Size 3@ - Texture adress (NULL - without texture) 4@ - Priority 5@, 6@, 7@, 8@ - color RGBA 9@ - InvertX 10@ - InvertY Params out: - Example: 0AB1: call_scm_function @drawTexturedQuad params 11 pos_x 187.0 pos_y 161.0 size 400.9 texture 0@ priority 0 color_RGBA 255 255 255 255 invert_x false invert_y false } 0A8D: 11@ = read_memory 0xC17048 size 4 virtual_protect 0 0093: 11@ = integer 11@ to_float 0087: 13@ = 0@ 0087: 14@ = 1@ 13@ /= 1024.0 006B: 13@ *= 11@ 14@ /= 1024.0 006B: 14@ *= 11@ 0D41: set_vertices 1 vertex 1 xyz 13@ 14@ 0.0 rhw 3.33 RGBA 5@ 6@ 7@ 8@ uv 0.0 0.0 invert_x 9@ invert_y 10@ 0087: 13@ = 0@ 0087: 14@ = 1@ 005B: 14@ += 2@ 13@ /= 1024.0 006B: 13@ *= 11@ 14@ /= 1024.0 006B: 14@ *= 11@ 0D41: set_vertices 1 vertex 2 xyz 13@ 14@ 0.0 rhw 3.33 RGBA 5@ 6@ 7@ 8@ uv 0.0 1.0 invert_x 9@ invert_y 10@ 0087: 13@ = 0@ 0087: 14@ = 1@ 005B: 13@ += 2@ 005B: 14@ += 2@ 13@ /= 1024.0 006B: 13@ *= 11@ 14@ /= 1024.0 006B: 14@ *= 11@ 0D41: set_vertices 1 vertex 3 xyz 13@ 14@ 0.0 rhw 3.33 RGBA 5@ 6@ 7@ 8@ uv 1.0 1.0 invert_x 9@ invert_y 10@ 0087: 13@ = 0@ 0087: 14@ = 1@ 005B: 13@ += 2@ 13@ /= 1024.0 006B: 13@ *= 11@ 14@ /= 1024.0 006B: 14@ *= 11@ 0D41: set_vertices 1 vertex 4 xyz 13@ 14@ 0.0 rhw 3.33 RGBA 5@ 6@ 7@ 8@ uv 1.0 0.0 invert_x 9@ invert_y 10@ 0D40: draw_2d_shape_type 5 texture 3@ numVerts 4 pVerts 1 vertexAlpha 1 srcBlend 5 dstBlend 6 priority 4@ 0AB2: ret 0