Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8740 in orxonox.OLD for trunk/src/story_entities/menu


Ignore:
Timestamp:
Jun 23, 2006, 11:22:37 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: now the elements are draw correctly

Location:
trunk/src/story_entities/menu
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/menu/glgui_imagebutton.cc

    r8717 r8740  
    3838  void GLGuiImageButton::releasing(const Vector2D& pos, bool focused)
    3939  {
     40    GLGuiPushButton::releasing(pos, focused);
    4041    if (focused)
    4142      this->emit(startLevel(this->levelID));
     
    5556  {
    5657    GLGuiPushButton::showing();
    57     this->image->show();
     58
     59    //this->image->show();
    5860  }
    5961
     
    6264    GLGuiPushButton::hiding();
    6365
    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;
    6584  }
    6685
    6786
     87
    6888}
  • trunk/src/story_entities/menu/glgui_imagebutton.h

    r8717 r8740  
    11/*!
    2  * @file shell.h
    3  * Definition of a on-screen-shell
     2 * @file glgui_imagebutton.h
    43 *
    5  * @todo Buffer Display in different Colors for different debug mode.
    6  * @todo choose color of the Font and the background.
    74 */
    85
     
    2522
    2623
     24    void push();
     25    void release();
     26
    2727    DeclareSignal1(startLevel, int);
    2828
     
    3535    virtual void hiding();
    3636
    37 
     37    virtual bool processEvent(const Event& event);
    3838  private:
    3939    unsigned int        levelID;
Note: See TracChangeset for help on using the changeset viewer.