Ramaraunt1

Untitled

Oct 18th, 2016
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. if surface_exists(text_box_elite)
  2. {
  3. surface_set_target(text_box_elite);
  4.  
  5. draw_set_color(c_white);
  6. draw_rectangle(surface_left_x,surface_top_y,surface_right_x,surface_bottom_y,0);
  7.  
  8. draw_set_color(c_black);
  9. draw_rectangle(surface_left_x,surface_top_y,surface_right_x,bottom_y,1);
  10.  
  11. draw_set_halign(fa_left);
  12. draw_set_valign(fa_top);
  13. draw_set_color(c_black);
  14. draw_set_font(fnt_input);
  15. draw_text_ext(0,0,cur_text,-1,text_max_width);
  16.  
  17. if index_of_curser != noone
  18. {
  19. if blinker = true
  20. {
  21. draw_set_color(c_dkgray);
  22. draw_line(curser_x,curser_bottom_y,curser_x,curser_top_y);
  23. }
  24. }
  25.  
  26. surface_reset_target();
  27.  
  28. draw_surface(text_box_elite, left_x,top_y);
  29.  
  30. scr_clear_surface(text_box_elite);
  31. }
  32. else
  33. {
  34. text_box_elite = surface_create(surface_width, surface_height);
  35. surface_set_target(text_box_elite);
  36. draw_clear_alpha(c_white, 0);
  37. surface_reset_target();
  38. }
Advertisement
Add Comment
Please, Sign In to add comment