Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8689 in orxonox.OLD for branches


Ignore:
Timestamp:
Jun 21, 2006, 10:50:07 PM (18 years ago)
Author:
bensch
Message:

orxonox/gui: image-widget work

Location:
branches/gui/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/src/lib/gui/gl/specials/glgui_imagebutton.cc

    r8688 r8689  
    2424{
    2525
     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
    2649
    2750}
  • branches/gui/src/lib/gui/gl/specials/glgui_imagebutton.h

    r8688 r8689  
    1010#define _GLGUI_IMAGEBUTTON_H
    1111
    12 #include "glgui_widget.h"
     12#include "glgui_pushbutton.h"
    1313#include "event_listener.h"
    1414
     15
    1516#include <stack>
     17
     18class GLGuiImage;
    1619
    1720//! Namespace of the GLGuiImageButton of ORXONOX.
    1821namespace OrxGui
    1922{
    20   class GLGuiImageButton : public GLGuiWidget
     23  class GLGuiImageButton : public GLGuiPushButton
    2124  {
    2225  public:
    23     GLGuiImageButton();
     26    GLGuiImageButton(const std::string& label, unsigned int levelID, const std::string& imageName, GLGuiImage* image);
    2427    virtual ~GLGuiImageButton();
    2528
    26     void debug() const;
    2729
    2830  protected:
    29     virtual void resize();
     31    virtual void releasing(const Vector2D& pos, bool focused);
     32    virtual void receivedFocus();
     33    virtual void removedFocus();
     34
    3035
    3136  private:
     37    unsigned int        levelID;
     38    std::string         imageName;
     39    GLGuiImage*         image;
    3240
    3341  private:
  • branches/gui/src/story_entities/game_menu.cc

    r8688 r8689  
    5151
    5252  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);
    5853
    5954  if (root != NULL)
     
    282277
    283278  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);
    284282
    285283  /* now call the underlying*/
Note: See TracChangeset for help on using the changeset viewer.