mirror of
https://github.com/drewcassidy/KSP-Conformal-Decals.git
synced 2024-09-01 18:23:54 +00:00
Cleanup and migrate to using VS
This commit is contained in:
parent
fc6820d73b
commit
227c259e51
2
.gitignore
vendored
2
.gitignore
vendored
@ -49,5 +49,7 @@ Source/ConformalDecals/bin
|
|||||||
.ds_store
|
.ds_store
|
||||||
*.sublime*
|
*.sublime*
|
||||||
.idea
|
.idea
|
||||||
|
.vs
|
||||||
obj
|
obj
|
||||||
*.swp
|
*.swp
|
||||||
|
Source/.editorconfig
|
||||||
|
Binary file not shown.
@ -1,6 +1,12 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConformalDecals", "ConformalDecals/ConformalDecals.csproj", "{1EA983F9-42E5-494E-9683-FDAC9C9121F4}"
|
# Visual Studio Version 16
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConformalDecals", "ConformalDecals\ConformalDecals.csproj", "{1EA983F9-42E5-494E-9683-FDAC9C9121F4}"
|
||||||
|
EndProject
|
||||||
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{C2564402-B081-479B-B723-D5C065BC884E}"
|
||||||
|
ProjectSection(SolutionItems) = preProject
|
||||||
|
.editorconfig = .editorconfig
|
||||||
|
EndProjectSection
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
@ -13,4 +19,28 @@ Global
|
|||||||
{1EA983F9-42E5-494E-9683-FDAC9C9121F4}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{1EA983F9-42E5-494E-9683-FDAC9C9121F4}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{1EA983F9-42E5-494E-9683-FDAC9C9121F4}.Release|Any CPU.Build.0 = Release|Any CPU
|
{1EA983F9-42E5-494E-9683-FDAC9C9121F4}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
|
GlobalSection(MonoDevelopProperties) = preSolution
|
||||||
|
Policies = $0
|
||||||
|
$0.DotNetNamingPolicy = $1
|
||||||
|
$1.DirectoryNamespaceAssociation = PrefixedHierarchical
|
||||||
|
$0.TextStylePolicy = $2
|
||||||
|
$2.FileWidth = 80
|
||||||
|
$2.TabsToSpaces = True
|
||||||
|
$2.scope = text/x-csharp
|
||||||
|
$2.NoTabsAfterNonTabs = True
|
||||||
|
$2.EolMarker = Unix
|
||||||
|
$0.CSharpFormattingPolicy = $3
|
||||||
|
$3.NewLinesForBracesInTypes = False
|
||||||
|
$3.NewLinesForBracesInMethods = False
|
||||||
|
$3.NewLinesForBracesInProperties = False
|
||||||
|
$3.NewLinesForBracesInAccessors = False
|
||||||
|
$3.NewLinesForBracesInAnonymousMethods = False
|
||||||
|
$3.NewLinesForBracesInControlBlocks = False
|
||||||
|
$3.NewLinesForBracesInAnonymousTypes = False
|
||||||
|
$3.NewLinesForBracesInObjectCollectionArrayInitializers = False
|
||||||
|
$3.NewLinesForBracesInLambdaExpressionBody = False
|
||||||
|
$3.scope = text/x-csharp
|
||||||
|
$3.SpaceAfterCast = True
|
||||||
|
$0.StandardHeader = $4
|
||||||
|
EndGlobalSection
|
||||||
EndGlobal
|
EndGlobal
|
||||||
|
@ -46,6 +46,9 @@
|
|||||||
<None Remove="dlls\**" />
|
<None Remove="dlls\**" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="..\.editorconfig" />
|
||||||
|
</ItemGroup>
|
||||||
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
|
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
|
||||||
<Exec Command="/bin/cp -v '$(OutDir)ConformalDecals.dll' '$(SolutionDir)../GameData/ConformalDecals/Plugins'" />
|
<Exec Command="/bin/cp -v '$(OutDir)ConformalDecals.dll' '$(SolutionDir)../GameData/ConformalDecals/Plugins'" />
|
||||||
</Target>
|
</Target>
|
||||||
|
@ -123,7 +123,7 @@ namespace ConformalDecals {
|
|||||||
vertical = newVertical;
|
vertical = newVertical;
|
||||||
lineSpacing = newLineSpacing;
|
lineSpacing = newLineSpacing;
|
||||||
charSpacing = newCharSpacing;
|
charSpacing = newCharSpacing;
|
||||||
UpdateText();
|
UpdateAll();
|
||||||
|
|
||||||
foreach (var decal in part.symmetryCounterparts.Select(o => o.GetComponent<ModuleConformalText>())) {
|
foreach (var decal in part.symmetryCounterparts.Select(o => o.GetComponent<ModuleConformalText>())) {
|
||||||
decal.text = newText;
|
decal.text = newText;
|
||||||
@ -132,7 +132,7 @@ namespace ConformalDecals {
|
|||||||
decal.vertical = newVertical;
|
decal.vertical = newVertical;
|
||||||
decal.lineSpacing = newLineSpacing;
|
decal.lineSpacing = newLineSpacing;
|
||||||
decal.charSpacing = newCharSpacing;
|
decal.charSpacing = newCharSpacing;
|
||||||
decal.UpdateText();
|
decal.UpdateAll();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -271,16 +271,9 @@ namespace ConformalDecals {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void UpdateText() {
|
|
||||||
UpdateTextures();
|
|
||||||
UpdateMaterials();
|
|
||||||
UpdateScale();
|
|
||||||
UpdateTargets();
|
|
||||||
}
|
|
||||||
|
|
||||||
private IEnumerator UpdateTextLate() {
|
private IEnumerator UpdateTextLate() {
|
||||||
yield return null;
|
yield return null;
|
||||||
UpdateText();
|
UpdateAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void UpdateTextures() {
|
protected override void UpdateTextures() {
|
||||||
|
Loading…
Reference in New Issue
Block a user