Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
save glow, bump ver
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnut committed Jan 30, 2024
1 parent 5074f37 commit c7d6c6f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"gd": {
"win": "2.204"
},
"version": "v2.2.3",
"version": "v2.2.4",
"id": "maxnu.gd_mega_overlay",
"name": "GD Mega Overlay",
"developer": "maxnu & SpaghettDev",
Expand Down
2 changes: 2 additions & 0 deletions src/Common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ void Common::saveIcons()
Mod::get()->setSavedValue<int>("icons/color", GameManager::get()->m_playerColor);
Mod::get()->setSavedValue<int>("icons/color2", GameManager::get()->m_playerColor2);
Mod::get()->setSavedValue<int>("icons/colorglow", GameManager::get()->m_playerGlowColor);
Mod::get()->setSavedValue<int>("icons/glow", GameManager::get()->m_playerGlow);
Mod::get()->setSavedValue<int>("icons/streak", GameManager::get()->m_playerStreak);
Mod::get()->setSavedValue<int>("icons/shipfire", GameManager::get()->m_playerShipFire);
Mod::get()->setSavedValue<int>("icons/death", GameManager::get()->m_playerDeathEffect);
Expand All @@ -76,6 +77,7 @@ void Common::loadIcons()
GameManager::get()->m_playerColor = Settings::get<int>("icons/color", GameManager::get()->m_playerColor);
GameManager::get()->m_playerColor2 = Settings::get<int>("icons/color2", GameManager::get()->m_playerColor2);
GameManager::get()->m_playerGlowColor = Settings::get<int>("icons/colorglow", GameManager::get()->m_playerGlowColor);
GameManager::get()->m_playerGlow = Settings::get<int>("icons/glow", GameManager::get()->m_playerGlow);
GameManager::get()->m_playerStreak = Settings::get<int>("icons/streak", GameManager::get()->m_playerStreak);
GameManager::get()->m_playerShipFire = Settings::get<int>("icons/shipfire", GameManager::get()->m_playerShipFire);
GameManager::get()->m_playerDeathEffect = Settings::get<int>("icons/death", GameManager::get()->m_playerDeathEffect);
Expand Down
4 changes: 4 additions & 0 deletions src/Macrobot/Macrobot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,8 @@ void Macrobot::save(const std::string& file)
f.close();

FLAlertLayer::create("Info", fmt::format("{} saved with {} inputs.", file, macro.inputs.size()), "Ok")->show();

macroList.push_back(file);
}

void Macrobot::load(const std::string& file)
Expand Down Expand Up @@ -432,6 +434,8 @@ void Macrobot::drawWindow()

void Macrobot::getMacros()
{
macroList.clear();

ghc::filesystem::path macroPath = Mod::get()->getSaveDir() / "macros";

for (const auto& entry : ghc::filesystem::directory_iterator(macroPath))
Expand Down

0 comments on commit c7d6c6f

Please sign in to comment.