Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Changes from release 2025/11 to 2025/12
1. Enhancement - Updated CDM to v2.2.8.20 - thanks to @Liaely (Lily Unitt)
3. Enhancement - Add RDF drawing option to Configurator - thanks to @AdriTheDev (Callum Hicks)

# Changes from release 2025/10 to 2025/11
1. AIRAC (2511) - Updated TopSky MSAW altitude for EGNV (Teesside) - thanks to @Liaely (Lily Unitt)
Expand Down
12 changes: 10 additions & 2 deletions workflows/logon-details/LogonDetails.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,12 @@ def is_valid_cid(cid):
"coast_choice": "1",
"land_choice": "1",
"discord_presence": "n",
"vccs_ptt_scan_code": ""
"vccs_ptt_scan_code": "",
"rdf_enabled": "n"
}

BASIC_FIELDS = ["name", "initials", "cid", "rating", "password", "cpdlc", "discord_presence", "vccs_ptt_scan_code"]
ADVANCED_FIELDS = ["realistic_tags", "realistic_conversion", "coast_choice", "land_choice"]
ADVANCED_FIELDS = ["realistic_tags", "realistic_conversion", "coast_choice", "land_choice", "rdf_enabled"]

def load_previous_options():
if os.path.exists(OPTIONS_PATH):
Expand Down Expand Up @@ -411,6 +412,8 @@ def prompt_for_field(key, current):

elif key == "discord_presence":
return "y" if ask_yesno("Would you like to enable DiscordEuroscope plugin which will show where you're controlling on Discord?") else "n"
elif key == "rdf_enabled":
return "y" if ask_yesno("Would you like to draw RDF circles?") else "n"
elif key == "vccs_ptt_scan_code":
return ask_scan_code_key("Press the key you want to assign as your TeamSpeak VCCS PTT key.\n\nPlease note: Some modifier keys like ALT or CTRL may not work.")
elif key in ["realistic_tags", "realistic_conversion"]:
Expand Down Expand Up @@ -623,6 +626,8 @@ def apply_advanced_configuration(options):
coast_colors = {"1": "9076039", "2": "5324604", "3": "32896"}
land_colors = {"1": "3947580", "2": "1777181", "3": "8158332"}

rdf_enabled = options.get("rdf_enabled", "n") == "y"

for root, _, files in os.walk("."):
for file in files:
path = os.path.join(root, file)
Expand All @@ -649,6 +654,9 @@ def apply_advanced_configuration(options):
line = line.replace("-Easy", "")
new_lines.append(line)

if rdf_enabled and not any("PLUGIN:RDF Plugin for Euroscope:EnableDraw:1" in l for l in new_lines):
new_lines.append("PLUGIN:RDF Plugin for Euroscope:EnableDraw:1\n")

with open(path, "w", encoding="utf-8") as f:
f.writelines(new_lines)

Expand Down