mirror of
https://github.com/diasurgical/DevilutionX.git
synced 2026-10-12 02:13:06 +00:00
29 lines
661 B
C++
29 lines
661 B
C++
#include "scrollbar.h"
|
|
|
|
#include <optional>
|
|
|
|
#include "engine/clx_sprite.hpp"
|
|
#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
|