updates for TrainBrakeDisplay (allow color coding of brake display on engine control panel when in tag view mode, and be able to click them with my click modifier options to interact), AE waypoint engineer adding distinct "click to set" destinations in the gear menu, and allowing engine only consists to bypass safety first.

This commit is contained in:
2025-08-24 01:17:48 -05:00
parent 11dba3ff78
commit f1ba2ed6f1
21 changed files with 749 additions and 104 deletions

View File

@@ -1,4 +1,5 @@
using Game.Notices;
using Game.State;
using HarmonyLib;
using Model;
using Serilog;
@@ -14,10 +15,11 @@ internal class NoticeExtensions_PostNotice_Patch
private static ILogger _log => Log.ForContext<NoticeExtensions_PostNotice_Patch>();
static void Postfix(Car car, string key, string content)
{
if (!StateManager.IsHost) return;
try
{
//Log.Information($"{car.DisplayName} patch PostNotice");
//Log.Debug($"{car.DisplayName} patch PostNotice");
if (!string.IsNullOrEmpty(content) &&
key.Equals("ai-wpt") &&
content.ToLower().Contains("Arrived at Waypoint".ToLower())