Ignore:
Timestamp:
2010-05-28 07:39:52 (2 years ago)
Author:
kpoole
Message:

Episode 5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Classes/multiplayer_ui.cpp

    r4 r26  
    364364 
    365365#ifdef __IPHONEOS__ 
    366     res.x = 14; 
    367     res.y = 25; 
    368     res.w = 452; 
    369     res.h = 288; 
     366    #ifdef __IPAD__ 
     367        res.x = xscale(10) + 10; 
     368        res.y = yscale(38) + 10; 
     369        res.w = xscale(828) > 12 ? xscale(828) - 12 : 0; 
     370        res.h = yscale(520+200) > 12 ? yscale(520+200) - 12 : 0; 
     371    #else 
     372        res.x = 14; 
     373        res.y = 25; 
     374        res.w = 452; 
     375        res.h = 288; 
     376    #endif 
    370377#else 
    371378    res.x = xscale(10) + 10; 
     
    392399//      return; 
    393400     
    394     for (int y=0; y < 320; y += 128) 
     401    for (int y=0; y < CVideo::gety(); y += 128) 
    395402    { 
    396         for (int x=0; x < 480; x += 128) 
     403        for (int x=0; x < CVideo::getx(); x += 128) 
    397404            blit_surface(x, y, background_); 
    398405    } 
     
    504511        entry_textbox_.clear(); 
    505512    // nick tab-completion 
    506     } else if(event.keysym.sym == SDLK_TAB ) { 
     513    }  
     514/*  else if(event.keysym.sym == SDLK_TAB ) { 
    507515        std::string text = entry_textbox_.text(); 
    508         std::vector<std::string> matches = user_list_; 
     516        std::vector<shared_string> matches = user_list_; 
    509517        // Exclude own nick from tab-completion. 
    510518        matches.erase(std::remove(matches.begin(), matches.end(), 
     
    523531        entry_textbox_.set_text(text); 
    524532    } 
     533 */ 
    525534#endif 
    526535} 
     
    608617    users_menu_.set_width(xscale(159)); 
    609618    users_menu_.set_max_width(xscale(159)); 
    610     //users_menu_.set_location(xscale(856), yscale(42)); 
     619#ifdef __IPAD__ 
     620    users_menu_.set_location(xscale(856), yscale(42)); 
     621#else 
    611622    users_menu_.set_location(480,yscale(42)); 
     623#endif 
    612624    users_menu_.set_height(yscale(715)); 
    613625    users_menu_.set_max_height(yscale(715)); 
Note: See TracChangeset for help on using the changeset viewer.