Files
devilutionX/SourceX/DiabloUI/scrollbar.cpp
T
Gleb Mazovetskiy e4ef58f73d DiabloUI: Add a scroll bar to hero selection
Has the same weird behaviour as the actual Diablo scrollbar but without
the subtle mouse interaction bugs.
2019-10-01 17:28:41 +02:00

22 lines
465 B
C++

#include "scrollbar.h"
namespace dvl {
Art ArtScrollBarBackground;
Art ArtScrollBarThumb;
Art ArtScrollBarArrow;
void LoadScrollBar() {
LoadArt("ui_art\\sb_bg.pcx", &ArtScrollBarBackground);
LoadArt("ui_art\\sb_thumb.pcx", &ArtScrollBarThumb);
LoadArt("ui_art\\sb_arrow.pcx", &ArtScrollBarArrow, 4);
}
void UnloadScrollBar() {
ArtScrollBarArrow.Unload();
ArtScrollBarThumb.Unload();
ArtScrollBarBackground.Unload();
}
} // namespace