- Timestamp:
- Jun 21, 2006, 11:29:35 PM (18 years ago)
- Location:
- branches/gui/src
- Files:
-
- 1 added
- 3 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl/Makefile.am
r8688 r8691 31 31 glgui_cursor.cc \ 32 32 \ 33 specials/glgui_notifier.cc \ 34 specials/glgui_imagebutton.cc 33 specials/glgui_notifier.cc 35 34 36 35 … … 59 58 glgui_cursor.h \ 60 59 \ 61 specials/glgui_notifier.h \ 62 specials/glgui_imagebutton.h 60 specials/glgui_notifier.h 63 61 64 62 EXTRA_DIST = -
branches/gui/src/story_entities/Makefile.am
r8673 r8691 14 14 story_entities/movie_loader.cc \ 15 15 story_entities/game_menu.cc \ 16 story_entities/simple_game_menu.cc 16 story_entities/simple_game_menu.cc \ 17 \ 18 story_entities/menu/glgui_imagebutton.cc 17 19 18 20 StoryEntities_HEADERS_ = \ … … 29 31 story_entities/movie_loader.h \ 30 32 story_entities/game_menu.h \ 31 story_entities/simple_game_menu.h 33 story_entities/simple_game_menu.h \ 34 \ 35 story_entities/menu/glgui_imagebutton.h 36 -
branches/gui/src/story_entities/game_menu.cc
r8689 r8691 35 35 36 36 #include "glgui.h" 37 #include " gui/gl/specials/glgui_notifier.h"37 #include "menu/glgui_imagebutton.h" 38 38 39 39 //! This creates a Factory to fabricate a GameMenu … … 179 179 if( se->isContainedInMenu()) 180 180 { 181 OrxGui::GLGuiWidget* button = new OrxGui::GLGuiPushButton(se->getName()); 181 OrxGui::GLGuiImage* image = new OrxGui::GLGuiImage(); 182 image->show(); 183 image->setWidgetSize( 100, 100); 184 185 printf("%s\n", se->getMenuScreenshoot().c_str()); 186 OrxGui::GLGuiImageButton* button = new OrxGui::GLGuiImageButton(se->getName(), se->getStoryID(), se->getMenuScreenshoot(), image); 187 button->connect(SIGNAL(button, startLevel), this, SLOT(GameMenu, startLevel)); 182 188 levelsBox->pack(button); 183 189 … … 250 256 251 257 252 258 void GameMenu::startLevel(int levelID) 259 { 260 this->setNextStoryID( levelID); 261 this->stop(); 262 } 253 263 254 264 /** -
branches/gui/src/story_entities/menu/glgui_imagebutton.cc
r8689 r8691 17 17 18 18 #include "glgui_imagebutton.h" 19 #include "multi_line_text.h"20 19 21 20 #include "debug.h" … … 37 36 void GLGuiImageButton::releasing(const Vector2D& pos, bool focused) 38 37 { 39 38 this->emit(startLevel(this->levelID)); 40 39 } 41 40 42 41 void GLGuiImageButton::receivedFocus() 43 {} 42 { 43 this->image->loadImageFromFile(this->imageName); 44 } 44 45 void GLGuiImageButton::removedFocus() 45 46 {} -
branches/gui/src/story_entities/menu/glgui_imagebutton.h
r8689 r8691 13 13 #include "event_listener.h" 14 14 15 16 #include <stack> 17 18 class GLGuiImage; 15 #include "glgui_image.h" 19 16 20 17 //! Namespace of the GLGuiImageButton of ORXONOX. … … 27 24 virtual ~GLGuiImageButton(); 28 25 26 27 DeclareSignal1(startLevel, int); 29 28 30 29 protected:
Note: See TracChangeset
for help on using the changeset viewer.