Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void MLGC::DoThings(){
- State = ENTRY_STATE;
- bool GoUp = false;
- initscr();
- noecho();
- raw();
- timeout(std::floor(1000.0/30.0));
- keypad(stdscr,TRUE);
- /*
- if(has_colors()){
- start_color();
- }
- init_pair(1,COLOR_WHITE,COLOR_RED);
- wbkgd(stdscr,COLOR_PAIR(1));
- attron(COLOR_PAIR(1));*/
- TextInput UsernameInput(0,1,"Username: ");
- TextInput PasswordInput(0,1,"Password: ");
- TextInput MessageInput;
- CurrentInput = &UsernameInput;
- const int LOGO_WIDTH = 37,LOGO_HEIGHT = 6;
- int Logo[LOGO_WIDTH * LOGO_HEIGHT]{
- 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,
- 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,
- 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,
- 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,
- 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,
- 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
- };
- chtype Printed;
- WrappingText Wisdom,WisdomSource;
- std::string CharCount;
- //beep();
- srand(time(0));
- switch(rand() % 5){
- case 0:
- Wisdom.SetString("\"Don't do today what you don't do today.\"");
- WisdomSource.SetString("- Vanni");
- case 1:
- Wisdom.SetString("\"cheerilee is best pony\"");
- WisdomSource.SetString("- Totally Unknown Anon");
- break;
- case 2:
- Wisdom.SetString("\"I really hate people that don't end their\"");
- WisdomSource.SetString("- Vanni");
- break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement