Changeset 8740 in orxonox.OLD for trunk/src/story_entities/menu
- Timestamp:
- Jun 23, 2006, 11:22:37 AM (18 years ago)
- Location:
- trunk/src/story_entities/menu
- Files:
-
- 2 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 } -
trunk/src/story_entities/menu/glgui_imagebutton.h
r8717 r8740 1 1 /*! 2 * @file shell.h 3 * Definition of a on-screen-shell 2 * @file glgui_imagebutton.h 4 3 * 5 * @todo Buffer Display in different Colors for different debug mode.6 * @todo choose color of the Font and the background.7 4 */ 8 5 … … 25 22 26 23 24 void push(); 25 void release(); 26 27 27 DeclareSignal1(startLevel, int); 28 28 … … 35 35 virtual void hiding(); 36 36 37 37 virtual bool processEvent(const Event& event); 38 38 private: 39 39 unsigned int levelID;
Note: See TracChangeset
for help on using the changeset viewer.