Port career setup, manager hub and context-aware native UI (by Codex)
This commit is contained in:
1 parent
d88bf2872a
commit
d085697bb9
37 files changed
+1447
-421
No files matched your search
@@ -1,5 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
#include "modern/ui/demo_widgets.hpp"
|
||||
#include "modern/ui/demo_career.hpp"
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <chrono>
|
||||
@@ -27,7 +28,7 @@ const Json &widget_catalogue() {
|
||||
return catalogue;
|
||||
}
|
||||
Json demo_desktop_widgets(const Catalog &world, const Json &state) {
|
||||
const auto own = state.at("managers")[0].at("club").get<std::string>();
|
||||
const auto own = demo_career_manager(state).value("club", "");
|
||||
const auto *club = world.find("clubs", own);
|
||||
const auto clubs = world.clubs(club ? club->value("competition", "") : "");
|
||||
std::string opponent = own;
|
||||
|
||||
Reference in new issue
Block a user