Skip to content

Commit

Permalink
Merge pull request #34 from Li0n-0/DEV
Browse files Browse the repository at this point in the history
1.0.2
  • Loading branch information
Li0n-0 committed Mar 30, 2018
2 parents 2c4d6f9 + 81b5a2d commit 418fd53
Show file tree
Hide file tree
Showing 19 changed files with 777 additions and 235 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
*.log
PartDatabase.cfg
KSP/
KSPandMH/
relay.png
direct.png
Marketing/
Expand Down
Binary file modified GameData/AntennaHelper/AntennaHelper.dll
Binary file not shown.
8 changes: 4 additions & 4 deletions GameData/AntennaHelper/AntennaHelper.version
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@
{
"MAJOR":1,
"MINOR":0,
"PATCH":1,
"PATCH":2,
"BUILD":0
},
"KSP_VERSION":
{
"MAJOR":1,
"MINOR":4,
"PATCH":0
"PATCH":2
},
"KSP_VERSION_MIN":
{
"MAJOR":1,
"MINOR":4,
"PATCH":0
"PATCH":2
},
"KSP_VERSION_MAX":
{
"MAJOR":1,
"MINOR":4,
"PATCH":0
"PATCH":2
}
}
93 changes: 93 additions & 0 deletions GameData/AntennaHelper/Localization/de_de.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
Localization
{
de-de
{
#autoLOC_AH_0001 = Antennen Helfer
#autoLOC_AH_0032 = AntennenHelfer

//General
#autoLOC_AH_0015 = TRN Level
#autoLOC_AH_0019 = FZF
#autoLOC_AH_0020 = RSH
#autoLOC_AH_0021 = Alle
#autoLOC_AH_0039 = Schiff
// Antenna Types
#autoLOC_AH_0002 = Direkt
#autoLOC_AH_0003 = Relay
#autoLOC_AH_0014 = TRN
#autoLOC_AH_0063 = Nichts
#autoLOC_AH_0053 = Relays

//Editor
// Main window
#autoLOC_AH_0004 = Gewählter Type
#autoLOC_AH_0005 = Alle Antennen
#autoLOC_AH_0006 = Aktuelles Ziel
#autoLOC_AH_0007 = Wähle ein Ziel
#autoLOC_AH_0008 = Status
#autoLOC_AH_0009 = Leistung
#autoLOC_AH_0010 = Max Reichweite
#autoLOC_AH_0011 = Max Reichweite bei 100%
#autoLOC_AH_0013 = Schiff zur Zielliste hinzufügen
// Status
#autoLOC_AH_0033 = Keine Antennen
#autoLOC_AH_0040 = Eine Antenne : <<1>>
#autoLOC_AH_0041 = <<1>> Antennen, nicht kombienierbar, <<2>> ist die Leistungsstärkste
#autoLOC_AH_0042 = <<1>> von <<2>> Antennen sind kombinierbar


// Target window
#autoLOC_AH_0016 = In-Flight Schiffe
#autoLOC_AH_0017 = Editor Schiffe
#autoLOC_AH_0018 = Antennen Teile
#autoLOC_AH_0022 = Wähle
#autoLOC_AH_0023 = Setze als Ziel
#autoLOC_AH_0031 = Antennen Teile Liste
#autoLOC_AH_0043 = Set von benutzerdefinierten Teilen

// Planet window
#autoLOC_AH_0024 = Planet / Mond
#autoLOC_AH_0025 = Min
#autoLOC_AH_0026 = Max
#autoLOC_AH_0027 = Signal bei Min Distanz
#autoLOC_AH_0028 = Signal bei Max Distanz
#autoLOC_AH_0029 = Überprüfe die Signalstärke in einer bestimmten Entfernung
#autoLOC_AH_0030 = Rechne !

//Tracking Station
#autoLOC_AH_0044 = Editor Schiffsliste
#autoLOC_AH_0050 = Transmitter : <<1>>
#autoLOC_AH_0051 = Display Typ : <<1>>
// Circle Selection
#autoLOC_AH_0045 = Active Verbindung
#autoLOC_AH_0046 = TRN
#autoLOC_AH_0047 = TRN und Relay(s)
#autoLOC_AH_0048 = Relay(s)
#autoLOC_AH_0049 = Nichts
#autoLOC_AH_0052 = Kreis Typ

//Flight / MapView
#autoLOC_AH_0054 = <<1>> ZU <<2>>// Schiff ZU Schiff
#autoLOC_AH_0055 = ZU// use in the same way as 0054
#autoLOC_AH_0056 = Potential Relays
#autoLOC_AH_0057 = Relay Leistung
#autoLOC_AH_0058 = Gesamt Leistung
#autoLOC_AH_0059 = Entfernung
#autoLOC_AH_0060 = Signal Stärke
#autoLOC_AH_0061 = Antennen Helfer ist noch nicht fertig
#autoLOC_AH_0062 = Warte...
#autoLOC_AH_0073 = <<1>> \t Relay Stärke : //tab between vessel name and Relay Power
#autoLOC_AH_0074 = <<1>> \t Totale Stärke : //tab between vessel name and Total Power

//Parameters
#autoLOC_AH_0064 = Benutze Blizzy's Toolbar
#autoLOC_AH_0065 = Aktiv im Editor
#autoLOC_AH_0066 = Aktiv in der Ortungsstation
#autoLOC_AH_0067 = Aktiv im Flug
#autoLOC_AH_0068 = Aktiv in der Kartenansicht
#autoLOC_AH_0069 = Flug und Kartenansicht
#autoLOC_AH_0070 = Sekunde(n) zwischen GUI Aktualisierung
#autoLOC_AH_0071 = Wenn auf 0 gesetzt, wird die GUI nur beim Öffnen des Fensters aktualisiert //If set to 0, GUI is updated only when opening the window
#autoLOC_AH_0072 = Benötigt Szenenwechsel um wirksam zu werden
}
}
5 changes: 5 additions & 0 deletions GameData/AntennaHelper/Localization/en_us.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ Localization
#autoLOC_AH_0044 = Editor Ship List
#autoLOC_AH_0050 = Transmitter : <<1>>
#autoLOC_AH_0051 = Display Type : <<1>>
#autoLOC_AH_0075 = Select a Flying Vessel, or
#autoLOC_AH_0076 = Open the Editor Ship List
#autoLOC_AH_0077 = Selected : <<1>> (<<2>>)//1 = vessel name, 2 = flight or editor(0078 or 0079)
#autoLOC_AH_0078 = Flight
#autoLOC_AH_0079 = Editor
// Circle Selection
#autoLOC_AH_0045 = Active Connection
#autoLOC_AH_0046 = DSN
Expand Down
93 changes: 93 additions & 0 deletions GameData/AntennaHelper/Localization/fr_fr.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
Localization
{
en-us
{
#autoLOC_AH_0001 = Antenna Helper
#autoLOC_AH_0032 = AntennaHelper

//General
#autoLOC_AH_0015 = Niveau RCL
#autoLOC_AH_0019 = BAV
#autoLOC_AH_0020 = HAS
#autoLOC_AH_0021 = Tous
#autoLOC_AH_0039 = Vaisseau
// Antenna Types
#autoLOC_AH_0002 = Direct
#autoLOC_AH_0003 = Relai
#autoLOC_AH_0014 = RCL
#autoLOC_AH_0063 = Aucune
#autoLOC_AH_0053 = Relays

//Editor
// Main window
#autoLOC_AH_0004 = Type Séléctioné
#autoLOC_AH_0005 = Toutes les Antennes
#autoLOC_AH_0006 = Cible actuelle
#autoLOC_AH_0007 = Choisir Une Cible
#autoLOC_AH_0008 = Statut
#autoLOC_AH_0009 = Puissance
#autoLOC_AH_0010 = Portée Max
#autoLOC_AH_0011 = Max Distance A 100%
#autoLOC_AH_0013 = Ajouter Vaisseau à la Liste De Cible
// Status
#autoLOC_AH_0033 = Aucune antenna
#autoLOC_AH_0040 = Une antenne : <<1>>
#autoLOC_AH_0041 = <<1>> antennes, non combinable, <<2>> est la plus puissante
#autoLOC_AH_0042 = <<1>> de <<2>> antennes sont combinables


// Target window
#autoLOC_AH_0016 = Vaisseaux en Vol
#autoLOC_AH_0017 = Vaisseaux de l'Editeur
#autoLOC_AH_0018 = Antenne comme Pièce
#autoLOC_AH_0022 = Séléctionner
#autoLOC_AH_0023 = Utiliser comme Cible
#autoLOC_AH_0031 = Liste des pièces antennes
#autoLOC_AH_0043 = Ensemble de pièces

// Planet window
#autoLOC_AH_0024 = Planète / Lune
#autoLOC_AH_0025 = Min
#autoLOC_AH_0026 = Max
#autoLOC_AH_0027 = Signal à Distance Min
#autoLOC_AH_0028 = Signal à Distance Max
#autoLOC_AH_0029 = Vérifier la force du signal à telle distance
#autoLOC_AH_0030 = Math !

//Tracking Station
#autoLOC_AH_0044 = Liste des Vaisseaux de l'Editeur
#autoLOC_AH_0050 = Transmetteur : <<1>>
#autoLOC_AH_0051 = Type d'Affichage : <<1>>
// Circle Selection
#autoLOC_AH_0045 = Connection Active
#autoLOC_AH_0046 = RCL
#autoLOC_AH_0047 = RCL et Relais
#autoLOC_AH_0048 = Relais
#autoLOC_AH_0049 = Aucun
#autoLOC_AH_0052 = Type de Cercle

//Flight / MapView
#autoLOC_AH_0054 = <<1>> A <<2>>// vessel TO vessel
#autoLOC_AH_0055 = A// use in the same way as 0054
#autoLOC_AH_0056 = Relays Potentiel
#autoLOC_AH_0057 = Puissance en Relais
#autoLOC_AH_0058 = Puissance Totale
#autoLOC_AH_0059 = Distance
#autoLOC_AH_0060 = Force du Signal
#autoLOC_AH_0061 = Antenna Helper n'est pas encore prêt
#autoLOC_AH_0062 = Attendez...
#autoLOC_AH_0073 = <<1>> \t Puissance en Relais : //tab between vessel name and Relay Power
#autoLOC_AH_0074 = <<1>> \t Puissance Totale : //tab between vessel name and Total Power

//Parameters
#autoLOC_AH_0064 = Utiliser la Toolbar de Blizzy
#autoLOC_AH_0065 = Activer dans l'Editeur
#autoLOC_AH_0066 = Activer dans la Tracking Station
#autoLOC_AH_0067 = Activer en Vol
#autoLOC_AH_0068 = Activer dans la vue carte
#autoLOC_AH_0069 = Vol et Carte
#autoLOC_AH_0070 = Seconde(s) entre les mise a jour de la GUI
#autoLOC_AH_0071 = Si mis à 0, la GUI n'est mis à jour qu'à l'ouverture de la fenètre
#autoLOC_AH_0072 = Un changement de scène est nécessaire pour prendre effet
}
}
93 changes: 93 additions & 0 deletions GameData/AntennaHelper/Localization/ru.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
Localization
{
ru
{
#autoLOC_AH_0001 = Антенный помощник
#autoLOC_AH_0032 = AntennaHelper

//General
#autoLOC_AH_0015 = Уровень Центра Слежения
#autoLOC_AH_0019 = ЦВС
#autoLOC_AH_0020 = Ангар
#autoLOC_AH_0021 = Все
#autoLOC_AH_0039 = Аппарат
// Antenna Types
#autoLOC_AH_0002 = Прямая
#autoLOC_AH_0003 = Ретранслятор
#autoLOC_AH_0014 = Центр слежения
#autoLOC_AH_0063 = Нет
#autoLOC_AH_0053 = Ретрансляторы

//Editor
// Main window
#autoLOC_AH_0004 = Выберите тип
#autoLOC_AH_0005 = Все антенны
#autoLOC_AH_0006 = Текущая цель
#autoLOC_AH_0007 = Задать цель
#autoLOC_AH_0008 = Статус
#autoLOC_AH_0009 = Сила
#autoLOC_AH_0010 = Макс диапазон
#autoLOC_AH_0011 = Макс 100% дистанция
#autoLOC_AH_0013 = Добавить корабль в список целей
// Status
#autoLOC_AH_0033 = Нет антенны
#autoLOC_AH_0040 = Одна антенна : <<1>>
#autoLOC_AH_0041 = <<1>> антенны, не комбинируемые, <<2>> самая мощная
#autoLOC_AH_0042 = <<1>> из <<2>> антенн комбинируемые


// Target window
#autoLOC_AH_0016 = Аппараты в полёте
#autoLOC_AH_0017 = Редактор аппаратов
#autoLOC_AH_0018 = Антенные части
#autoLOC_AH_0022 = Выбрать
#autoLOC_AH_0023 = Установить цель
#autoLOC_AH_0031 = Список антенных частей
#autoLOC_AH_0043 = Установить произвольные части

// Planet window
#autoLOC_AH_0024 = Планета / Спутник
#autoLOC_AH_0025 = Мин
#autoLOC_AH_0026 = Макс
#autoLOC_AH_0027 = Сигнал на мин дистанции
#autoLOC_AH_0028 = Сигнал на макс дистанции
#autoLOC_AH_0029 = Проверить силу сигнала на заданной дистанции
#autoLOC_AH_0030 = Расчёт !

//Tracking Station
#autoLOC_AH_0044 = Список аппаратов
#autoLOC_AH_0050 = Аппарат : <<1>>
#autoLOC_AH_0051 = Режим отображения : <<1>>
// Circle Selection
#autoLOC_AH_0045 = Активное соединение
#autoLOC_AH_0046 = Центр Слежения
#autoLOC_AH_0047 = ЦС и ретранслятор(ы)
#autoLOC_AH_0048 = Ретрансляторы
#autoLOC_AH_0049 = Нет
#autoLOC_AH_0052 = Режим

//Flight / MapView
#autoLOC_AH_0054 = <<1>> К <<2>>// vessel TO vessel
#autoLOC_AH_0055 = К// use in the same way as 0054
#autoLOC_AH_0056 = Потенциальные ретрасляторы
#autoLOC_AH_0057 = Мощность ретранслятора
#autoLOC_AH_0058 = Суммарная мощность
#autoLOC_AH_0059 = Дистанция
#autoLOC_AH_0060 = Сила сигнала
#autoLOC_AH_0061 = Антенный помощник ещё не готов к работе
#autoLOC_AH_0062 = Подождите...
#autoLOC_AH_0073 = <<1>> \t Мощность ретранслятора : //tab between vessel name and Relay Power
#autoLOC_AH_0074 = <<1>> \t Суммарная мощность : //tab between vessel name and Total Power

//Parameters
#autoLOC_AH_0064 = Использовать Blizzy's Toolbar
#autoLOC_AH_0065 = Включить в редакторе
#autoLOC_AH_0066 = Включить в Центре Слежения
#autoLOC_AH_0067 = Включить в полёте
#autoLOC_AH_0068 = Включить в режиме карты
#autoLOC_AH_0069 = Полёт и режим карты
#autoLOC_AH_0070 = Секунд между обновлением GUI
#autoLOC_AH_0071 = Если 0, тогда GUI обновляется только когда открывается окно
#autoLOC_AH_0072 = Необходимо сменить сцену для применения
}
}
29 changes: 27 additions & 2 deletions Source/AntennaHelper/AHEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ public void Start ()
return;
}

if (HighLogic.CurrentGame.Mode == Game.Modes.MISSION_BUILDER)
{
if (Component.FindObjectOfType<AHUtil> () == null)
{
AHUtil util = gameObject.AddComponent<AHUtil> ();
util.Start ();
}

AHShipList.UpdateLoadedGame ();
AHShipList.ParseFlyingVessel ();
}

instance = this;

trackingStationLevel = ScenarioUpgradeableFacilities.GetFacilityLevel (SpaceCenterFacility.TrackingStation);
Expand All @@ -41,6 +53,8 @@ public void Start ()
GameEvents.onEditorPodDeleted.Add (PodDeleted);

GameEvents.onGameSceneSwitchRequested.Add (QuitEditor);


}

public void OnDestroy ()
Expand All @@ -60,6 +74,9 @@ public void OnDestroy ()
public void QuitEditor (GameEvents.FromToAction<GameScenes, GameScenes> eData)
{
AHSettings.WriteSave ();
if (HighLogic.CurrentGame.Mode == Game.Modes.MISSION_BUILDER) {
Destroy (this);
}
}

public void VesselLoad (ShipConstruct ship, KSP.UI.Screens.CraftBrowserDialog.LoadType screenType)
Expand Down Expand Up @@ -528,7 +545,13 @@ public static void RemoveShipFromShipList (string pid)
private void GetShipList ()
{
externListShipEditor = AHShipList.GetShipList (true, false);
externListShipFlight = AHShipList.GetShipList (false, true);
if (HighLogic.CurrentGame.Mode != Game.Modes.MISSION_BUILDER)
{
externListShipFlight = AHShipList.GetShipList (false, true);
} else {
externListShipFlight = new Dictionary<string, Dictionary<string, string>> ();
}

GetGUIShipList ();
}

Expand All @@ -546,7 +569,9 @@ private void GetGUIShipList ()
guiExternListShipEditorSphAll = AHShipList.GetShipListAsList (true, false, "SPH");
guiExternListShipEditorSphRelay = AHShipList.GetShipListAsList (true, true, "SPH");

guiExternListShipFlight = AHShipList.GetShipListAsList (false);
if (HighLogic.CurrentGame.Mode != Game.Modes.MISSION_BUILDER) {
guiExternListShipFlight = AHShipList.GetShipListAsList (false);
}
}
#endregion

Expand Down

0 comments on commit 418fd53

Please sign in to comment.