Changeset 49da01a in network-game for client/Client/main.cpp
- Timestamp:
- Jul 22, 2013, 11:52:39 PM (12 years ago)
- Branches:
- master
- Children:
- dee75cc
- Parents:
- 365e156
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
client/Client/main.cpp
r365e156 r49da01a 232 232 cout << "Created main screen" << endl; 233 233 234 wndCurrent = wndLogin;234 goToLoginScreen(); 235 235 236 236 event_queue = al_create_event_queue(); … … 398 398 chatConsole.draw(font, al_map_rgb(255,255,255)); 399 399 400 // There should be label gui components that show these or each textbox should have a label 401 if(wndCurrent == wndLogin || wndCurrent == wndRegister) { 402 //al_draw_text(font, al_map_rgb(0, 255, 0), 416, 43, ALLEGRO_ALIGN_LEFT, "Username:"); 403 //al_draw_text(font, al_map_rgb(0, 255, 0), 413, 73, ALLEGRO_ALIGN_LEFT, "Password:"); 404 } 405 else if(wndCurrent == wndMain) { 400 if(wndCurrent == wndMain) { 406 401 al_draw_text(font, al_map_rgb(0, 255, 0), 4, 43, ALLEGRO_ALIGN_LEFT, "Message:"); 407 402 … … 645 640 cout << "Logged out" << endl; 646 641 state = STATE_START; 647 wndCurrent = wndLogin;642 goToLoginScreen(); 648 643 } 649 644 … … 914 909 void goToRegisterScreen() 915 910 { 916 wndCurrent = wndRegister;917 918 911 txtUsernameRegister->clear(); 919 912 txtPasswordRegister->clear(); 913 lblRegisterStatus->setText(""); 914 rblClasses->setSelectedButton(-1); 915 916 wndCurrent = wndRegister; 920 917 } 921 918 922 919 void goToLoginScreen() 923 920 { 924 wndCurrent = wndLogin;925 926 921 txtUsername->clear(); 927 922 txtPassword->clear(); 923 lblLoginStatus->setText(""); 924 925 wndCurrent = wndLogin; 928 926 } 929 927
Note:
See TracChangeset
for help on using the changeset viewer.