Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8691 in orxonox.OLD for branches/gui/src/story_entities/menu


Ignore:
Timestamp:
Jun 21, 2006, 11:29:35 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: now one can enter levels with the GUI, and Images should be shown as Well

Location:
branches/gui/src/story_entities/menu
Files:
1 added
2 moved

Legend:

Unmodified
Added
Removed
  • branches/gui/src/story_entities/menu/glgui_imagebutton.cc

    r8689 r8691  
    1717
    1818#include "glgui_imagebutton.h"
    19 #include "multi_line_text.h"
    2019
    2120#include "debug.h"
     
    3736  void GLGuiImageButton::releasing(const Vector2D& pos, bool focused)
    3837  {
    39 
     38    this->emit(startLevel(this->levelID));
    4039  }
    4140
    4241  void GLGuiImageButton::receivedFocus()
    43   {}
     42  {
     43    this->image->loadImageFromFile(this->imageName);
     44  }
    4445  void GLGuiImageButton::removedFocus()
    4546  {}
  • branches/gui/src/story_entities/menu/glgui_imagebutton.h

    r8689 r8691  
    1313#include "event_listener.h"
    1414
    15 
    16 #include <stack>
    17 
    18 class GLGuiImage;
     15#include "glgui_image.h"
    1916
    2017//! Namespace of the GLGuiImageButton of ORXONOX.
     
    2724    virtual ~GLGuiImageButton();
    2825
     26
     27    DeclareSignal1(startLevel, int);
    2928
    3029  protected:
Note: See TracChangeset for help on using the changeset viewer.