mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-03-23 02:04:35 -05:00
24 lines
761 B
C++
24 lines
761 B
C++
#include "appstates/TaskState.hpp"
|
|
|
|
#include "appstates/FadeState.hpp"
|
|
#include "graphics/colors.hpp"
|
|
#include "input.hpp"
|
|
#include "sdl.hpp"
|
|
#include "strings/strings.hpp"
|
|
#include "ui/PopMessageManager.hpp"
|
|
|
|
TaskState::~TaskState() { FadeState::create_and_push(colors::DIM_BACKGROUND, 0x88, 0x00, nullptr); }
|
|
|
|
void TaskState::update() { BaseTask::update(); }
|
|
|
|
void TaskState::render()
|
|
{
|
|
const std::string status = m_task->get_status();
|
|
const int statusX = 640 - (sdl::text::get_width(24, status.c_str()) / 2);
|
|
|
|
sdl::render_rect_fill(sdl::Texture::Null, 0, 0, 1280, 720, colors::DIM_BACKGROUND);
|
|
sdl::text::render(sdl::Texture::Null, statusX, 351, 24, sdl::text::NO_WRAP, colors::WHITE, status);
|
|
|
|
BaseTask::render_loading_glyph();
|
|
}
|