diff options
author | Eugene Sandulenko | 2006-05-27 05:46:04 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2006-05-27 05:46:04 +0000 |
commit | b56c7b88d7de665f92e1600f81dcec5c4af3a2aa (patch) | |
tree | 08f6922d09a77b9d4f93c3aa354436e0e4c5713e /gui/ScrollBarWidget.cpp | |
parent | 3d0aa0a4d9fa36de8b8697ed65d8c1f4a6356a07 (diff) | |
download | scummvm-rg350-b56c7b88d7de665f92e1600f81dcec5c4af3a2aa.tar.gz scummvm-rg350-b56c7b88d7de665f92e1600f81dcec5c4af3a2aa.tar.bz2 scummvm-rg350-b56c7b88d7de665f92e1600f81dcec5c4af3a2aa.zip |
Major GUI update:
- Implemented padding in console
- Update only current line in console instead of whole screen
- Fixed caret positioning in edit text widget
- Improved buttons drawing, now they look more realistic
- Added label spacing in popup widget
- Correct shadow in popup widget
- Fixed up with selected popup widget being drawn on wrong tab
- Added shading to list dialog
- Adjusted shading of inactive widgets
- Proper coloring of browset (add game) dialog
- Introduced Container widget
- Used Container widget in scumm save/load dialog. Now it looks properly
- Adjusted button colors even more. Now they match almost perfectly albeit with banding
- Made scrollbar appear only when it is really needed
svn-id: r22670
Diffstat (limited to 'gui/ScrollBarWidget.cpp')
-rw-r--r-- | gui/ScrollBarWidget.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gui/ScrollBarWidget.cpp b/gui/ScrollBarWidget.cpp index 0e2540ffac..34d47640dc 100644 --- a/gui/ScrollBarWidget.cpp +++ b/gui/ScrollBarWidget.cpp @@ -173,9 +173,11 @@ void ScrollBarWidget::recalc() { UP_DOWN_BOX_HEIGHT + (_h - 2 * UP_DOWN_BOX_HEIGHT - _sliderHeight) * _currentPos / (_numEntries - _entriesPerPage); if (_sliderPos < 0) _sliderPos = 0; + clearFlags(WIDGET_INVISIBLE); } else { _sliderHeight = _h - 2 * UP_DOWN_BOX_HEIGHT; _sliderPos = UP_DOWN_BOX_HEIGHT; + setFlags(WIDGET_INVISIBLE); } } |