From 33dcbeeb8166edd247effeaa7e16923f3a24ddd1 Mon Sep 17 00:00:00 2001 From: hop311 Date: Wed, 18 Sep 2024 23:30:00 +0100 Subject: Allow GFXPieChartTexture to use any distribution with identifiers and colours rather than just those derived from HasIdentifierAndColour --- extension/src/openvic-extension/singletons/MenuSingleton.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'extension/src/openvic-extension/singletons/MenuSingleton.hpp') diff --git a/extension/src/openvic-extension/singletons/MenuSingleton.hpp b/extension/src/openvic-extension/singletons/MenuSingleton.hpp index 97a6956..0dcc8ff 100644 --- a/extension/src/openvic-extension/singletons/MenuSingleton.hpp +++ b/extension/src/openvic-extension/singletons/MenuSingleton.hpp @@ -59,7 +59,12 @@ namespace OpenVic { * - Nationality (Culture) * - Issues * - Vote */ - std::array, DISTRIBUTION_COUNT> distributions; + fixed_point_map_t workforce_distribution; + fixed_point_map_t religion_distribution; + fixed_point_map_t ideology_distribution; + fixed_point_map_t culture_distribution; + fixed_point_map_t issue_distribution; + fixed_point_map_t vote_distribution; enum PopSortKey { NONE, SORT_SIZE, SORT_TYPE, SORT_CULTURE, SORT_RELIGION, SORT_LOCATION, SORT_MILITANCY, SORT_CONSCIOUSNESS, -- cgit v1.2.3-56-ga3b1