mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-09-07 01:55:19 -05:00
remote::Storage just barely working.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace ui
|
||||
{
|
||||
public:
|
||||
/// @brief Default constructor.
|
||||
Element(void) = default;
|
||||
Element() = default;
|
||||
|
||||
/// @brief Virtual destructor.
|
||||
virtual ~Element() {};
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user