Changeset 8689 in orxonox.OLD for branches/gui/src
- Timestamp:
- Jun 21, 2006, 10:50:07 PM (18 years ago)
- Location:
- branches/gui/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl/specials/glgui_imagebutton.cc
r8688 r8689 24 24 { 25 25 26 GLGuiImageButton::GLGuiImageButton(const std::string& label, unsigned int levelID, const std::string& imageName, GLGuiImage* image) 27 : GLGuiPushButton(label) 28 { 29 this->imageName = imageName; 30 this->levelID = levelID; 31 this->image = image; 32 } 33 34 GLGuiImageButton::~GLGuiImageButton() 35 {} 36 37 void GLGuiImageButton::releasing(const Vector2D& pos, bool focused) 38 { 39 40 } 41 42 void GLGuiImageButton::receivedFocus() 43 {} 44 void GLGuiImageButton::removedFocus() 45 {} 46 47 48 26 49 27 50 } -
branches/gui/src/lib/gui/gl/specials/glgui_imagebutton.h
r8688 r8689 10 10 #define _GLGUI_IMAGEBUTTON_H 11 11 12 #include "glgui_ widget.h"12 #include "glgui_pushbutton.h" 13 13 #include "event_listener.h" 14 14 15 15 16 #include <stack> 17 18 class GLGuiImage; 16 19 17 20 //! Namespace of the GLGuiImageButton of ORXONOX. 18 21 namespace OrxGui 19 22 { 20 class GLGuiImageButton : public GLGui Widget23 class GLGuiImageButton : public GLGuiPushButton 21 24 { 22 25 public: 23 GLGuiImageButton( );26 GLGuiImageButton(const std::string& label, unsigned int levelID, const std::string& imageName, GLGuiImage* image); 24 27 virtual ~GLGuiImageButton(); 25 28 26 void debug() const;27 29 28 30 protected: 29 virtual void resize(); 31 virtual void releasing(const Vector2D& pos, bool focused); 32 virtual void receivedFocus(); 33 virtual void removedFocus(); 34 30 35 31 36 private: 37 unsigned int levelID; 38 std::string imageName; 39 GLGuiImage* image; 32 40 33 41 private: -
branches/gui/src/story_entities/game_menu.cc
r8688 r8689 51 51 52 52 this->cameraVector = Vector(50.0, 0.0, 0.0); 53 54 55 OrxGui::GLGuiHandler::getInstance()->activateCursor();56 OrxGui::GLGuiHandler::getInstance()->activate();57 OrxGui::GLGuiHandler::getInstance()->cursor()->loadTextureSequence(ResourceManager::getInstance()->getDataDir() + "/" + "maps/reap_mouse/reap_mouse_##.png", 1, 49);58 53 59 54 if (root != NULL) … … 282 277 283 278 this->showMainMenu(); 279 OrxGui::GLGuiHandler::getInstance()->activateCursor(); 280 OrxGui::GLGuiHandler::getInstance()->activate(); 281 OrxGui::GLGuiHandler::getInstance()->cursor()->loadTextureSequence(ResourceManager::getInstance()->getDataDir() + "/" + "maps/reap_mouse/reap_mouse_##.png", 1, 49); 284 282 285 283 /* now call the underlying*/
Note: See TracChangeset
for help on using the changeset viewer.