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
646 B

#include "scrollbar.h"
#include "engine/load_pcx.hpp"
namespace devilution {
std::optional<OwnedPcxSprite> ArtScrollBarBackground;
std::optional<OwnedPcxSprite> ArtScrollBarThumb;
std::optional<OwnedPcxSpriteSheet> ArtScrollBarArrow;
void LoadScrollBar()
{
ArtScrollBarBackground = LoadPcxAsset("ui_art\\sb_bg.pcx");
ArtScrollBarThumb = LoadPcxAsset("ui_art\\sb_thumb.pcx");
ArtScrollBarArrow = LoadPcxSpriteSheetAsset("ui_art\\sb_arrow.pcx", 4);
}
void UnloadScrollBar()
{
ArtScrollBarArrow = std::nullopt;
ArtScrollBarThumb = std::nullopt;
ArtScrollBarBackground = std::nullopt;
}
} // namespace devilution