Advertisement
Guest User

Untitled

a guest
Oct 5th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. void MLGC::DoThings(){
  2. State = ENTRY_STATE;
  3. bool GoUp = false;
  4.  
  5. initscr();
  6. noecho();
  7. raw();
  8. timeout(std::floor(1000.0/30.0));
  9. keypad(stdscr,TRUE);
  10.  
  11. /*
  12. if(has_colors()){
  13. start_color();
  14. }
  15.  
  16. init_pair(1,COLOR_WHITE,COLOR_RED);
  17.  
  18. wbkgd(stdscr,COLOR_PAIR(1));
  19. attron(COLOR_PAIR(1));*/
  20.  
  21. TextInput UsernameInput(0,1,"Username: ");
  22. TextInput PasswordInput(0,1,"Password: ");
  23. TextInput MessageInput;
  24.  
  25. CurrentInput = &UsernameInput;
  26.  
  27. const int LOGO_WIDTH = 37,LOGO_HEIGHT = 6;
  28.  
  29. int Logo[LOGO_WIDTH * LOGO_HEIGHT]{
  30. 3,2,2,2,2,2,2,2,2,2,4,/**/3,2,4,0,0,0,0,0/**/,3,2,2,2,2,2,2,2,4/**/,3,2,2,2,2,2,2,2,4,
  31. 1,0,3,2,4,0,3,2,4,0,1,/**/1,0,1,0,0,0,0,0/**/,1,0,3,2,2,2,2,2,6/**/,1,0,3,2,2,2,2,2,6,
  32. 1,0,1,0,1,0,1,0,1,0,1,/**/1,0,1,0,0,0,0,0/**/,1,0,1,0,3,2,2,2,4/**/,1,0,1,0,0,0,0,0,0,
  33. 1,0,1,0,1,0,1,0,1,0,1,/**/1,0,1,0,0,0,0,0/**/,1,0,1,0,5,2,4,0,1/**/,1,0,1,0,0,0,0,0,0,
  34. 1,0,1,0,1,0,1,0,1,0,1,/**/1,0,5,2,2,2,2,4/**/,1,0,5,2,2,2,6,0,1/**/,1,0,5,2,2,2,2,2,4,
  35. 5,2,6,0,5,2,6,0,5,2,6,/**/5,2,2,2,2,2,2,6/**/,5,2,2,2,2,2,2,2,6/**/,5,2,2,2,2,2,2,2,6
  36. };
  37.  
  38. chtype Printed;
  39. WrappingText Wisdom,WisdomSource;
  40. std::string CharCount;
  41.  
  42. //beep();
  43.  
  44. srand(time(0));
  45.  
  46. switch(rand() % 5){
  47. case 0:
  48. Wisdom.SetString("\"Don't do today what you don't do today.\"");
  49. WisdomSource.SetString("- Vanni");
  50. case 1:
  51. Wisdom.SetString("\"cheerilee is best pony\"");
  52. WisdomSource.SetString("- Totally Unknown Anon");
  53. break;
  54. case 2:
  55. Wisdom.SetString("\"I really hate people that don't end their\"");
  56. WisdomSource.SetString("- Vanni");
  57. break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement