Changeset 26 for trunk/Classes/help.cpp


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/help.cpp

    r4 r26  
    341341 
    342342protected: 
     343    virtual void handle_event(const SDL_Event& event); 
    343344    virtual void scroll(unsigned int pos); 
    344345    virtual void set_inner_location(const SDL_Rect& rect); 
     
    20212022        std::string to_show = items_it->visible_string; 
    20222023        if (selected_item_ == *items_it) 
    2023             to_show = std::string("*") + to_show; 
     2024            to_show = std::string("") + DEFAULT_ITEM + to_show; 
    20242025        menu_items.push_back(to_show); 
    20252026    } 
     
    25792580} 
    25802581 
     2582void help_text_area::handle_event(const SDL_Event& event) 
     2583{ 
     2584    handle_drag_event(event); 
     2585} 
     2586     
    25812587void help_text_area::scroll(unsigned int) 
    25822588{ 
     
    26192625    back_topics_(), 
    26202626    forward_topics_(), 
    2621     back_button_(disp.video(), _(" < Back"), gui::button::TYPE_PRESS), 
    2622     forward_button_(disp.video(), _("Forward >"), gui::button::TYPE_PRESS), 
     2627    back_button_(disp.video(), _(" < Back"), gui::button::TYPE_PRESS, "button"), 
     2628    forward_button_(disp.video(), _("Forward >"), gui::button::TYPE_PRESS, "button"), 
    26232629    shown_topic_(NULL) 
    26242630{ 
     
    26312637#ifdef __IPHONEOS__ 
    26322638    //set_measurements(font::relative_size(200), font::relative_size(320)); 
    2633     set_measurements(480, 320); 
     2639    #ifdef __IPAD__ 
     2640        set_measurements(1024, 768); 
     2641    #else 
     2642        set_measurements(480, 320); 
     2643    #endif 
    26342644#else    
    26352645    set_measurements(font::relative_size(400), font::relative_size(500)); 
     
    31233133 
    31243134#ifdef __IPHONEOS__ 
    3125     const int width  = 480; 
    3126     const int height = 280; 
     3135    #ifdef __IPAD__ 
     3136        const int width  = 1024; 
     3137        const int height = 768-55; 
     3138    #else 
     3139        const int width  = 480; 
     3140        const int height = 280; 
     3141    #endif 
    31273142#else 
    31283143    const int width  = std::min<int>(font::relative_size(900), screen.x() - font::relative_size(20)); 
     
    31413156    } 
    31423157    std::vector<gui::button*> buttons_ptr; 
    3143     gui::button close_button_(disp.video(), _("Close")); 
     3158    gui::button close_button_(disp.video(), _("Close"), gui::button::TYPE_PRESS, "button"); 
    31443159    buttons_ptr.push_back(&close_button_); 
    31453160 
Note: See TracChangeset for help on using the changeset viewer.