mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-09-09 02:55:23 -05:00
remote::Storage just barely working.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "ui/ColorMod.hpp"
|
||||
|
||||
void ui::ColorMod::update(void)
|
||||
void ui::ColorMod::update()
|
||||
{
|
||||
if (m_direction && (m_colorMod += 6) >= 0x72)
|
||||
{
|
||||
@@ -12,7 +12,7 @@ void ui::ColorMod::update(void)
|
||||
}
|
||||
}
|
||||
|
||||
ui::ColorMod::operator sdl::Color(void) const
|
||||
ui::ColorMod::operator sdl::Color() const
|
||||
{
|
||||
return {static_cast<uint32_t>((0x88 + m_colorMod) << 16 | (0xC5 + (m_colorMod / 2)) << 8 | 0xFF)};
|
||||
}
|
||||
|
||||
@@ -28,7 +28,6 @@ void ui::IconMenu::render(SDL_Texture *target, bool hasFocus)
|
||||
}
|
||||
sdl::render_rect_fill(m_optionTarget->get(), 0, 0, 4, 130, {0x00FFC5FF});
|
||||
}
|
||||
//m_options.at(i)->render(m_optiontarget->Get(), 0, 0);
|
||||
m_options.at(i)->render_stretched(m_optionTarget->get(), 8, 1, 128, 128);
|
||||
m_optionTarget->render(target, m_x, tempY);
|
||||
}
|
||||
|
||||
@@ -145,7 +145,7 @@ void ui::Menu::edit_option(int index, std::string_view newOption)
|
||||
m_options[index] = newOption.data();
|
||||
}
|
||||
|
||||
int ui::Menu::get_selected(void) const
|
||||
int ui::Menu::get_selected() const
|
||||
{
|
||||
return m_selected;
|
||||
}
|
||||
@@ -160,7 +160,7 @@ void ui::Menu::set_width(int width)
|
||||
m_width = width;
|
||||
}
|
||||
|
||||
void ui::Menu::reset(void)
|
||||
void ui::Menu::reset()
|
||||
{
|
||||
m_selected = 0;
|
||||
m_y = m_originalY;
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace
|
||||
|
||||
} // namespace
|
||||
|
||||
void ui::PopMessageManager::update(void)
|
||||
void ui::PopMessageManager::update()
|
||||
{
|
||||
// Grab instance.
|
||||
PopMessageManager &manager = PopMessageManager::get_instance();
|
||||
@@ -65,7 +65,7 @@ void ui::PopMessageManager::update(void)
|
||||
}
|
||||
}
|
||||
|
||||
void ui::PopMessageManager::render(void)
|
||||
void ui::PopMessageManager::render()
|
||||
{
|
||||
// Get instance.
|
||||
PopMessageManager &manager = PopMessageManager::get_instance();
|
||||
|
||||
@@ -59,29 +59,29 @@ void ui::SlideOutPanel::render(SDL_Texture *Target, bool hasFocus)
|
||||
m_renderTarget->render(NULL, m_x, 0);
|
||||
}
|
||||
|
||||
void ui::SlideOutPanel::clear_target(void)
|
||||
void ui::SlideOutPanel::clear_target()
|
||||
{
|
||||
m_renderTarget->clear(colors::SLIDE_PANEL_CLEAR);
|
||||
}
|
||||
|
||||
void ui::SlideOutPanel::reset(void)
|
||||
void ui::SlideOutPanel::reset()
|
||||
{
|
||||
m_x = m_side == Side::Left ? -(m_width) : 1280.0f;
|
||||
m_isOpen = false;
|
||||
m_closePanel = false;
|
||||
}
|
||||
|
||||
void ui::SlideOutPanel::close(void)
|
||||
void ui::SlideOutPanel::close()
|
||||
{
|
||||
m_closePanel = true;
|
||||
}
|
||||
|
||||
bool ui::SlideOutPanel::is_open(void) const
|
||||
bool ui::SlideOutPanel::is_open() const
|
||||
{
|
||||
return m_isOpen;
|
||||
}
|
||||
|
||||
bool ui::SlideOutPanel::is_closed(void) const
|
||||
bool ui::SlideOutPanel::is_closed() const
|
||||
{
|
||||
return m_closePanel && (m_side == Side::Left ? m_x > -(m_width) : m_x < 1280);
|
||||
}
|
||||
@@ -91,12 +91,12 @@ void ui::SlideOutPanel::push_new_element(std::shared_ptr<ui::Element> newElement
|
||||
m_elements.push_back(newElement);
|
||||
}
|
||||
|
||||
void ui::SlideOutPanel::clear_elements(void)
|
||||
void ui::SlideOutPanel::clear_elements()
|
||||
{
|
||||
m_elements.clear();
|
||||
}
|
||||
|
||||
SDL_Texture *ui::SlideOutPanel::get_target(void)
|
||||
SDL_Texture *ui::SlideOutPanel::get_target()
|
||||
{
|
||||
return m_renderTarget->get();
|
||||
}
|
||||
|
||||
@@ -30,18 +30,18 @@ void ui::TitleTile::render(SDL_Texture *target, int x, int y)
|
||||
}
|
||||
}
|
||||
|
||||
void ui::TitleTile::reset(void)
|
||||
void ui::TitleTile::reset()
|
||||
{
|
||||
m_renderWidth = 128;
|
||||
m_renderHeight = 128;
|
||||
}
|
||||
|
||||
int ui::TitleTile::get_width(void) const
|
||||
int ui::TitleTile::get_width() const
|
||||
{
|
||||
return m_renderWidth;
|
||||
}
|
||||
|
||||
int ui::TitleTile::get_height(void) const
|
||||
int ui::TitleTile::get_height() const
|
||||
{
|
||||
return m_renderHeight;
|
||||
}
|
||||
|
||||
@@ -111,12 +111,12 @@ void ui::TitleView::render(SDL_Texture *target, bool hasFocus)
|
||||
m_titleTiles.at(m_selected).render(target, m_selectedX, m_selectedY);
|
||||
}
|
||||
|
||||
int ui::TitleView::get_selected(void) const
|
||||
int ui::TitleView::get_selected() const
|
||||
{
|
||||
return m_selected;
|
||||
}
|
||||
|
||||
void ui::TitleView::refresh(void)
|
||||
void ui::TitleView::refresh()
|
||||
{
|
||||
// Clear the current tiles.
|
||||
m_titleTiles.clear();
|
||||
@@ -140,7 +140,7 @@ void ui::TitleView::refresh(void)
|
||||
}
|
||||
}
|
||||
|
||||
void ui::TitleView::reset(void)
|
||||
void ui::TitleView::reset()
|
||||
{
|
||||
for (ui::TitleTile ¤tTile : m_titleTiles)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user