mirror of
https://github.com/libretro/devilutionX.git
synced 2026-11-13 04:34:45 -10:00
Has the same weird behaviour as the actual Diablo scrollbar but without the subtle mouse interaction bugs.
22 lines
465 B
C++
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
|