From 7dbfc151bf8379bea5b42307a1e03e3ce6d57fc9 Mon Sep 17 00:00:00 2001 From: hiker Date: Tue, 2 Sep 2014 09:32:12 +1000 Subject: [PATCH] Added random GP functionality into gp_info screen. Changed GPData in GPInfoScreen from a pointer to be an object, while this adds some coping of this object, it removes potential memory leaks. --- data/gui/gp_info.stkgui | 40 +-- data/gui/random_gp_info.stkgui | 69 +++++ src/challenges/challenge_data.cpp | 2 +- src/main.cpp | 2 +- src/race/race_manager.cpp | 5 +- src/race/race_manager.hpp | 6 +- src/states_screens/dialogs/gp_info_dialog.cpp | 6 +- .../dialogs/random_gp_dialog.cpp | 2 +- src/states_screens/gp_info_screen.cpp | 236 ++++++++++++++---- src/states_screens/gp_info_screen.hpp | 52 +++- src/states_screens/tracks_screen.cpp | 6 +- 11 files changed, 337 insertions(+), 89 deletions(-) create mode 100644 data/gui/random_gp_info.stkgui diff --git a/data/gui/gp_info.stkgui b/data/gui/gp_info.stkgui index c72841d35..23cfb5acf 100644 --- a/data/gui/gp_info.stkgui +++ b/data/gui/gp_info.stkgui @@ -25,23 +25,35 @@ - + +
-
- -
-
- -