Fix system save check.

This commit is contained in:
J-D-K
2025-06-09 18:05:15 -04:00
parent 5d14f26495
commit 95ecbec3e4
12 changed files with 95 additions and 92 deletions

View File

@@ -58,23 +58,30 @@ namespace ui
/// @brief Returns a pointer to the render target of the panel.
/// @return Raw SDL_Texture pointer to target.
SDL_Texture *get(void);
SDL_Texture *get_target(void);
private:
/// @brief Bool for whether panel is fully open or not.
bool m_isOpen = false;
/// @brief Whether or not to close panel.
bool m_closePanel = false;
/// @brief Current X coordinate to render to. Panels are always 720 pixels in height so no Y is required.
double m_x;
/// @brief Width of the panel in pixels.
int m_width;
/// @brief Target X position of panel.
double m_targetX;
/// @brief Which side the panel is on.
SlideOutPanel::Side m_side;
/// @brief Render target if panel.
sdl::SharedTexture m_renderTarget;
/// @brief Vector of elements.
std::vector<std::shared_ptr<ui::Element>> m_elements;
};

View File

@@ -37,20 +37,28 @@ namespace ui
private:
/// @brief Text to display.
std::string m_text;
/// @brief X coordinate to render text at.
int m_x;
/// @brief Y coordinate to render text at.
int m_y;
/// @brief Font size used to calculate and render text.
int m_fontSize = 0;
/// @brief Color used to render the text.
sdl::Color m_textColor;
/// @brief Width of text in pixels.
int m_textWidth = 0;
/// @brief Whether or not text is too wide to fit into the availableWidth passed to the constructor.
bool m_textScrolling = false;
/// @brief Whether or not a scroll was triggered.
bool m_textScrollTriggered = false;
/// @brief Timer for scrolling text.
sys::Timer m_scrollTimer;
};