-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using ToolbarController. ‘Dock to altimeter’ option added. Scaling support added. Textures redrawn. Project folder tree modified.
- Loading branch information
Showing
41 changed files
with
727 additions
and
1,243 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,10 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto | ||
|
||
# Custom for Visual Studio | ||
*.cs diff=csharp | ||
*.sln merge=union | ||
*.csproj merge=union | ||
*.vbproj merge=union | ||
*.fsproj merge=union | ||
*.dbproj merge=union |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/Releases | ||
/src/.vs | ||
/src/CriticalTemperatureGauge/obj | ||
/src/CriticalTemperatureGauge/bin | ||
/.vs | ||
/CriticalTemperatureGauge/obj | ||
/CriticalTemperatureGauge/bin | ||
*.suo | ||
*.user |
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,18 @@ | ||
{ | ||
"spec_version" : 1, | ||
"identifier" : "CriticalTemperatureGauge", | ||
"$kref" : "#/ckan/github/formicant/CriticalTemperatureGauge", | ||
"$vref" : "#/ckan/ksp-avc", | ||
"name" : "Critical Temperature Gauge", | ||
"author" : [ "Ravien", "Teilnehmer" ], | ||
"abstract" : "A plugin showing a temperature gauge and which part is going to blow up first", | ||
"license" : "GPL-3.0", | ||
"depends" : [ | ||
{ "name": "ModuleManager" }. | ||
{ "name": "ClickThroughBlocker" }. | ||
{ "name": "ToolbarController" } | ||
], | ||
"resources" : { | ||
"homepage" : "http://forum.kerbalspaceprogram.com/index.php?/topic/146239-113-critical-temperature-gauge-continued" | ||
} | ||
} |
19 changes: 12 additions & 7 deletions
19
src/CriticalTemperatureGauge.sln → CriticalTemperatureGauge.sln
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 |
---|---|---|
@@ -1,25 +1,30 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 16 | ||
VisualStudioVersion = 16.0.28729.10 | ||
VisualStudioVersion = 16.0.29411.108 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CriticalTemperatureGauge", "CriticalTemperatureGauge\CriticalTemperatureGauge.csproj", "{8FB4471E-FBBB-4538-9776-D22AD22B9B18}" | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CriticalTemperatureGauge", "CriticalTemperatureGauge\CriticalTemperatureGauge.csproj", "{84D37056-6C2B-4016-AC7B-69EDC258622C}" | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{1931306C-ABAE-442B-888B-FE658B98A0C5}" | ||
ProjectSection(SolutionItems) = preProject | ||
GameData\CriticalTemperatureGauge\CriticalTemperatureGauge.version = GameData\CriticalTemperatureGauge\CriticalTemperatureGauge.version | ||
EndProjectSection | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{8FB4471E-FBBB-4538-9776-D22AD22B9B18}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{8FB4471E-FBBB-4538-9776-D22AD22B9B18}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{8FB4471E-FBBB-4538-9776-D22AD22B9B18}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{8FB4471E-FBBB-4538-9776-D22AD22B9B18}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{84D37056-6C2B-4016-AC7B-69EDC258622C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{84D37056-6C2B-4016-AC7B-69EDC258622C}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{84D37056-6C2B-4016-AC7B-69EDC258622C}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{84D37056-6C2B-4016-AC7B-69EDC258622C}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {F1B19BB7-A0E6-461A-BEFD-3815D2F04A7A} | ||
SolutionGuid = {57761E15-7176-423D-A7B2-0A391C3F32F1} | ||
EndGlobalSection | ||
EndGlobal |
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
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,16 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using UnityEngine; | ||
|
||
namespace CriticalTemperatureGauge | ||
{ | ||
static class Extensions | ||
{ | ||
public static T? Then<T>(this bool condition, T thenValue) where T : struct => | ||
condition ? thenValue : (T?)null; | ||
|
||
public static Rect Scale(this Rect rectangle, float scale) => | ||
new Rect(scale * rectangle.position, scale * rectangle.size); | ||
} | ||
} |
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
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
Oops, something went wrong.