Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///drawing the text box
- texture_set_interpolation(false);
- //setting drawings in surface
- surface_set_target(area_surface)
- //drawing rectangle
- draw_set_color(area_color)
- draw_set_alpha(0.3);
- draw_rectangle(0, 0, area_width, area_height, false)
- draw_set_alpha (1);
- //drawing text
- draw_set_color(text_color)
- draw_set_font(fnt_textbox);
- draw_text_ext(10, 10+round(-scroll_pos * scroll_scale), text, -2, text_width)
- //resetting the drawing target
- surface_reset_target()
- //drawing the surface
- draw_surface(area_surface, area_x, area_y)
- //drawing border and scroll-bar
- draw_set_color (c_black);
- draw_rectangle(area_x - 1, area_y - 1, area_x + area_width, area_y + area_height, true)
- draw_sprite(spr_scroll, 0, area_x + area_width, area_y + area_height * scroll_pos);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement