Changeset 26 for trunk/Classes/help.cpp
- Timestamp:
- 2010-05-28 07:39:52 (2 years ago)
- File:
-
- 1 edited
-
trunk/Classes/help.cpp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Classes/help.cpp
r4 r26 341 341 342 342 protected: 343 virtual void handle_event(const SDL_Event& event); 343 344 virtual void scroll(unsigned int pos); 344 345 virtual void set_inner_location(const SDL_Rect& rect); … … 2021 2022 std::string to_show = items_it->visible_string; 2022 2023 if (selected_item_ == *items_it) 2023 to_show = std::string(" *")+ to_show;2024 to_show = std::string("") + DEFAULT_ITEM + to_show; 2024 2025 menu_items.push_back(to_show); 2025 2026 } … … 2579 2580 } 2580 2581 2582 void help_text_area::handle_event(const SDL_Event& event) 2583 { 2584 handle_drag_event(event); 2585 } 2586 2581 2587 void help_text_area::scroll(unsigned int) 2582 2588 { … … 2619 2625 back_topics_(), 2620 2626 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"), 2623 2629 shown_topic_(NULL) 2624 2630 { … … 2631 2637 #ifdef __IPHONEOS__ 2632 2638 //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 2634 2644 #else 2635 2645 set_measurements(font::relative_size(400), font::relative_size(500)); … … 3123 3133 3124 3134 #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 3127 3142 #else 3128 3143 const int width = std::min<int>(font::relative_size(900), screen.x() - font::relative_size(20)); … … 3141 3156 } 3142 3157 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"); 3144 3159 buttons_ptr.push_back(&close_button_); 3145 3160
Note: See TracChangeset
for help on using the changeset viewer.