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

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