SHARE
TWEET

setFontAlignment()

a guest Aug 27th, 2016 107 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ///setFontAlignment(alignment)
  2. switch (argument0) {
  3.     case 1: {
  4.         draw_set_halign(fa_left)
  5.         draw_set_valign(fa_top)
  6.         };break;
  7.     case 2: {
  8.         draw_set_halign(fa_center)
  9.         draw_set_valign(fa_top)
  10.         };break;
  11.     case 3: {
  12.         draw_set_halign(fa_right)
  13.         draw_set_valign(fa_top)
  14.         };break;
  15.     case 4: {
  16.         draw_set_halign(fa_left)
  17.         draw_set_valign(fa_middle)
  18.         };break;
  19.     case 5: {
  20.         draw_set_halign(fa_center)
  21.         draw_set_valign(fa_middle)
  22.         };break;
  23.     case 6: {
  24.         draw_set_halign(fa_right)
  25.         draw_set_valign(fa_middle)
  26.         };break;
  27.     case 7: {
  28.         draw_set_halign(fa_left)
  29.         draw_set_valign(fa_bottom)
  30.         };break;
  31.     case 8: {
  32.         draw_set_halign(fa_center)
  33.         draw_set_valign(fa_bottom)
  34.         };break;
  35.     case 9: {
  36.         draw_set_halign(fa_right)
  37.         draw_set_valign(fa_bottom)
  38.         };break;
  39.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top