The stadium as a card model with a camera

The ground, its stands, facilities and periphery are built as bodies from the stadium
overview, seen through an axonometric camera, sorted by depth and drawn as a vector
picture. A click chooses the bowl, a stand, the floodlights or a house; the camera
flies there in 0.6 seconds (reduced motion jumps) and a card shows what stands there
and leads to the builder's offer. Stands are as deep as they have places, seats take
the club's colour, a roof and scaffolding show, and what may still be built is a
dashed footprint.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Fable 5.2 committed 2026-11-15 00:14:06 +01:00
1 parent d75617052f
commit b9d8b2db96
7 files changed
+524 -20

No files matched your search

+11 -1
View File
@@ -39,6 +39,7 @@
#include "modern/ui/settings_presentation.hpp"
#include "modern/ui/ui_preferences.hpp"
#include "modern/ui/desktop.hpp"
#include "modern/ui/stadium_model.hpp"
#include "modern/ui/demo_widgets.hpp"
#include "modern/ui/demo_files.hpp"
#include "modern/ui/gui_assets.hpp"
@@ -488,6 +489,14 @@ class App final : public Rml::EventListener {
std::shared_ptr<const Catalog> transfer_world_;
Json career_view_ = Json::object(), rankings_view_ = Json::object();
Json stadium_view_ = Json::object();
// the stadium's card model: what the camera looks at ("" the whole ground, "stadium", or a
// part such as "block:3"), and its flight from one focus to the next
std::string stadium_focus_;
stadium3d::Camera stadium_camera_, stadium_camera_from_, stadium_camera_to_;
bool stadium_flying_ = false;
uint64_t stadium_flight_start_ = 0;
bool stadium_focus_action(const std::string &, Rml::Element *);
void stadium_camera_tick();
uint64_t stadium_revision_ = 0;
std::shared_ptr<const Catalog> stadium_world_;
const DataSource *stadium_source_ = nullptr;
@@ -768,7 +777,7 @@ class App final : public Rml::EventListener {
statistics_view_ = Json::object(); statistics_trophy_ = Json::object();
statistics_scrolls_ = Json::object();
reset_news();
stadium_view_ = Json::object(); stadium_revision_ = 0;
stadium_view_ = Json::object(); stadium_revision_ = 0; stadium_focus_.clear(); stadium_flying_ = false;
stadium_world_.reset(); stadium_source_ = nullptr;
advertising_selected_ = -1; advertising_offer_ = 0; advertising_revision_ = 0; advertising_world_.reset();
toto_column_ = 0; toto_dialog_.clear();
@@ -1240,6 +1249,7 @@ class App final : public Rml::EventListener {
void frame() {
engine_create_poll();
engine_files_poll();
stadium_camera_tick();
if (engine_mode_) { engine_frame(); return; }
front_poll();
flush_selects();