Cleanup and migrate to using VS

This commit is contained in:
2020-12-08 16:06:01 -08:00
parent fc6820d73b
commit 227c259e51
5 changed files with 43 additions and 15 deletions

View File

@ -35,19 +35,22 @@
</ItemGroup>
<ItemGroup>
<Compile Remove="dlls\**"/>
<Compile Remove="dlls\**" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Remove="dlls\**"/>
<EmbeddedResource Remove="dlls\**" />
</ItemGroup>
<ItemGroup>
<None Remove="dlls\**"/>
<None Remove="dlls\**" />
</ItemGroup>
<ItemGroup>
<None Include="..\.editorconfig" />
</ItemGroup>
<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>
</Project>

View File

@ -123,7 +123,7 @@ namespace ConformalDecals {
vertical = newVertical;
lineSpacing = newLineSpacing;
charSpacing = newCharSpacing;
UpdateText();
UpdateAll();
foreach (var decal in part.symmetryCounterparts.Select(o => o.GetComponent<ModuleConformalText>())) {
decal.text = newText;
@ -132,7 +132,7 @@ namespace ConformalDecals {
decal.vertical = newVertical;
decal.lineSpacing = newLineSpacing;
decal.charSpacing = newCharSpacing;
decal.UpdateText();
decal.UpdateAll();
}
}
@ -271,16 +271,9 @@ namespace ConformalDecals {
}
}
protected void UpdateText() {
UpdateTextures();
UpdateMaterials();
UpdateScale();
UpdateTargets();
}
private IEnumerator UpdateTextLate() {
yield return null;
UpdateText();
UpdateAll();
}
protected override void UpdateTextures() {