remote::Storage just barely working.

This commit is contained in:
J-D-K
2025-07-04 13:06:47 -04:00
parent e29db89706
commit e27e0c8e51
92 changed files with 2240 additions and 1044 deletions

View File

@@ -9,14 +9,14 @@ namespace ui
{
public:
/// @brief Default constructor.
ColorMod(void) = default;
ColorMod() = default;
/// @brief Updates the color modification variable.
void update(void);
void update();
/// @brief Operator that allows using this as an sdl::Color directly.
/// @note Since all of these pulse the same color, no sense in not doing this.
operator sdl::Color(void) const;
operator sdl::Color() const;
private:
/// @brief Whether we're adding or subtracting from the color value.

View File

@@ -8,7 +8,7 @@ namespace ui
{
public:
/// @brief Default constructor.
Element(void) = default;
Element() = default;
/// @brief Virtual destructor.
virtual ~Element() {};

View File

@@ -8,7 +8,7 @@ namespace ui
{
public:
/// @brief Default constructor.
IconMenu(void) = default;
IconMenu() = default;
/// @brief This constructor calls initialize.
/// @param x X coordinate to render the menu to.

View File

@@ -41,7 +41,7 @@ namespace ui
/// @brief Returns the index of the currently selected menu option.
/// @return Index of currently selected option.
int get_selected(void) const;
int get_selected() const;
/// @brief Sets the selected item.
/// @param selected Value to set selected to.
@@ -52,7 +52,7 @@ namespace ui
void set_width(int width);
/// @brief Resets the menu and returns it to an empty, default state.
void reset(void);
void reset();
protected:
/// @brief X coordinate menu is rendered to.

View File

@@ -31,10 +31,10 @@ namespace ui
PopMessageManager &operator=(PopMessageManager &&) = delete;
/// @brief Updates and processes message queue.
static void update(void);
static void update();
/// @brief Renders messages to screen.
static void render(void);
static void render();
/// @brief Pushes a new message to the queue for processing.
/// @param displayTicks Number of ticks for the message to be displayed until it is purged.
@@ -47,9 +47,9 @@ namespace ui
private:
// Only one instance allowed.
PopMessageManager(void) = default;
PopMessageManager() = default;
// Returns the only instance.
static PopMessageManager &get_instance(void)
static PopMessageManager &get_instance()
{
static PopMessageManager manager;
return manager;

View File

@@ -33,32 +33,32 @@ namespace ui
void render(SDL_Texture *target, bool hasFocus);
/// @brief Clears the target to a semi-transparent black. To do: Maybe not hard coded color.
void clear_target(void);
void clear_target();
/// @brief Resets the panel back to its default state.
void reset(void);
void reset();
/// @brief Closes the panel.
void close(void);
void close();
/// @brief Returns if the panel is fully open.
/// @return If the panel is fully open.
bool is_open(void) const;
bool is_open() const;
/// @brief Returns if the panel is fully closed.
/// @return If the panel is fully closed.
bool is_closed(void) const;
bool is_closed() const;
/// @brief Pushes a new element to the element vector.
/// @param newElement New element to push.
void push_new_element(std::shared_ptr<ui::Element> newElement);
/// @brief Clears the element vector, freeing them in the process.
void clear_elements(void);
void clear_elements();
/// @brief Returns a pointer to the render target of the panel.
/// @return Raw SDL_Texture pointer to target.
SDL_Texture *get_target(void);
SDL_Texture *get_target();
private:
/// @brief Bool for whether panel is fully open or not.

View File

@@ -10,7 +10,7 @@ namespace ui
{
public:
/// @brief This is only here so I can get around the backup menu having static members.
TextScroll(void) = default;
TextScroll() = default;
/// @brief Constructor for TextScroll.
/// @param text Text to create the textscroll with.

View File

@@ -23,15 +23,15 @@ namespace ui
void render(SDL_Texture *target, int x, int y);
/// @brief Resets the width and height of the tile.
void reset(void);
void reset();
/// @brief Returns the render width in pixels.
/// @return Render width.
int get_width(void) const;
int get_width() const;
/// @brief Returns the render height in pixels.
/// @return Render height.
int get_height(void) const;
int get_height() const;
private:
/// @brief Width in pixels to render icon at.

View File

@@ -30,13 +30,13 @@ namespace ui
/// @brief Returns index of the currently selected tile.
/// @return Index of currently selected tile.
int get_selected(void) const;
int get_selected() const;
/// @brief Forces a refresh of the view.
void refresh(void);
void refresh();
/// @brief Resets the view to its default, empty state.
void reset(void);
void reset();
private:
/// @brief Pointer to user passed.