• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Automap (client) [VS plugin mod]


Commit MetaInfo

Révisiona4eea1fac3571e451357cba3644090e062744a1f (tree)
l'heure2021-06-08 01:54:27
AuteurAlia <alex.h@me.c...>
CommiterAlia

Message de Log

added the name to traders so its easier to remember or something

Change Summary

Modification

--- a/Automap/Designators/DefaultDesignators.cs
+++ b/Automap/Designators/DefaultDesignators.cs
@@ -7,6 +7,7 @@ using System.Text.RegularExpressions;
77 using Vintagestory.API.Client;
88 using Vintagestory.API.Common;
99 using Vintagestory.API.Common.Entities;
10+using Vintagestory.API.Config;
1011 using Vintagestory.API.MathTools;
1112 using Vintagestory.GameContent;
1213
@@ -139,7 +140,8 @@ namespace Automap
139140 //clientAPI.Logger.VerboseDebug("Trader: {0} @ {1}", entity.GetName(), posn);
140141
141142 var traderJoe = entity as EntityTrader;
142- var message = $"{entity.GetName()} Alive: {traderJoe.Alive}";
143+ var traderName = entity.GetBehavior<EntityBehaviorNameTag>()?.DisplayName;
144+ var message = Lang.Get("tradingwindow-" + entity.Code.Path, traderName);
143145 if (traderJoe.TradeProps != null)
144146 {
145147 message += $" - Gears: {traderJoe.TradeProps.Money}, ";