mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-22 06:13:45 -07:00
Update mod_menu.cpp
This commit is contained in:
parent
1e33244fbf
commit
9a8b87d431
1 changed files with 6 additions and 2 deletions
|
@ -116,6 +116,10 @@ void AfterModChange() {
|
|||
Ship::Context::GetInstance()->GetWindow()->GetGui()->SaveConsoleVariablesNextFrame();
|
||||
}
|
||||
|
||||
void DrawModInfo(std::string file) {
|
||||
ImGui::Text(file.c_str());
|
||||
}
|
||||
|
||||
void ModMenuWindow::DrawElement() {
|
||||
if (ImGui::Button("Update")) {
|
||||
UpdateModFiles();
|
||||
|
@ -141,7 +145,7 @@ void ModMenuWindow::DrawElement() {
|
|||
AfterModChange();
|
||||
}
|
||||
ImGui::SameLine();
|
||||
ImGui::Text(file.c_str());
|
||||
DrawModInfo(file);
|
||||
}
|
||||
} else {
|
||||
ImGui::Text("<None>");
|
||||
|
@ -162,7 +166,7 @@ void ModMenuWindow::DrawElement() {
|
|||
AfterModChange();
|
||||
}
|
||||
ImGui::SameLine();
|
||||
ImGui::Text(file.c_str());
|
||||
DrawModInfo(file);
|
||||
}
|
||||
} else {
|
||||
ImGui::Text("<None>");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue