mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-21 05:34:10 -04:00
Fix Issues with mod resetting, make gamemode ids lowercase, update modding.md
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#ifdef TARGET_PC
|
||||
#include "dusk/ui/prelaunch.hpp"
|
||||
#include "dusk/ui/menu_bar.hpp"
|
||||
#include "dusk/ui/mods_window.hpp"
|
||||
#include "dusk/gamemode.hpp"
|
||||
#endif
|
||||
|
||||
@@ -167,6 +168,10 @@ void mDoRst_resetCallBack(int port, void*) {
|
||||
// Hide the menu bar
|
||||
menubar->Document::hide(true);
|
||||
}
|
||||
if (auto* modwindow = dynamic_cast<dusk::ui::ModsWindow*>(doc.get())) {
|
||||
// Hide the mod window (if we were disasbling or reloading a mod)
|
||||
modwindow->pop();
|
||||
}
|
||||
if (auto* prelaunch = dynamic_cast<dusk::ui::Prelaunch*>(doc.get())) {
|
||||
prelaunchExists = true;
|
||||
prelaunch->focus();
|
||||
|
||||
Reference in New Issue
Block a user