LostProphet

Untitled

Aug 2nd, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void menu_draw_frontend_hook()
  2. {
  3.     int i = frontend_count;
  4.     i++;
  5.     menu_add_frontend(i, INPUT_CELLPHONE_EXTRA_OPTION, "Edit With Keyboard");
  6.  
  7.     i++;
  8.     menu_add_frontend(i, INPUT_FRONTEND_RB, "Faster (Hold)");
  9.     i++;
  10.     menu_add_frontend(i, INPUT_FRONTEND_LB, "Slower (Hold)");
  11. }
  12.  
  13. void menu_add_frontend(int frontend_id, int button_id, char* string_val)
  14. {
  15.     _0xF6E48914C7A8694E(instructional_buttons, "SET_DATA_SLOT");
  16.     _0xC3D0841A0CC546A6(frontend_id);
  17.     _0xE83A3E3557A56640(_0x0499D7B09FC9B407(2, button_id, 1));
  18.  
  19.     if (does_text_label_exist(string_val))
  20.         _0x80338406F3475E55(string_val);
  21.     else
  22.     {
  23.         _0x80338406F3475E55("STRING");
  24.         _add_text_component_string(string_val);
  25.     }
  26.     add_text_component_integer(-1);
  27.     _0x362E2D3FE93A9959();
  28.  
  29.     _0xC58424BA936EB458(1);
  30.     _0xC3D0841A0CC546A6(button_id);
  31.  
  32.     _0xC6796A8FFA375E53();
  33. }
  34.  
  35. void menu_draw_frontend()
  36. {
  37.     int i;
  38.  
  39.     if (update_onscreen_keyboard() == 0) {
  40.         return;
  41.     }
  42.  
  43.     if (has_scaleform_movie_loaded(instructional_buttons))
  44.     {
  45.         if (scaleform_requested)
  46.         {
  47.             _0xF6E48914C7A8694E(instructional_buttons, "CLEAR_ALL");
  48.             _0xC6796A8FFA375E53();
  49.             _0xF6E48914C7A8694E(instructional_buttons, "SET_MAX_WIDTH");
  50.             _0xD69736AAE04DB51A(100.0f);
  51.             _0xC6796A8FFA375E53();
  52.  
  53.             _0xF6E48914C7A8694E(instructional_buttons, "TOGGLE_MOUSE_BUTTONS");
  54.             _0xC58424BA936EB458(1);
  55.             _0xC6796A8FFA375E53();
  56.  
  57.             for (i = 0; i < frontend_count + 1; i++)
  58.             {
  59.                 _0xF6E48914C7A8694E(instructional_buttons, "SET_DATA_SLOT");
  60.                 _0xC3D0841A0CC546A6(i);
  61.                 _0xE83A3E3557A56640(_0x0499D7B09FC9B407(2, frontend_items_button[i], 1));
  62.  
  63.                 if (does_text_label_exist(frontend_items_name[i]))
  64.                 {
  65.                     _0x80338406F3475E55(frontend_items_name[i]);
  66.                 }
  67.                 else
  68.                 {
  69.                     _0x80338406F3475E55("STRING");
  70.                     _add_text_component_string(frontend_items_name[i]);
  71.                 }
  72.                 add_text_component_integer(-1);
  73.                 _0x362E2D3FE93A9959();
  74.  
  75.                 _0xC58424BA936EB458(1);
  76.                 _0xC3D0841A0CC546A6(frontend_items_button[i]);
  77.  
  78.                 _0xC6796A8FFA375E53();
  79.             }
  80.             menu_draw_frontend_hook();
  81.             _0xF6E48914C7A8694E(instructional_buttons, "SET_BACKGROUND_COLOUR");
  82.             _0xC3D0841A0CC546A6(0);
  83.             _0xC3D0841A0CC546A6(0);
  84.             _0xC3D0841A0CC546A6(0);
  85.             _0xC3D0841A0CC546A6(80);
  86.             _0xC6796A8FFA375E53();
  87.             _0xF6E48914C7A8694E(instructional_buttons, "DRAW_INSTRUCTIONAL_BUTTONS");
  88.             _0xC3D0841A0CC546A6(0);
  89.             _0xC6796A8FFA375E53();
  90.             _0xB8A850F20A067EB6(76, 66);
  91.             _0xF5A2C681787E579D(0.0f, 0.0f, 0.0f, 0.0f);
  92.             _0xE3A3DB414A373DAB();
  93.             _0x0DF606929C105BE1(instructional_buttons, 255, 255, 255, 255);
  94.         }
  95.     }
  96.     else
  97.     {
  98.         instructional_buttons = request_scaleform_movie("instructional_buttons");
  99.         scaleform_requested = 1;
  100.     }
  101. }
Add Comment
Please, Sign In to add comment