You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
604 B
25 lines
604 B
#include "scrollbar.h" |
|
|
|
#include "engine/load_pcx.hpp" |
|
|
|
namespace devilution { |
|
|
|
OptionalOwnedClxSpriteList ArtScrollBarBackground; |
|
OptionalOwnedClxSpriteList ArtScrollBarThumb; |
|
OptionalOwnedClxSpriteList ArtScrollBarArrow; |
|
|
|
void LoadScrollBar() |
|
{ |
|
ArtScrollBarBackground = LoadPcx("ui_art\\sb_bg"); |
|
ArtScrollBarThumb = LoadPcx("ui_art\\sb_thumb"); |
|
ArtScrollBarArrow = LoadPcxSpriteList("ui_art\\sb_arrow", 4); |
|
} |
|
|
|
void UnloadScrollBar() |
|
{ |
|
ArtScrollBarArrow = std::nullopt; |
|
ArtScrollBarThumb = std::nullopt; |
|
ArtScrollBarBackground = std::nullopt; |
|
} |
|
|
|
} // namespace devilution
|
|
|