Skip to content

Commit

Permalink
UI: Show what Mod aircraft belongs to
Browse files Browse the repository at this point in the history
  • Loading branch information
john681611 committed Dec 4, 2024
1 parent 5ff1268 commit b033e7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/BriefingRoom/Data/Entries/DBEntryDCSMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ internal class DBEntryDCSMod : DBEntry
"Massun92-Assetpack",
"F-4E AI by Heatblur Simulations",
"OH58D AI by Polychop-Simulations",
"CH-47F bl.1 AI"
"CH-47F bl.1 AI",
"Yak-52 AI by Eagle Dynamics",
};

internal string Module { get; private set; }
Expand Down
4 changes: 2 additions & 2 deletions src/BriefingRoom/Data/JSON/DBEntryAircraft.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ internal static Dictionary<string, DBEntry> LoadJSON(string filepath, DatabaseLa
var supportInfo = supportData[id];



bool modAircraft = !string.IsNullOrEmpty(aircraft.module) && !DBEntryDCSMod.CORE_MODS.Contains(aircraft.module);
var DBaircraft = new DBEntryAircraft
{
ID = id,
UIDisplayName = new LanguageString(LangDB, GetLanguageClassName(typeof(DBEntryAircraft)), id, "displayName",aircraft.displayName),
UIDisplayName = new LanguageString(LangDB, GetLanguageClassName(typeof(DBEntryAircraft)), id, "displayName", modAircraft ? $"{aircraft.displayName} [{aircraft.module}] " : aircraft.displayName),
DCSID = aircraft.type,
Liveries = aircraft.paintSchemes.ToDictionary(pair => (Country)Enum.Parse(typeof(Country), pair.Key.Replace(" ", ""), true), pair => pair.Value),
Operators = GetOperationalCountries(aircraft),
Expand Down

0 comments on commit b033e7e

Please sign in to comment.