Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into DEVELOP
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Palmer committed Jun 8, 2020
2 parents 991774f + 753b884 commit 056dac8
Show file tree
Hide file tree
Showing 14 changed files with 492 additions and 245 deletions.
Binary file modified .vs/Firespitter/v15/Server/sqlite3/storage.ide
Binary file not shown.
44 changes: 42 additions & 2 deletions Firespitter/Firespitter.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Firespitter</RootNamespace>
<AssemblyName>Firespitter</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
Expand All @@ -27,7 +27,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<OutputPath>..\..\..\KSP_DEV\GameData\Firespitter\Plugins\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand All @@ -53,10 +53,50 @@
<HintPath>..\..\..\KSP_DEV\KSP_x64_Data\Managed\UnityEngine.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.AnimationModule">
<HintPath>..\..\..\KSP_DEV\KSP_x64_Data\Managed\UnityEngine.AnimationModule.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.AudioModule">
<HintPath>..\..\..\KSP_DEV\KSP_x64_Data\Managed\UnityEngine.AudioModule.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>..\..\..\KSP_DEV\KSP_x64_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.IMGUIModule">
<HintPath>..\..\..\KSP_DEV\KSP_x64_Data\Managed\UnityEngine.IMGUIModule.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.InputLegacyModule">
<HintPath>..\..\..\KSP_DEV\KSP_x64_Data\Managed\UnityEngine.InputLegacyModule.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.InputModule">
<HintPath>..\..\..\KSP_DEV\KSP_x64_Data\Managed\UnityEngine.InputModule.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.PhysicsModule">
<HintPath>..\..\..\KSP_DEV\KSP_x64_Data\Managed\UnityEngine.PhysicsModule.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.TextRenderingModule">
<HintPath>..\..\..\KSP_DEV\KSP_x64_Data\Managed\UnityEngine.TextRenderingModule.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.UI">
<HintPath>..\..\..\KSP_DEV\KSP_x64_Data\Managed\UnityEngine.UI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.UIModule">
<HintPath>..\..\..\KSP_DEV\KSP_x64_Data\Managed\UnityEngine.UIModule.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.VehiclesModule">
<HintPath>..\..\..\KSP_DEV\KSP_x64_Data\Managed\UnityEngine.VehiclesModule.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="aero\FSbladeLiftSurface.cs" />
Expand Down
155 changes: 155 additions & 0 deletions Firespitter/Firespitter.csproj-LGG
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{BFE97E64-BF01-48AF-81EE-6B2610076542}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Firespitter</RootNamespace>
<AssemblyName>Firespitter</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</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>
<RunCodeAnalysis>false</RunCodeAnalysis>
<NoWarn>0649</NoWarn>
<Prefer32Bit>false</Prefer32Bit>
</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>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="$(KSPDIR)\KSP_x64_Data\Managed\Assembly*.dll">
<Private>False</Private>
</Reference>
<Reference Include="$(KSPDIR)\KSP_x64_Data\Managed\UnityEngine*.dll">
<Private>False</Private>
</Reference>
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="aero\FSbladeLiftSurface.cs" />
<Compile Include="aero\FSliftSurface.cs" />
<Compile Include="aero\FSwingBase.cs" />
<Compile Include="animation\FSanimateLooping.cs" />
<Compile Include="animation\FSmimickRotation.cs" />
<Compile Include="animation\FSslowtato.cs" />
<Compile Include="cockpit\AnalogCounter.cs" />
<Compile Include="cockpit\FSairSpeedIndicator.cs" />
<Compile Include="cockpit\FSaltimeterCounter.cs" />
<Compile Include="cockpit\FSartificialHorizon.cs" />
<Compile Include="cockpit\FSclimbRate.cs" />
<Compile Include="cockpit\FSfuelGauge.cs" />
<Compile Include="cockpit\FSkerbalPuppet.cs" />
<Compile Include="cockpit\FSmaintenanceCounter.cs" />
<Compile Include="cockpit\FSpitchIndicator.cs" />
<Compile Include="cockpit\FStachometer.cs" />
<Compile Include="customization\FSfuelSwitch.cs" />
<Compile Include="customization\FSmodularTank.cs" />
<Compile Include="engine\FS engine modules\FSengineBladed.cs" />
<Compile Include="engine\FSalternator.cs" />
<Compile Include="engine\FSresource.cs" />
<Compile Include="info\FSpartDirectionGuide.cs" />
<Compile Include="engine\Stock based modules\FSengineHover.cs" />
<Compile Include="engine\FSengineWrapper.cs" />
<Compile Include="engine\FSgroundParticles.cs" />
<None Include="unused\FSheliLiftEngine.cs" />
<Compile Include="engine\FS engine modules\FSengine.cs" />
<Compile Include="engine\FSpropellerTweak.cs" />
<Compile Include="customization\FSmeshSwitch.cs" />
<Compile Include="customization\FStextureSwitch2.cs" />
<Compile Include="tools\MeshCreator.cs" />
<Compile Include="tools\CompatabilityChecker.cs" />
<Compile Include="tools\FSversionCheck.cs" />
<None Include="unused\FShelicopterEngine.cs" />
<Compile Include="engine\FSparticleFX.cs" />
<Compile Include="engine\FSvelocityController.cs" />
<Compile Include="info\FSinputVisualizer.cs" />
<Compile Include="info\HelpPopup.cs" />
<Compile Include="tools\ShipHeading.cs" />
<Compile Include="engine\FSanimateThrottle.cs" />
<Compile Include="tools\FSgenericButtonHandler.cs" />
<Compile Include="tools\FSrandomNumberGenerator.cs" />
<Compile Include="tools\FStools.cs" />
<None Include="unused\transformTest.cs" />
<Compile Include="water\FSbuoyancy.cs" />
<Compile Include="info\FSdebugMessages.cs" />
<Compile Include="gui\FSGUIPopup.cs" />
<Compile Include="aero\FSairBrake.cs" />
<Compile Include="animation\FSanimateGeneric.cs" />
<Compile Include="unused\FSchangeControlDirection.cs" />
<Compile Include="engine\Stock based modules\FScopterThrottle.cs" />
<Compile Include="cockpit\FSActionGroupSwitch.cs" />
<Compile Include="animation\FSanimatedAirIntake.cs" />
<Compile Include="animation\FSanimateManually.cs" />
<Compile Include="tools\FSgenericButtonHandlerID.cs" />
<Compile Include="cockpit\FScameraToTV.cs" />
<Compile Include="engine\Stock based modules\FSengineHandCrank.cs" />
<Compile Include="engine\Stock based modules\FSengineMenuCleaner.cs" />
<Compile Include="wheel\FSexternalLandingGearControl.cs" />
<Compile Include="gui\FSGUIwindowID.cs" />
<Compile Include="engine\Stock based modules\FShoverThrottle.cs" />
<Compile Include="info\FSinfoPopup.cs" />
<Compile Include="cockpit\FSmonitorScript.cs" />
<Compile Include="tools\FSnodeLoader.cs" />
<None Include="unused\FSplaceStaticMesh.cs" />
<Compile Include="engine\FSplanePropellerSpinner.cs" />
<Compile Include="info\FSradarAltitude.cs" />
<None Include="unused\FSremoteControl.cs" />
<None Include="unused\FSresourceDial.cs" />
<Compile Include="water\FSrudder.cs" />
<Compile Include="engine\FSengineSounds.cs" />
<Compile Include="cockpit\FSswitchButtonHandler.cs" />
<Compile Include="engine\FSswitchEngineThrustTransform.cs" />
<Compile Include="cockpit\FSinternalPropRotator.cs" />
<Compile Include="cockpit\FSmonitorInterface.cs" />
<Compile Include="engine\Stock based modules\FSmultiAxisEngine.cs" />
<Compile Include="wheel\FSpartTurner.cs" />
<Compile Include="engine\Stock based modules\FSpropellerAtmosphericNerf.cs" />
<Compile Include="control\FSmoveCraftAtLaunch.cs" />
<Compile Include="customization\FStextureSwitch.cs" />
<Compile Include="control\FStrimAdjustment.cs" />
<Compile Include="wheel\FSwheel.cs" />
<Compile Include="aero\FSwing.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="engine\FSrotorTrim.cs" />
<Compile Include="engine\Stock based modules\FStailRotorThrust.cs" />
<Compile Include="engine\Stock based modules\FSthrottlePropSpinner.cs" />
<Compile Include="engine\Stock based modules\FSVTOLrotator.cs" />
<Compile Include="aero\FSwingletRangeAdjustment.cs" />
<Compile Include="wheel\FSwheelAlignment.cs" />
<Compile Include="wheel\WheelClass.cs" />
<Compile Include="wheel\WheelList.cs" />
</ItemGroup>
<ItemGroup>
<None Include="Documentation.txt" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
<!-- 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>
14 changes: 10 additions & 4 deletions Firespitter/cockpit/FScameraToTV.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,17 @@ public class FScameraToTV : InternalModule
//Vector3 originalPosition = new Vector3();
Quaternion originalRotation = new Quaternion();

// TODO: Compiler este Shader e usá-lo corretamente
public static Material normal = new Material(Shader.Find("Unlit/Texture") ?? Shader.Find("Standard"));
// TODO: Compiler este Shader e usá-lo corretamente
public static Material normal;

// TODO: Compiler este Shader e usá-lo corretamente
public static Material nightVision = new Material(Shader.Find("Nightvision") ?? Shader.Find("Standard"));
// TODO: Compiler este Shader e usá-lo corretamente
public static Material nightVision;

public void Awake()
{
normal = new Material(Shader.Find("Unlit/Texture") ?? Shader.Find("Standard"));
nightVision = new Material(Shader.Find("Nightvision") ?? Shader.Find("Standard"));
}

public void Start()
{
Expand Down
3 changes: 2 additions & 1 deletion Firespitter/customization/FSfuelSwitch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,11 @@ private void assignResourcesToPart(bool calledByPlayer)

if (tweakableUI == null)
{
tweakableUI = Tools.FindActionWindow(part);
tweakableUI = UIPartActionController.Instance.GetItem(part);
}
if (tweakableUI != null)
{
tweakableUI.CreatePartList(true);
tweakableUI.displayDirty = true;
}
else
Expand Down
Loading

0 comments on commit 056dac8

Please sign in to comment.