Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

orxonox/trunk: now the elements are draw correctly

File:
1 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}
Note: See TracChangeset for help on using the changeset viewer.