12 changed files with 82 additions and 28 deletions
@ -0,0 +1,22 @@
|
||||
#include "panels/info_box.hpp" |
||||
|
||||
#include "engine/load_cel.hpp" |
||||
|
||||
namespace devilution { |
||||
|
||||
std::optional<CelSprite> pSTextBoxCels; |
||||
std::optional<CelSprite> pSTextSlidCels; |
||||
|
||||
void InitInfoBoxGfx() |
||||
{ |
||||
pSTextSlidCels = LoadCel("Data\\TextSlid.CEL", 12); |
||||
pSTextBoxCels = LoadCel("Data\\TextBox2.CEL", 271); |
||||
} |
||||
|
||||
void FreeInfoBoxGfx() |
||||
{ |
||||
pSTextBoxCels = std::nullopt; |
||||
pSTextSlidCels = std::nullopt; |
||||
} |
||||
|
||||
} // namespace devilution
|
||||
@ -0,0 +1,25 @@
|
||||
#pragma once |
||||
|
||||
#include "engine/cel_sprite.hpp" |
||||
#include "utils/stdcompat/optional.hpp" |
||||
|
||||
namespace devilution { |
||||
|
||||
/**
|
||||
* @brief Info box frame |
||||
* |
||||
* Used in stores, the quest log, the help window, and the unique item info window. |
||||
*/ |
||||
extern std::optional<CelSprite> pSTextBoxCels; |
||||
|
||||
/**
|
||||
* @brief Info box scrollbar graphics. |
||||
* |
||||
* Used in stores and `DrawDiabloMsg`. |
||||
*/ |
||||
extern std::optional<CelSprite> pSTextSlidCels; |
||||
|
||||
void InitInfoBoxGfx(); |
||||
void FreeInfoBoxGfx(); |
||||
|
||||
} // namespace devilution
|
||||
Loading…
Reference in new issue