Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8647 in orxonox.OLD


Ignore:
Timestamp:
Jun 20, 2006, 7:02:22 PM (18 years ago)
Author:
bensch
Message:

correct Values of Boxes

Location:
branches/gui/src/lib/gui/gl
Files:
2 edited

Legend:

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

    r8633 r8647  
    273273    float rowPos = 0.0f;
    274274
    275     for (*row = 0; *row < this->rowCount(); *row++)
    276     {
    277       if (pixelPosition.x > rowPos  && pixelPosition.x  < (rowPos += _rowHeights[*row]))
     275    for (*row = 0; *row < this->rowCount(); (*row)++)
     276    {
     277      if (pixelPosition.y > rowPos  && pixelPosition.y  < (rowPos += _rowHeights[*row]))
    278278        break;
    279279    }
    280     for (*column = 0; *column < this->columnCount(); *column++)
    281     {
    282       if (pixelPosition.y > columnPos && pixelPosition.y  < (columnPos += _columnWidths[*column]))
     280    for (*column = 0; *column < this->columnCount(); (*column)++)
     281    {
     282      if (pixelPosition.x > columnPos && pixelPosition.x  < (columnPos += _columnWidths[*column]))
    283283        break;
    284284    }
    285285
    286     printf("%d %d\n", *row, *column);
     286    PRINTF(3)("Mouse Over row:%d Column:%d\n", *row, *column);
    287287  }
    288288
  • branches/gui/src/lib/gui/gl/glgui_widget.h

    r8619 r8647  
    251251  private:
    252252    static GLGuiWidget*            _selected;         //!< The currently selected Widget.
    253     static GLGuiWidget*            _focused;          //!< The currently Focused Widget.
    254     static GLGuiWidget*            _inputGrabber;     //!< The Widget that grabs input.
     253    static GLGuiWidget*            _focused;          //!< The currently Focused Widget (mouse-focus).
     254    static GLGuiWidget*            _inputGrabber;     //!< The Widget that grabs input (keyboard-focus).
    255255
    256256
Note: See TracChangeset for help on using the changeset viewer.