-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 8a9bc06
Showing
418 changed files
with
99,041 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto | ||
|
||
# Custom for Visual Studio | ||
*.cs diff=csharp | ||
|
||
# Standard to msysgit | ||
*.doc diff=astextplain | ||
*.DOC diff=astextplain | ||
*.docx diff=astextplain | ||
*.DOCX diff=astextplain | ||
*.dot diff=astextplain | ||
*.DOT diff=astextplain | ||
*.pdf diff=astextplain | ||
*.PDF diff=astextplain | ||
*.rtf diff=astextplain | ||
*.RTF diff=astextplain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Windows image file caches | ||
Thumbs.db | ||
ehthumbs.db | ||
|
||
# Folder config file | ||
Desktop.ini | ||
|
||
# Recycle Bin used on file shares | ||
$RECYCLE.BIN/ | ||
|
||
# Windows Installer files | ||
*.cab | ||
*.msi | ||
*.msm | ||
*.msp | ||
|
||
# Windows shortcuts | ||
*.lnk | ||
|
||
# ========================= | ||
# Operating System Files | ||
# ========================= | ||
|
||
# OSX | ||
# ========================= | ||
|
||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear on external disk | ||
.Spotlight-V100 | ||
.Trashes | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
/Archives/ | ||
/CKAN/ | ||
/Docs/ | ||
/Graphics And Logos/ | ||
/Icons/ | ||
/Models/ | ||
/Promo Images/ | ||
/ReferenceMeshes/ | ||
/References/ | ||
/Releases/ | ||
/Scenes/ | ||
/Textures/ | ||
/Unity/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using UnityEngine; | ||
using KSP.IO; | ||
|
||
/* | ||
Source code copyrighgt 2015, by Michael Billard (Angel-125) | ||
License: GNU General Public License Version 3 | ||
License URL: http://www.gnu.org/licenses/ | ||
If you want to use this code, give me a shout on the KSP forums! :) | ||
Wild Blue Industries is trademarked by Michael Billard and may be used for non-commercial purposes. All other rights reserved. | ||
Note that Wild Blue Industries is a ficticious entity | ||
created for entertainment purposes. It is in no way meant to represent a real entity. | ||
Any similarity to a real entity is purely coincidental. | ||
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 OR COPYRIGHT HOLDERS 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. | ||
*/ | ||
namespace WildBlueIndustries | ||
{ | ||
class DSEVSettings : Window<DSEVSettings> | ||
{ | ||
static public float arcJetRCSVolume; | ||
static public float radiatorVolume; | ||
static public float radiatorSoundVolume = -1.0f; | ||
static public float arcJetVolume = -1.0f; | ||
|
||
string settingsPath; | ||
|
||
public DSEVSettings() : | ||
base("DSEV Settings", 300, 150) | ||
{ | ||
Resizable = false; | ||
settingsPath = AssemblyLoader.loadedAssemblies.GetPathByType(typeof(DSEVSettings)) + "/Settings.cfg"; | ||
loadSettings(); | ||
} | ||
|
||
protected override void DrawWindowContents(int windowId) | ||
{ | ||
GUILayout.BeginVertical(); | ||
GUILayout.Label("ArcJet RCS Volume"); | ||
arcJetRCSVolume = GUILayout.HorizontalSlider(arcJetRCSVolume, 0, 1); | ||
GUILayout.Label("Coolant Dump Volume"); | ||
radiatorVolume = GUILayout.HorizontalSlider(radiatorVolume, 0, 1); | ||
GUILayout.EndVertical(); | ||
|
||
ModuleRCSArcJet.soundEffectVolume = GameSettings.SHIP_VOLUME * arcJetRCSVolume; | ||
WBIHeatRadiator.soundEffectVolume = GameSettings.SHIP_VOLUME * radiatorVolume; | ||
} | ||
|
||
public override void SetVisible(bool newValue) | ||
{ | ||
base.SetVisible(newValue); | ||
ConfigNode nodeSettings = new ConfigNode(); | ||
|
||
if (newValue) | ||
{ | ||
loadSettings(); | ||
} | ||
|
||
else | ||
{ | ||
nodeSettings.name = "SETTINGS"; | ||
nodeSettings.AddValue("arcJetVolume", ModuleRCSArcJet.soundEffectVolume.ToString()); | ||
nodeSettings.AddValue("arcJetRCSVolume", arcJetRCSVolume.ToString()); | ||
nodeSettings.AddValue("radiatorVolume", radiatorVolume.ToString()); | ||
nodeSettings.AddValue("radiatorSoundVolume", WBIHeatRadiator.soundEffectVolume.ToString()); | ||
nodeSettings.Save(settingsPath); | ||
} | ||
} | ||
|
||
protected void loadSettings() | ||
{ | ||
ConfigNode nodeSettings = new ConfigNode(); | ||
string value; | ||
|
||
//Now load settings | ||
nodeSettings = ConfigNode.Load(settingsPath); | ||
if (nodeSettings != null) | ||
{ | ||
value = nodeSettings.GetValue("arcJetRCSVolume"); | ||
if (string.IsNullOrEmpty(value) == false) | ||
arcJetRCSVolume = float.Parse(value); | ||
else | ||
arcJetRCSVolume = 1.0f; | ||
|
||
value = nodeSettings.GetValue("radiatorVolume"); | ||
if (string.IsNullOrEmpty(value) == false) | ||
radiatorVolume = float.Parse(value); | ||
else | ||
radiatorVolume = 1.0f; | ||
} | ||
else | ||
{ | ||
arcJetRCSVolume = 1.0f; | ||
radiatorVolume = 1.0f; | ||
} | ||
} | ||
|
||
public static float GetRadiatorVolume() | ||
{ | ||
if (radiatorSoundVolume != -1.0f) | ||
return radiatorSoundVolume; | ||
|
||
string path = AssemblyLoader.loadedAssemblies.GetPathByType(typeof(DSEVSettings)) + "/Settings.cfg"; | ||
ConfigNode nodeSettings; | ||
|
||
nodeSettings = ConfigNode.Load(path); | ||
if (nodeSettings == null) | ||
return 0f; | ||
|
||
radiatorSoundVolume = float.Parse(nodeSettings.GetValue("radiatorSoundVolume")); | ||
|
||
return radiatorSoundVolume; | ||
} | ||
|
||
public static float GetArcJetVolume() | ||
{ | ||
if (arcJetVolume != -1.0f) | ||
return arcJetVolume; | ||
|
||
string path = AssemblyLoader.loadedAssemblies.GetPathByType(typeof(DSEVSettings)) + "/Settings.cfg"; | ||
ConfigNode nodeSettings; | ||
|
||
nodeSettings = ConfigNode.Load(path); | ||
if (nodeSettings == null) | ||
return 0f; | ||
arcJetVolume = float.Parse(nodeSettings.GetValue("arcJetVolume")); | ||
|
||
return arcJetVolume; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProductVersion>8.0.30703</ProductVersion> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
<ProjectGuid>{9A537D7D-39FB-486D-AFB2-16509AB9753D}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>WildBlueIndustries</RootNamespace> | ||
<AssemblyName>DSEVUtils</AssemblyName> | ||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="Assembly-CSharp"> | ||
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\KSP_x64_Data\Managed\Assembly-CSharp.dll</HintPath> | ||
</Reference> | ||
<Reference Include="Assembly-CSharp-firstpass"> | ||
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\KSP_x64_Data\Managed\Assembly-CSharp-firstpass.dll</HintPath> | ||
</Reference> | ||
<Reference Include="KSPAssets"> | ||
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\KSP_x64_Data\Managed\KSPAssets.dll</HintPath> | ||
</Reference> | ||
<Reference Include="KSPUtil"> | ||
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\KSP_x64_Data\Managed\KSPUtil.dll</HintPath> | ||
</Reference> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.Xml.Linq" /> | ||
<Reference Include="System.Data.DataSetExtensions" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Xml" /> | ||
<Reference Include="UnityEngine"> | ||
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\KSP_x64_Data\Managed\UnityEngine.dll</HintPath> | ||
</Reference> | ||
<Reference Include="UnityEngine.UI"> | ||
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\KSP_x64_Data\Managed\UnityEngine.UI.dll</HintPath> | ||
</Reference> | ||
<Reference Include="Vectrosity"> | ||
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\KSP_x64_Data\Managed\Vectrosity.dll</HintPath> | ||
</Reference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="ModuleHexAdapter.cs" /> | ||
<Compile Include="DSEVSettings.cs" /> | ||
<Compile Include="MassconWindow.cs" /> | ||
<Compile Include="ModuleArcJetEngine.cs" /> | ||
<Compile Include="ModuleEnginesFXWBI.cs" /> | ||
<Compile Include="ModuleFusionReactor.cs" /> | ||
<Compile Include="ModuleHexNode.cs" /> | ||
<Compile Include="ModuleHexPort.cs" /> | ||
<Compile Include="ModuleHexTruss.cs" /> | ||
<Compile Include="ModuleMasscon.cs" /> | ||
<Compile Include="ModuleMultiStorageTank.cs" /> | ||
<Compile Include="ModuleRCSArcJet.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
<Compile Include="SupernovaController.cs" /> | ||
<Compile Include="SupernovaDebug.cs" /> | ||
<Compile Include="WBIDSEVGameSettings.cs" /> | ||
<Compile Include="WBIHeatRadiator.cs" /> | ||
<Compile Include="WBIHexTruss.cs" /> | ||
<Compile Include="WBIModuleLgServiceBay.cs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\..\WildBlueTools\WildBlueTools.csproj"> | ||
<Project>{CC0BDF1A-9641-4628-9F0F-3500DDC99534}</Project> | ||
<Name>WildBlueTools</Name> | ||
</ProjectReference> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. | ||
Other similar extension points exist, see Microsoft.Common.targets. | ||
<Target Name="BeforeBuild"> | ||
</Target> | ||
<Target Name="AfterBuild"> | ||
</Target> | ||
--> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 11.00 | ||
# Visual Studio 2010 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DSEVUtils", "DSEVUtils.csproj", "{9A537D7D-39FB-486D-AFB2-16509AB9753D}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WildBlueTools", "..\..\WildBlueTools\WildBlueTools.csproj", "{CC0BDF1A-9641-4628-9F0F-3500DDC99534}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{9A537D7D-39FB-486D-AFB2-16509AB9753D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{9A537D7D-39FB-486D-AFB2-16509AB9753D}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{9A537D7D-39FB-486D-AFB2-16509AB9753D}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{9A537D7D-39FB-486D-AFB2-16509AB9753D}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{CC0BDF1A-9641-4628-9F0F-3500DDC99534}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{CC0BDF1A-9641-4628-9F0F-3500DDC99534}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{CC0BDF1A-9641-4628-9F0F-3500DDC99534}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{CC0BDF1A-9641-4628-9F0F-3500DDC99534}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
Oops, something went wrong.