mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-09-14 13:35:31 -05:00
Revisions, SVI import fix.
This commit is contained in:
@@ -36,15 +36,18 @@ namespace ui
|
||||
~TextScroll() {};
|
||||
|
||||
/// @brief Creates and returns a new TextScroll. See constructor.
|
||||
static std::shared_ptr<ui::TextScroll> create(std::string_view text,
|
||||
int x,
|
||||
int y,
|
||||
int width,
|
||||
int height,
|
||||
int fontSize,
|
||||
sdl::Color textColor,
|
||||
sdl::Color clearColor,
|
||||
bool center = true);
|
||||
static inline std::shared_ptr<ui::TextScroll> create(std::string_view text,
|
||||
int x,
|
||||
int y,
|
||||
int width,
|
||||
int height,
|
||||
int fontSize,
|
||||
sdl::Color textColor,
|
||||
sdl::Color clearColor,
|
||||
bool center = true)
|
||||
{
|
||||
return std::make_shared<ui::TextScroll>(text, x, y, width, height, fontSize, textColor, clearColor, center);
|
||||
}
|
||||
|
||||
/// @brief Creates/sets the text and parameters for TextScroll.
|
||||
/// @param text Text to display/scroll.
|
||||
|
||||
Reference in New Issue
Block a user