Skip to content

Commit

Permalink
Localized Internal AntennaType
Browse files Browse the repository at this point in the history
  • Loading branch information
yalov committed Nov 11, 2018
1 parent 7db352b commit 765b267
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 6 deletions.
3 changes: 3 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
ChangeLog:

Version 1.1.1.1
Plugin: Localized Internal AntennaType

Version 1.1.1
Plugin: Localized AntennaType

Expand Down
2 changes: 1 addition & 1 deletion CommNetAntennasExtension.version
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"MAJOR": 1,
"MINOR": 1,
"PATCH": 1,
"BUILD": 0
"BUILD": 1
},
"KSP_VERSION": {
"MAJOR": 1,
Expand Down
6 changes: 5 additions & 1 deletion CommNetAntennasInfo/CommNetAntennasInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,12 @@ private void Start()
for (int i = 0; i < LevelsTracking; i++)
DSNranges_str[i] = Formatter.DistanceExtraShort(DSNranges[i]);

string type = Formatter.ToTitleCase(moduleDT.CommType.displayDescription());
//Internal - ok
if (type.Length > 8) type = type.Substring(0, 7) + ".";

modinfo.info =
Localizer.Format("#CAE_Type", Formatter.ToTitleCase(moduleDT.CommType.ToString())) + ", "
Localizer.Format("#CAE_Type", type) + ", "
+ Localizer.Format("#CAE_Rating", Formatter.ValueShort(antennaPowerModified))
+ (moduleDT.CommCombinable ? ", e:" + moduleDT.CommCombinableExponent : "")
+ Localizer.Format("#CAE_DSN_Short") + " ";
Expand Down
2 changes: 1 addition & 1 deletion CommNetAntennasInfo/Properties/AssemblyVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

using System.Reflection;

[assembly: AssemblyVersion("1.1.1.0")]
[assembly: AssemblyVersion("1.1.1.1")]
3 changes: 3 additions & 0 deletions GameData/CommNetAntennasExtension/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
ChangeLog:

Version 1.1.1.1
Plugin: Localized Internal AntennaType

Version 1.1.1
Plugin: Localized AntennaType

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"MAJOR": 1,
"MINOR": 1,
"PATCH": 1,
"BUILD": 0
"BUILD": 1
},
"KSP_VERSION": {
"MAJOR": 1,
Expand Down
Binary file modified GameData/CommNetAntennasExtension/Plugins/CommNetAntennasInfo.dll
Binary file not shown.
4 changes: 2 additions & 2 deletions buildDeploy.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@echo off

set GAMEPATH=c:\Users\User\Games\Kerbal Space Program 1.5.1
rem set GAMEPATH2=c:\Users\User\Games\Kerbal Space Program 1.3.1 rus
set GAMEPATH2=c:\Users\User\Games\Kerbal Space Program 1.5.1 rus


set MODNAME=CommNetAntennasExtension
Expand All @@ -15,4 +15,4 @@ xcopy "%MODNAME%.version" "GameData\%MODNAME%\" /Y

REM copy dll and version in Rep/GameData to GAMEPATH
xcopy "GameData\%MODNAME%" "%GAMEPATH%\GameData\%MODNAME%\" /Y /S /I
rem xcopy "GameData\%MODNAME%" "%GAMEPATH2%\GameData\%MODNAME%\" /Y /S /I
xcopy "GameData\%MODNAME%" "%GAMEPATH2%\GameData\%MODNAME%\" /Y /S /I

0 comments on commit 765b267

Please sign in to comment.