Changeset 453 for TFP-WebServer/MapRendering
- Timestamp:
- Jul 28, 2023, 8:11:39 PM (17 months ago)
- Location:
- TFP-WebServer/MapRendering
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TFP-WebServer/MapRendering/MapRendering.csproj
r425 r453 10 10 <RootNamespace>MapRendering</RootNamespace> 11 11 <AssemblyName>MapRendering</AssemblyName> 12 <TargetFrameworkVersion>v4. 5</TargetFrameworkVersion>12 <TargetFrameworkVersion>v4.8</TargetFrameworkVersion> 13 13 <LangVersion>8</LangVersion> 14 14 </PropertyGroup> -
TFP-WebServer/MapRendering/ModInfo.xml
r449 r453 5 5 <Description value="Render the game map to image map tiles as it is uncovered" /> 6 6 <Author value="The Fun Pimps LLC" /> 7 <Version value="21. 0.318.0" />7 <Version value="21.1.9.0" /> 8 8 <Website value="" /> 9 9 </xml> -
TFP-WebServer/MapRendering/src/Commands/EnableRendering.cs
r405 r453 6 6 public class EnableRendering : ConsoleCmdAbstract { 7 7 protected override string getDescription () { 8 return "enable/disable live map rendering"; 8 return "Disable live map rendering"; 9 } 10 11 protected override string getHelp () { 12 return @" 13 |Usage: 14 | 1. enablerendering 15 | 2. enablerendering <0/1> 16 |1. Show current state of renderer 17 |2. Disable/enable renderer 18 |NOTE: This command can only turn the renderer off, it can not turn it on if it is not enabled in the serverconfig! 19 ".Unindent (); 9 20 } 10 21 … … 15 26 public override void Execute (List<string> _params, CommandSenderInfo _senderInfo) { 16 27 if (_params.Count != 1) { 17 SdtdConsole.Instance.Output ($"Current state: {MapRenderer.renderingEnabled}"); 28 SdtdConsole.Instance.Output ( 29 $"Current state: {MapRenderer.Enabled && MapRenderer.renderingEnabled}{(!MapRenderer.Enabled ? " (disabled by serverconfig!)" : "")}"); 18 30 return; 19 31 }
Note:
See TracChangeset
for help on using the changeset viewer.