From 003a85a9ade887732653a12c3a214ddb576399d2 Mon Sep 17 00:00:00 2001 From: David Schwietering Date: Sat, 3 May 2025 10:44:25 +0200 Subject: [PATCH 01/10] Readded custom field drawing --- config/MasterTranslations.xml | 4 + config/gui/pages/CourseGeneratorFrame.xml | 33 ++++ scripts/field/CustomField.lua | 5 + scripts/field/CustomFieldManager.lua | 24 +++ scripts/geometry/Polygon.lua | 6 +- scripts/geometry/Polyline.lua | 2 +- scripts/gui/CustomFieldHotspot.lua | 1 + scripts/gui/pages/CpCourseGeneratorFrame.lua | 181 ++++++++++++++----- scripts/gui/plots/CoursePlot.lua | 8 + scripts/gui/plots/FieldPlot.lua | 4 + 10 files changed, 216 insertions(+), 52 deletions(-) diff --git a/config/MasterTranslations.xml b/config/MasterTranslations.xml index 0e30805f2..a701355d3 100644 --- a/config/MasterTranslations.xml +++ b/config/MasterTranslations.xml @@ -1814,6 +1814,10 @@ The course is saved automatically on closing of the editor and overrides the sel + + + + diff --git a/config/gui/pages/CourseGeneratorFrame.xml b/config/gui/pages/CourseGeneratorFrame.xml index da191c2f0..f1b1f7d0f 100644 --- a/config/gui/pages/CourseGeneratorFrame.xml +++ b/config/gui/pages/CourseGeneratorFrame.xml @@ -34,6 +34,7 @@ + + + + + + + + + + + + + + + + + + + + + +