Port career setup, manager hub and context-aware native UI (by Codex)

This commit is contained in:
Codex authored and Codex committed 2026-10-27 01:57:58 +01:00
1 parent d88bf2872a
commit d085697bb9
37 files changed
+1447 -421

No files matched your search

+4 -2
View File
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-only
#include "modern/ui/demo_stadium.hpp"
#include "modern/ui/demo_career.hpp"
#include "modern/ui/demo_finance.hpp"
#include <algorithm>
#include <array>
@@ -48,8 +49,9 @@ std::string owner(const Catalog &world, const Json *state, std::string requested
if (requested.empty() && state && state->is_object()) {
const auto managers = state->find("managers");
if (managers != state->end() && managers->is_array() && !managers->empty() && (*managers)[0].is_object()) {
const auto club = (*managers)[0].find("club");
if (club != (*managers)[0].end() && club->is_string()) requested = club->get<std::string>();
const auto &active=demo_career_manager(*state);
const auto club = active.find("club");
if (club != active.end() && club->is_string()) requested = club->get<std::string>();
}
}
if (!requested.empty()) {