Skip to content

Commit

Permalink
Merge pull request #25 from ihsoft/next
Browse files Browse the repository at this point in the history
Release v2.0
  • Loading branch information
ihsoft authored Oct 23, 2019
2 parents 1995716 + e98e68a commit 99f4403
Show file tree
Hide file tree
Showing 15 changed files with 594 additions and 34 deletions.
Binary file removed Binaries/KSPDev_Utils.1.2.dll
Binary file not shown.
Binary file added Binaries/KSPDev_Utils.2.0.dll
Binary file not shown.
373 changes: 365 additions & 8 deletions Binaries/KSPDev_Utils.1.2.xml → Binaries/KSPDev_Utils.2.0.xml

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions Binaries/KSPDev_Utils_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,8 @@ are _much more_ features (read the API docs!):
* Well documented KSP interfaces.
* Methods to deal with procedural models in the game.
* Different helpers for common processing tasks like state machine or delaying a method call.
* Advanced logging system which supports game's setting `verbose logging`.
* Handy classes to deal with the localized content, including commonly used value types (mass, distance, velocity, etc.) and resources.
* Support of dynamically loaded prefabs (see [UnityDev](https://github.com/ihsoft/UnityDev) as well).
* Convience methods to deal with the Unity input.
* Fast an easy way of making debug GUI for your modules: simply annotate the fields that you want adjusting in the game and you are done.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 2.0 (pre-release)
* [Change] KSP 1.8 compatibility. __WARNING__ Mod versions of `v2.0` and higher are not compatible to KSP versions prior to `1.8`!
* [Change] Upgrade to `C# .Net 4.5`.
* [Enhancement] Add Chinese Simplified localization.
* [Enhancement] Add French localization. And fixing some doc strings.

# 1.11 (April 23rd, 2019)
* [Change] KSP 1.7 compatibility.

Expand Down
14 changes: 7 additions & 7 deletions EasyVesselSwitch.version
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@
"DOWNLOAD": "http://kerbal.curseforge.com/projects/easy-vessel-switch-evs",
"KSP_VERSION": {
"MAJOR": 1,
"MINOR": 7,
"MINOR": 8,
"PATCH": 0
},
"KSP_VERSION_MAX": {
"MAJOR": 1,
"MINOR": 7,
"MINOR": 8,
"PATCH": 99
},
"KSP_VERSION_MIN": {
"MAJOR": 1,
"MINOR": 7,
"MINOR": 8,
"PATCH": 0
},
"NAME": "Easy Vessel Switch",
"URL": "https://raw.githubusercontent.com/ihsoft/EasyVesselSwitch/master/EasyVesselSwitch.version",
"VERSION": {
"BUILD": 36539,
"MAJOR": 1,
"MINOR": 11,
"PATCH": 7052
"BUILD": 25545,
"MAJOR": 2,
"MINOR": 0,
"PATCH": 7235
}
}
4 changes: 2 additions & 2 deletions Lang/en-us.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Localization
// The message to display in the hover menu to tell that the vessel IS attached to
// the ground via the KIS mod part(s).
#evsLOC_00015 = Vessel IS attached to the ground
// The message to display in the hover menu to tell that the vessel is NOTattached
// The message to display in the hover menu to tell that the vessel is NOT attached
// to the ground via the KIS mod part(s).
#evsLOC_00016 = Vessel is NOT attached to the ground
// The status message in the hover menu when the player enables the part's focus
Expand All @@ -84,7 +84,7 @@ Localization
#evsLOC_00020 = Click [<<1>>] to set the focus on this part.
// The hint message to display in the hover menu to tell what to do to reset the
// part's focus back to the vessel focus mode.
// Argument <<1>> is the localized name of the mosue button event (e.g. "LMB").
// Argument <<1>> is the localized name of the mouse button event (e.g. "LMB").
#evsLOC_00021 = Click [<<1>>] to reset the focus to the current vessel.
// The hint message to display in the hover menu when the part's focus mode is
// enabled, but the cirrently hovered part is already in focus.
Expand Down
4 changes: 2 additions & 2 deletions Lang/es-es.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Localization
// The message to display in the hover menu to tell that the vessel IS attached to
// the ground via the KIS mod part(s).
#evsLOC_00015 = La nave está unida al suelo
// The message to display in the hover menu to tell that the vessel is NOTattached
// The message to display in the hover menu to tell that the vessel is NOT attached
// to the ground via the KIS mod part(s).
#evsLOC_00016 = La nave no está unida al suelo
// The status message in the hover menu when the player enables the part's focus
Expand All @@ -81,7 +81,7 @@ Localization
#evsLOC_00020 = Click [<<1>>] para establecer el foco en esta parte.
// The hint message to display in the hover menu to tell what to do to reset the
// part's focus back to the vessel focus mode.
// Argument <<1>> is the localized name of the mosue button event (e.g. "LMB").
// Argument <<1>> is the localized name of the mouse button event (e.g. "LMB").
#evsLOC_00021 = Click [<<1>>] para restablecer el foco a la embarcación actual.
// The hint message to display in the hover menu when the part's focus mode is
// enabled, but the cirrently hovered part is already in focus.
Expand Down
96 changes: 96 additions & 0 deletions Lang/fr-fr.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
Localization
{
fr-fr
{

// ********** Type: EasyVesselSwitch.Controller, KSPDev Messages

// The message to display in the title of the hover menu when the switch mode is
// activated and the vessel, being hovered, is NOT the currently selected vessel.
// Argument <<1>> is the localized name of the mouse button that's bound to the
// action.
#evsLOC_00000 = Cliquez sur [<<1>>] pour passer à :
// The message to display in the title of the hover menu when the switch mode is
// activated and the vessel, being hovered, IS the currently selected vessel.
#evsLOC_00001 = Selectionner actuellement :
// The pattern to construct a human friendly vessel name.
// Argument <<1>> is a localized vessel type (e.g. "station").
// Argument <<2>> is the vessel's name.
#evsLOC_00002 = <<1>>: <<2>>
// The pattern to construct a human friendly kerbal's name.
// Argument <<1>> is a full name of the kerbal.
// Argument <<2>> is a localized name of the kerbal's main skill (e.g. "pilot").
// Argument <<3>> is the current level of the kerbal.
#evsLOC_00003 = <<1>> (<<2>>-<<3>>)
// The message to display in the hover menu to present the vessel's total mass.
// Argument <<1>> is the total mass. Format: MassType.
#evsLOC_00004 = Masse Totale : <<1>>
// The pattern to construct a human friendly vessel name when the type is Unknown,
// and the vessel has only one part.
// Argument <<1>> is the vessel's name.
#evsLOC_00005 = Pièce : <<1>>
// The pattern to construct a human friendly vessel name when the type is Unknown,
// and the vessel has multiple parts.
// Argument <<1>> is the vessel's name.
#evsLOC_00006 = Assemblage : <<1>>
// The message to display in the hover menu to present the kerbal's EVA fuel
// reserve.
// Argument <<1>> is the total amount of the fuel. Format: CompactNumberType.
#evsLOC_00007 = propergol AEV : <<1>>
// The message to display in the hover menu to tell that the vessel CAN be operated
// by the player.
#evsLOC_00008 = Le vesseau EST controllable
// The message to display in the hover menu to tell that the vessel CANNOT be
// operated by the player.
#evsLOC_00009 = Le vessel N'EST PAS controllable
// The string that identifies a no camera stabilization mode. It's displayed when
// the mode is changed.
#evsLOC_00010 = AUCUNE
// The string that identifies a stabilization mode when the camera position is
// constant, and it only changes the focus to the newly selected vessel/part. It's
// displayed when the mode is changed.
#evsLOC_00011 = Garder la POSITION de la camera
// The string that identifies a stabilization mode when the distance from the camera
// to the newly selected vessel/part is kept the same as it was on the former
// vessel/part. It's displayed when the mode is changed.
#evsLOC_00012 = Garder l'ELOIGNEMENT de la camera
// The mesage to present when the EVS mode has changed or updated.
// Argumnent <<1>> is a localized description of the mode.
#evsLOC_00013 = Mode de stabilization : <<1>>
// The message to display in the hover menu when the vessel, being hoverd, is too
i// far to switch to it.
// Argument <<1>> is the vessel's name.
#evsLOC_00014 = Le vesseau, <<1>>, est trop loins
// The message to display in the hover menu to tell that the vessel IS attached to
// the ground via the KIS mod part(s).
#evsLOC_00015 = Le vesseau EST attacher au sol
// The message to display in the hover menu to tell that the vessel is NOT attached
// to the ground via the KIS mod part(s).
#evsLOC_00016 = Le vesseau N'EST PAS attacher au sol
// The status message in the hover menu when the player enables the part's focus
// change mode, but the currently hovered part is already has the focus.
#evsLOC_00017 = Cette pièce est sélectionnée.
// The message to display when the player attempts to set the focus to a part which
// doesn't belong to the current vessel.
#evsLOC_00018 = Cette pièce N'appartient PAS à ce vesseau !
// The string that identifies the MIDDLE mouse button.
#evsLOC_00019 = bouton du milieu de la souris
// The hint message to display in the hover menu to tell what to do to set the focus
// on the hoverd part.
// Argument <<1>> is the localized name of the mouse button event (e.g. "LMB").
#evsLOC_00020 = Cliquer sur [<<1>>] pour sélectionner cette pièce.
// The hint message to display in the hover menu to tell what to do to reset the
// part's focus back to the vessel focus mode.
// Argument <<1>> is the localized name of the mosue button event (e.g. "LMB").
#evsLOC_00021 = Cliquer sur [<<1>>] Pour réinitialiser la sélection sur ce vesseau.
// The hint message to display in the hover menu when the part's focus mode is
// enabled, but the cirrently hovered part is already in focus.
#evsLOC_00022 = Survoler une autre pièce pour changer la sélection.
// The hint message to display in the hover menu to tell what to do to set the focus
// on the currently hovered part.
#evsLOC_00023 = Survoler une pièce pour la sélectionner.
// The hint message to display in the hover menu to tell what to do to reset the
// focus to the default vessel focus mode.
#evsLOC_00024 = Pointer vers l'espace pour réinitialiser la sélection.
}
}
4 changes: 2 additions & 2 deletions Lang/it-it.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Localization
// The message to display in the hover menu to tell that the vessel IS attached to
// the ground via the KIS mod part(s).
#evsLOC_00015 = Il vascello è attaccato al suolo
// The message to display in the hover menu to tell that the vessel is NOTattached
// The message to display in the hover menu to tell that the vessel is NOT attached
// to the ground via the KIS mod part(s).
#evsLOC_00016 = Il vascello non è attaccato al suolo
// The status message in the hover menu when the player enables the part's focus
Expand All @@ -83,7 +83,7 @@ Localization
#evsLOC_00020 = Clicca [<<1>>] per focalizzare questa parte.
// The hint message to display in the hover menu to tell what to do to reset the
// part's focus back to the vessel focus mode.
// Argument <<1>> is the localized name of the mosue button event (e.g. "LMB").
// Argument <<1>> is the localized name of the mouse button event (e.g. "LMB").
#evsLOC_00021 = Clicca [<<1>>] per azzerare il fuoco al vascello attuale.
// The hint message to display in the hover menu when the part's focus mode is
// enabled, but the cirrently hovered part is already in focus.
Expand Down
4 changes: 2 additions & 2 deletions Lang/ru.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Localization
// The message to display in the hover menu to tell that the vessel IS attached to
// the ground via the KIS mod part(s).
#evsLOC_00015 = Аппарат ПРИКРЕПЛЁН к земле
// The message to display in the hover menu to tell that the vessel is NOTattached
// The message to display in the hover menu to tell that the vessel is NOT attached
// to the ground via the KIS mod part(s).
#evsLOC_00016 = Аппарат НЕ прикреплён к земле
// The status message in the hover menu when the player enables the part's focus
Expand All @@ -82,7 +82,7 @@ Localization
#evsLOC_00020 = Кликните [<<1>>] чтобы установить фокус на деталь.
// The hint message to display in the hover menu to tell what to do to reset the
// part's focus back to the vessel focus mode.
// Argument <<1>> is the localized name of the mosue button event (e.g. "LMB").
// Argument <<1>> is the localized name of the mouse button event (e.g. "LMB").
#evsLOC_00021 = Кликните [<<1>>] чтобы сбросить фокус на текущий аппарат.
// The hint message to display in the hover menu when the part's focus mode is
// enabled, but the cirrently hovered part is already in focus.
Expand Down
96 changes: 96 additions & 0 deletions Lang/zh-cn.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
Localization
{
zh-cn
{

// ********** Type: EasyVesselSwitch.Controller, KSPDev Messages

// The message to display in the title of the hover menu when the switch mode is
// activated and the vessel, being hovered, is NOT the currently selected vessel.
// Argument <<1>> is the localized name of the mouse button that's bound to the
// action.
#evsLOC_00000 = 单击 [<<1>>] 切换到:
// The message to display in the title of the hover menu when the switch mode is
// activated and the vessel, being hovered, IS the currently selected vessel.
#evsLOC_00001 = 当前选中:
// The pattern to construct a human friendly vessel name.
// Argument <<1>> is a localized vessel type (e.g. "station").
// Argument <<2>> is the vessel's name.
#evsLOC_00002 = <<1>>: <<2>>
// The pattern to construct a human friendly kerbal's name.
// Argument <<1>> is a full name of the kerbal.
// Argument <<2>> is a localized name of the kerbal's main skill (e.g. "pilot").
// Argument <<3>> is the current level of the kerbal.
#evsLOC_00003 = <<1>> (<<2>>-<<3>>)
// The message to display in the hover menu to present the vessel's total mass.
// Argument <<1>> is the total mass. Format: MassType.
#evsLOC_00004 = 总质量: <<1>>
// The pattern to construct a human friendly vessel name when the type is Unknown,
// and the vessel has only one part.
// Argument <<1>> is the vessel's name.
#evsLOC_00005 = 部件: <<1>>
// The pattern to construct a human friendly vessel name when the type is Unknown,
// and the vessel has multiple parts.
// Argument <<1>> is the vessel's name.
#evsLOC_00006 = 部件: <<1>>
// The message to display in the hover menu to present the kerbal's EVA fuel
// reserve.
// Argument <<1>> is the total amount of the fuel. Format: CompactNumberType.
#evsLOC_00007 = EVA 推进剂: <<1>>
// The message to display in the hover menu to tell that the vessel CAN be operated
// by the player.
#evsLOC_00008 = 载具可操控
// The message to display in the hover menu to tell that the vessel CANNOT be
// operated by the player.
#evsLOC_00009 = 载具不可操控
// The string that identifies a no camera stabilization mode. It's displayed when
// the mode is changed.
#evsLOC_00010 = 无
// The string that identifies a stabilization mode when the camera position is
// constant, and it only changes the focus to the newly selected vessel/part. It's
// displayed when the mode is changed.
#evsLOC_00011 = 保持镜头位置不变
// The string that identifies a stabilization mode when the distance from the camera
// to the newly selected vessel/part is kept the same as it was on the former
// vessel/part. It's displayed when the mode is changed.
#evsLOC_00012 = 保持镜头距离不变
// The mesage to present when the EVS mode has changed or updated.
// Argumnent <<1>> is a localized description of the mode.
#evsLOC_00013 = 镜头稳定模式: <<1>>
// The message to display in the hover menu when the vessel, being hoverd, is too
// far to switch to it.
// Argument <<1>> is the vessel's name.
#evsLOC_00014 = 载具距离太远: <<1>>
// The message to display in the hover menu to tell that the vessel IS attached to
// the ground via the KIS mod part(s).
#evsLOC_00015 = 载具附着于地面上
// The message to display in the hover menu to tell that the vessel is NOT attached
// to the ground via the KIS mod part(s).
#evsLOC_00016 = 载具未附着于地面上
// The status message in the hover menu when the player enables the part's focus
// change mode, but the currently hovered part is already has the focus.
#evsLOC_00017 = 镜头已经对准该部件.
// The message to display when the player attempts to set the focus to a part which
// doesn't belong to the current vessel.
#evsLOC_00018 = 该部件不属于当前载具!
// The string that identifies the MIDDLE mouse button.
#evsLOC_00019 = 鼠标中键
// The hint message to display in the hover menu to tell what to do to set the focus
// on the hoverd part.
// Argument <<1>> is the localized name of the mosue button event (e.g. "LMB").
#evsLOC_00020 = 单机 [<<1>>] 将镜头对准该部件.
// The hint message to display in the hover menu to tell what to do to reset the
// part's focus back to the vessel focus mode.
// Argument <<1>> is the localized name of the mouse button event (e.g. "LMB").
#evsLOC_00021 = 单机 [<<1>>] 重置镜头.
// The hint message to display in the hover menu when the part's focus mode is
// enabled, but the cirrently hovered part is already in focus.
#evsLOC_00022 = 选择其它部件来设置镜头对准
// The hint message to display in the hover menu to tell what to do to set the focus
// on the currently hovered part.
#evsLOC_00023 = 选择一个部件来设置镜头对准
// The hint message to display in the hover menu to tell what to do to reset the
// focus to the default vessel focus mode.
#evsLOC_00024 = 选择空白处来重置镜头
}
}
4 changes: 2 additions & 2 deletions Source/Controller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ sealed class Controller : MonoBehaviour, IHasGUI {
"#evsLOC_00016",
defaultTemplate: "Vessel is NOT attached to the ground",
description: "The message to display in the hover menu to tell that the vessel is NOT"
+ "attached to the ground via the KIS mod part(s).");
+ " attached to the ground via the KIS mod part(s).");

static readonly Message CurrenPartInFocusStatusMsg = new Message(
"#evsLOC_00017",
Expand Down Expand Up @@ -256,7 +256,7 @@ sealed class Controller : MonoBehaviour, IHasGUI {
defaultTemplate: "Click [<<1>>] to reset the focus to the current vessel.",
description: "The hint message to display in the hover menu to tell what to do to reset the"
+ " part's focus back to the vessel focus mode."
+ "\nArgument <<1>> is the localized name of the mosue button event (e.g. \"LMB\").");
+ "\nArgument <<1>> is the localized name of the mouse button event (e.g. \"LMB\").");

static readonly Message AnotherPartFocusHintMsg = new Message(
"#evsLOC_00022",
Expand Down
12 changes: 6 additions & 6 deletions Source/EasyVesselSwitch.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<OutputType>Library</OutputType>
<RootNamespace>EasyVesselSwitch</RootNamespace>
<AssemblyName>EasyVesselSwitch</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<AppDesignerFolder>Properties</AppDesignerFolder>
<TargetFrameworkProfile />
<NoWin32Manifest>False</NoWin32Manifest>
Expand Down Expand Up @@ -56,9 +56,10 @@
</Reference>
<Reference Include="Assembly-CSharp-firstpass">
<HintPath>Q:\KSP_x64_Data\Managed\Assembly-CSharp-firstpass.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="KSPDev_Utils.1.2">
<HintPath>..\Binaries\KSPDev_Utils.1.2.dll</HintPath>
<Reference Include="KSPDev_Utils.2.0">
<HintPath>..\Binaries\KSPDev_Utils.2.0.dll</HintPath>
</Reference>
<Reference Include="System">
<HintPath>Q:\KSP_x64_Data\Managed\System.dll</HintPath>
Expand All @@ -67,9 +68,8 @@
<Reference Include="System.Core">
<HintPath>Q:\KSP_x64_Data\Managed\System.Core.dll</HintPath>
</Reference>
<Reference Include="UnityEngine">
<HintPath>Q:\KSP_x64_Data\Managed\UnityEngine.dll</HintPath>
<Private>False</Private>
<Reference Include="UnityEngine.CoreModule">
<HintPath>Q:\KSP_x64_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UI">
<HintPath>Q:\KSP_x64_Data\Managed\UnityEngine.UI.dll</HintPath>
Expand Down
Loading

0 comments on commit 99f4403

Please sign in to comment.