Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if surface_exists(text_box_elite)
- {
- surface_set_target(text_box_elite);
- draw_set_color(c_white);
- draw_rectangle(surface_left_x,surface_top_y,surface_right_x,surface_bottom_y,0);
- draw_set_color(c_black);
- draw_rectangle(surface_left_x,surface_top_y,surface_right_x,bottom_y,1);
- draw_set_halign(fa_left);
- draw_set_valign(fa_top);
- draw_set_color(c_black);
- draw_set_font(fnt_input);
- draw_text_ext(0,0,cur_text,-1,text_max_width);
- if index_of_curser != noone
- {
- if blinker = true
- {
- draw_set_color(c_dkgray);
- draw_line(curser_x,curser_bottom_y,curser_x,curser_top_y);
- }
- }
- surface_reset_target();
- draw_surface(text_box_elite, left_x,top_y);
- scr_clear_surface(text_box_elite);
- }
- else
- {
- text_box_elite = surface_create(surface_width, surface_height);
- surface_set_target(text_box_elite);
- draw_clear_alpha(c_white, 0);
- surface_reset_target();
- }
Advertisement
Add Comment
Please, Sign In to add comment