Skip to content

Commit

Permalink
Merge pull request #29 from ihsoft/next
Browse files Browse the repository at this point in the history
Release v1.16
  • Loading branch information
ihsoft authored May 13, 2020
2 parents 3e45742 + 0d3f709 commit 57ea715
Show file tree
Hide file tree
Showing 28 changed files with 7,997 additions and 101 deletions.
Binary file added Binaries/KSPDev_Utils.2.3.dll
Binary file not shown.
7,372 changes: 7,372 additions & 0 deletions Binaries/KSPDev_Utils.2.3.xml

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions Binaries/KSPDev_Utils_LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# KSPDev: Kerbal Development tools - Utils

Author: igor.zavoychinskiy@gmail.com

GitHub: https://github.com/ihsoft/KSPDev_Utils/tree/master/Source

Forum thread: http://forum.kerbalspaceprogram.com/index.php?/topic/150786-12-kspdev-logconsole-utils

Documentation: http://ihsoft.github.io/KSPDev_Utils

* * *

## License

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to <http://unlicense.org/>
34 changes: 34 additions & 0 deletions Binaries/KSPDev_Utils_README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# KSPDev: Kerbal Development tools - Utils

`KSPDev_Utils` is a set of handy tools that simplify development of KSP mods. Just add the
assembly into your project and save a lot of development efforts.

Read discussions, ask questions and suggest features on
[forum](http://forum.kerbalspaceprogram.com/index.php?/topic/150786-12-kspdev-logconsole-v0120-utils-v0190).

Detailed documentation on API is avalable on [docs site](http://ihsoft.github.io/KSPDev_Utils).

## In nutshell

KSPDev Utils offers a lot of different classes and interfaces. Here are some examples but there
are _much more_ features (read the API docs!):

* Extensive set of methods to work with config files
* Save or load simple values without dealing with string<=>type conversion. The type will be detected from the argument, and
built-in converters will handle any C# or KSP/Unity type transformation.
* Use [attribute-oriented programming](https://en.wikipedia.org/wiki/Attribute-oriented_programming) to mark configuration fields in
your classes. Then just specify file name and have them loaded/saved in one single method call.
* Use attributes to mark fields that are represented by a class or struct. These types will be (de)serialized as config nodes.
Attribute handlers can also deal with collections! No need to persist every item or a structure field separately.
* Go further and define all configuration logic completely via attributes. After that you call just one method with minimum of
arguments to have all your mod's settings saved. Or loaded - you choose.
* Various helpers to deal with GUI. E.g. GUI sounds, context windows popups, messages, etc.
* Basic set of methods to deal with in-game file paths.
* 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.
Binary file modified Binaries/MiniAVC.dll
Binary file not shown.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# 1.16 (May 12th, 2020):
* [Fix #4] Add range and spot angle adjutsable controls.
* [Fix #27] Allow light color and status be controllable in EVA and in flight.
* [Fix #28] Stock lights don't show up in the CCK category.
* [Change] Stop complaining about KSP minor version change.
* [Enhancement] Add PAW action to reset the changed settings to the state at the scene load.
* [Enhancement] Allow ReStock+ light parts orientation for EVA adjustment.

# 1.15 (December 1st, 2019):
* [Fix #25] Stock lights don't emit light, conflict with Restock.

Expand Down
41 changes: 32 additions & 9 deletions Lang/en-us.cfg
Original file line number Diff line number Diff line change
@@ -1,34 +1,57 @@
// Auto generated by KSPDev Localization tool at: 9/20/2017 11:19:11 PM
// Total strings: 13
// Total words: 85
// Version: 2
// Do NOT change the version unless a new string is added or an existing one was deleted.
// A simple string update is not a new version! The version number is used to keep all
// the localizations in sync. The EN-US localization file is the primary file, and all the
// other languages should catch-up as the version is increasing.
// Authors: IgorZ
// Last updated: 05/12/2020
//
// Best way of making/updating localization in this mod is using KSPDev Localization Tool!
// https://github.com/ihsoft/KSPDev_LocalizationTool
Localization
{
en-us
{

// ********** Part: W485.Surface4WayLight

#W485_Surface4WayLight_Part_description = Shines 4 individual lights perpendicular to each other for self-illumination.
#W485_Surface4WayLight_Part_title = Surface Mounted 4-Way Spotlight
#W485_Surface4WayLight_Part_manufacturer = Abrams LightCo
#W485_Surface4WayLight_Part_description = Shines 4 individual lights perpendicular to each other for self-illumination.
#W485_Surface4WayLight_Part_tags = cck-lights moar (more bulb candle dark flash (lamp (light shine spot torch quadro
#W485_Surface4WayLight_Part_title = Surface Mounted 4-Way Spotlight

// ********** Part: W485.SurfaceLight

#W485_SurfaceLight_Part_description = A small surface mounted spotlight designed for self illumination.
#W485_SurfaceLight_Part_title = Surface Mounted Spotlight
#W485_SurfaceLight_Part_manufacturer = Abrams LightCo
#W485_SurfaceLight_Part_description = A small surface mounted spotlight designed for self illumination.
#W485_SurfaceLight_Part_tags = cck-lights moar (more bulb candle dark flash (lamp (light shine spot torch
#W485_SurfaceLight_Part_title = Surface Mounted Spotlight

// ********** Part: W485.SurfaceOmniLight

#W485_SurfaceOmniLight_Part_description = A small light that emits in all directions. Useful for self-illumination.
#W485_SurfaceOmniLight_Part_title = Surface Mounted Omni Light
#W485_SurfaceOmniLight_Part_manufacturer = Abrams LightCo
#W485_SurfaceOmniLight_Part_description = A small light that emits in all directions. Useful for self-illumination.
#W485_SurfaceOmniLight_Part_tags = cck-lights moar (more bulb candle dark flash (lamp (light shine ambient omni torch
#W485_SurfaceOmniLight_Part_title = Surface Mounted Omni Light

// ********** Type: SurfaceLights.ModuleColoredLensLight, KSP Fields

// A UI control that allows setting brightness of the lens on the lighting part.
#SurfaceLights_ModuleColoredLensLight_lensBrightness = Lens brightness

// ********** Type: SurfaceLights.ModuleLightEva, KSP Events

// A PAW action that resets all changed values to the state at the last load.
#SurfaceLights_ModuleLightEva_ResetUnsaved = Reset changes

// ********** Type: SurfaceLights.ModuleLightEva, KSP Fields

// A UI control that allows setting the max range of the light.
#SurfaceLights_ModuleLightEva_LightRange = Light range
// A UI control that allows setting spotlight beam angle.
#SurfaceLights_ModuleLightEva_SpotAngle = Beam angle

// ********** Global strings

}
}
17 changes: 11 additions & 6 deletions Lang/es-es.cfg
Original file line number Diff line number Diff line change
@@ -1,28 +1,33 @@
// Version: 1
// Before changing the version, read the instructions in the en-us.cfg file!
//
// Best way of making/updating localization in this mod is using KSPDev Localization Tool!
// https://github.com/ihsoft/KSPDev_LocalizationTool
Localization
{
es-es
{

// ********** Part: W485.Surface4WayLight

#W485_Surface4WayLight_Part_description = Brilla 4 luces individuales perpendiculares entre sí para la autoiluminación.
#W485_Surface4WayLight_Part_title = Foco de 4 vías Montaje de superficie
#W485_Surface4WayLight_Part_manufacturer = Abrams LightCo
#W485_Surface4WayLight_Part_description = Brilla 4 luces individuales perpendiculares entre sí para la autoiluminación.
#W485_Surface4WayLight_Part_tags = cck-lights moar (más bombilla vela oscuro flash (lamp (luz shine lugar antorcha quadro
#W485_Surface4WayLight_Part_title = Foco de 4 vías Montaje de superficie

// ********** Part: W485.SurfaceLight

#W485_SurfaceLight_Part_description = Un pequeño foco montado en superficie diseñado para la auto iluminación.
#W485_SurfaceLight_Part_title = Proyector de montaje en superficie
#W485_SurfaceLight_Part_manufacturer = Abrams LightCo
#W485_SurfaceLight_Part_description = Un pequeño foco montado en superficie diseñado para la auto iluminación.
#W485_SurfaceLight_Part_tags = cck-lights moar (más bombilla vela oscuro flash (lamp (luz brillar lugar antorcha
#W485_SurfaceLight_Part_title = Proyector de montaje en superficie

// ********** Part: W485.SurfaceOmniLight

#W485_SurfaceOmniLight_Part_description = Una pequeña luz que emite en todas las direcciones. Útil para la autoiluminación.
#W485_SurfaceOmniLight_Part_title = Superficie luz omnidireccional montada
#W485_SurfaceOmniLight_Part_manufacturer = Abrams LightCo
#W485_SurfaceOmniLight_Part_description = Una pequeña luz que emite en todas las direcciones. Útil para la autoiluminación.
#W485_SurfaceOmniLight_Part_tags = cck-lights moar (más bombilla vela oscuro flash (lamp (luz brillar ambiente omni antorcha
#W485_SurfaceOmniLight_Part_title = Superficie luz omnidireccional montada

// ********** Type: SurfaceLights.ModuleColoredLensLight, KSP Fields

Expand Down
21 changes: 12 additions & 9 deletions Lang/it-it.cfg
Original file line number Diff line number Diff line change
@@ -1,32 +1,35 @@
// Creation Date: 2018-06-21
// Version: 1
// Before changing the version, read the instructions in the en-us.cfg file!
// Author: Carlo Rossi (CRL42)
// Total strings: 13
// Total words: 91
// Last updated: 2018-06-21
//
// Best way of making/updating localization in this mod is using KSPDev Localization Tool!
// https://github.com/ihsoft/KSPDev_LocalizationTool
Localization
{
it-it
{

// ********** Part: W485.Surface4WayLight

#W485_Surface4WayLight_Part_description = Proietta 4 luci individuali perpendicolari tra di loro per auto-illuminazione.
#W485_Surface4WayLight_Part_title = Faretto a 4-vie a Montaggio Superficiale
#W485_Surface4WayLight_Part_manufacturer = Abrams LightCo
#W485_Surface4WayLight_Part_description = Proietta 4 luci individuali perpendicolari tra di loro per auto-illuminazione.
#W485_Surface4WayLight_Part_tags = cck-lights moar (more bulb candle dark flash (lamp (light shine spot torch quadro
#W485_Surface4WayLight_Part_title = Faretto a 4-vie a Montaggio Superficiale

// ********** Part: W485.SurfaceLight

#W485_SurfaceLight_Part_description = Un piccolo faretto a montaggio superficiale ideato per l'auto-illuminazione.
#W485_SurfaceLight_Part_title = Faretto a Montaggio Superficiale
#W485_SurfaceLight_Part_manufacturer = Abrams LightCo
#W485_SurfaceLight_Part_description = Un piccolo faretto a montaggio superficiale ideato per l'auto-illuminazione.
#W485_SurfaceLight_Part_tags = cck-lights moar (more bulb candle dark flash (lamp (light shine spot torch
#W485_SurfaceLight_Part_title = Faretto a Montaggio Superficiale

// ********** Part: W485.SurfaceOmniLight

#W485_SurfaceOmniLight_Part_description = Una piccola lampada che emette in tutte le direzioni. Utile per l'auto-illuminazione.
#W485_SurfaceOmniLight_Part_title = Lampada Omni a Montaggio Superficiale
#W485_SurfaceOmniLight_Part_manufacturer = Abrams LightCo
#W485_SurfaceOmniLight_Part_description = Una piccola lampada che emette in tutte le direzioni. Utile per l'auto-illuminazione.
#W485_SurfaceOmniLight_Part_tags = cck-lights moar (more bulb candle dark flash (lamp (light shine ambient omni torch
#W485_SurfaceOmniLight_Part_title = Lampada Omni a Montaggio Superficiale

// ********** Type: SurfaceLights.ModuleColoredLensLight, KSP Fields

Expand Down
17 changes: 11 additions & 6 deletions Lang/pt-br.cfg
Original file line number Diff line number Diff line change
@@ -1,29 +1,34 @@
// Version: 1
// Before changing the version, read the instructions in the en-us.cfg file!
// Author: Rodrigo Felipe (rfelipe200)
//
// Best way of making/updating localization in this mod is using KSPDev Localization Tool!
// https://github.com/ihsoft/KSPDev_LocalizationTool
Localization
{
pt-br
{

// ********** Part: W485.Surface4WayLight

#W485_Surface4WayLight_Part_description = Quatro luzes perpendiculares para autoiluminação.
#W485_Surface4WayLight_Part_title = Iluminador de Superfície 4-Way
#W485_Surface4WayLight_Part_manufacturer = Abrams LightCo
#W485_Surface4WayLight_Part_description = Quatro luzes perpendiculares para autoiluminação.
#W485_Surface4WayLight_Part_tags = cck-lights moar (more bulb candle dark flash (lamp (light shine spot torch quadro
#W485_Surface4WayLight_Part_title = Iluminador de Superfície 4-Way

// ********** Part: W485.SurfaceLight

#W485_SurfaceLight_Part_description = Uma luz de superfície projetada para autoiluminação.
#W485_SurfaceLight_Part_title = Iluminador de Superfície
#W485_SurfaceLight_Part_manufacturer = Abrams LightCo
#W485_SurfaceLight_Part_description = Uma luz de superfície projetada para autoiluminação.
#W485_SurfaceLight_Part_tags = cck-lights moar (more bulb candle dark flash (lamp (light shine spot torch
#W485_SurfaceLight_Part_title = Iluminador de Superfície

// ********** Part: W485.SurfaceOmniLight

#W485_SurfaceOmniLight_Part_description = Uma pequena luz que se espalha em todas as direções. Útil para decorações de natal.
#W485_SurfaceOmniLight_Part_title = OmniLight
#W485_SurfaceOmniLight_Part_manufacturer = Abrams LightCo
#W485_SurfaceOmniLight_Part_description = Uma pequena luz que se espalha em todas as direções. Útil para decorações de natal.
#W485_SurfaceOmniLight_Part_tags = cck-lights moar (more bulb candle dark flash (lamp (light shine ambient omni torch
#W485_SurfaceOmniLight_Part_title = OmniLight

// ********** Type: SurfaceLights.ModuleColoredLensLight, KSP Fields

Expand Down
34 changes: 28 additions & 6 deletions Lang/ru.cfg
Original file line number Diff line number Diff line change
@@ -1,32 +1,54 @@
// Version: 2
// Before changing the version, read the instructions in the en-us.cfg file!
// Author: igor.zavoychinsky@gmail.com
// Last updated: 05/12/2020
//
// Best way of making/updating localization in this mod is using KSPDev Localization Tool!
// https://github.com/ihsoft/KSPDev_LocalizationTool
Localization
{
ru
{

// ********** Part: W485.Surface4WayLight

#W485_Surface4WayLight_Part_description = Несмотря на необычное название, это деталь выполнена из вполне обычных ламп направленной подсветки. Просто их четыре, и они светят в разные стороны.
#W485_Surface4WayLight_Part_title = Квадролампа Направленной Подсветки
#W485_Surface4WayLight_Part_manufacturer = ООО "Лампы Иль & Ча"
#W485_Surface4WayLight_Part_description = Несмотря на необычное название, это деталь выполнена из вполне обычных ламп направленной подсветки. Просто их четыре, и они светят в разные стороны.
#W485_Surface4WayLight_Part_tags = cck-lights moar (more bulb candle dark flash (lamp (light shine spot torch quadro (увеличенная больше лампа свет темнота вспышка (освещ направленный фонарь квадро
#W485_Surface4WayLight_Part_title = Квадролампа Направленной Подсветки

// ********** Part: W485.SurfaceLight

#W485_SurfaceLight_Part_description = Небольшая лампа, которая светит преимущественно в одном направлении. Помогает обозначить объекты на некотором удалении от источника света, однако не следует использовать её как фару.
#W485_SurfaceLight_Part_title = Лампа Направленной Подсветки
#W485_SurfaceLight_Part_manufacturer = ООО "Лампы Иль & Ча"
#W485_SurfaceLight_Part_description = Небольшая лампа, которая светит преимущественно в одном направлении. Помогает обозначить объекты на некотором удалении от источника света, однако не следует использовать её как фару.
#W485_SurfaceLight_Part_tags = cck-lights moar (more bulb candle dark flash (lamp (light shine spot torch (увеличенная больше лампа свет темнота вспышка (освещ направленный фонарь
#W485_SurfaceLight_Part_title = Лампа Направленной Подсветки

// ********** Part: W485.SurfaceOmniLight

#W485_SurfaceOmniLight_Part_description = Небольшая лампа, которая светит сразу во все стороны. Осветить что-то конкретное ей не получится, но обозначить себя и немного обшивки корабля вокруг она вполне может.
#W485_SurfaceOmniLight_Part_title = Лампа Фоновой Подсветки
#W485_SurfaceOmniLight_Part_manufacturer = ООО "Лампы Иль & Ча"
#W485_SurfaceOmniLight_Part_description = Небольшая лампа, которая светит сразу во все стороны. Осветить что-то конкретное ей не получится, но обозначить себя и немного обшивки корабля вокруг она вполне может.
#W485_SurfaceOmniLight_Part_tags = cck-lights moar (more bulb candle dark flash (lamp (light shine ambient omni torch (увеличенная больше лампа свет темнота вспышка (освещ точечный фонарь
#W485_SurfaceOmniLight_Part_title = Лампа Фоновой Подсветки

// ********** Type: SurfaceLights.ModuleColoredLensLight, KSP Fields

// A UI control that allows setting brightness of the lens on the lighting part.
#SurfaceLights_ModuleColoredLensLight_lensBrightness = Яркость линзы

// ********** Type: SurfaceLights.ModuleLightEva, KSP Events

// A PAW action that resets all changed values to the state at the last load.
#SurfaceLights_ModuleLightEva_ResetUnsaved = Сбросить изменения

// ********** Type: SurfaceLights.ModuleLightEva, KSP Fields

// A UI control that allows setting the max range of the light.
#SurfaceLights_ModuleLightEva_LightRange = Дальность луча
// A UI control that allows setting spotlight beam angle.
#SurfaceLights_ModuleLightEva_SpotAngle = Угол расхождения пучка

// ********** Global strings

}
}
1 change: 1 addition & 0 deletions Parts/SurfaceLight/part.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ MODULE
lightR = 1.0
lightG = 0.9
lightB = 0.8
allowEvaControl = true
}

}
4 changes: 4 additions & 0 deletions Parts/SurfaceLight4Way/part.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ MODULE
lightR = 1.0
lightG = 0.9
lightB = 0.8
allowEvaControl = true
}

MODULE
Expand All @@ -71,6 +72,7 @@ MODULE
lightR = 1.0
lightG = 0.9
lightB = 0.8
allowEvaControl = true
}

MODULE
Expand All @@ -86,6 +88,7 @@ MODULE
lightR = 1.0
lightG = 0.9
lightB = 0.8
allowEvaControl = true
}

MODULE
Expand All @@ -101,6 +104,7 @@ MODULE
lightR = 1.0
lightG = 0.9
lightB = 0.8
allowEvaControl = true
}

}
1 change: 1 addition & 0 deletions Parts/SurfaceOmniLight/part.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ MODULE
lightR = 1.0
lightG = 0.9
lightB = 0.8
allowEvaControl = true
}

}
Loading

0 comments on commit 57ea715

Please sign in to comment.