Changeset 8740 in orxonox.OLD for trunk/src/story_entities/menu/glgui_imagebutton.cc
- Timestamp:
- Jun 23, 2006, 11:22:37 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/menu/glgui_imagebutton.cc
r8717 r8740 38 38 void GLGuiImageButton::releasing(const Vector2D& pos, bool focused) 39 39 { 40 GLGuiPushButton::releasing(pos, focused); 40 41 if (focused) 41 42 this->emit(startLevel(this->levelID)); … … 55 56 { 56 57 GLGuiPushButton::showing(); 57 this->image->show(); 58 59 //this->image->show(); 58 60 } 59 61 … … 62 64 GLGuiPushButton::hiding(); 63 65 64 this->image->hide(); 66 //this->image->hide(); 67 } 68 69 bool GLGuiImageButton::processEvent(const Event& event) 70 { 71 if (event.type == SDLK_SPACE) 72 { 73 if (event.bPressed) 74 // emit(pushed()); 75 ; 76 else 77 { 78 // emit(released()); 79 emit(startLevel(this->levelID)); 80 } 81 return true; 82 } 83 return false; 65 84 } 66 85 67 86 87 68 88 }
Note: See TracChangeset
for help on using the changeset viewer.