Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the ‘Buildings start at max size’ option work. #1

Merged
merged 2 commits into from May 21, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion FShangarExtender/FSeditorExtender.cs
Expand Up @@ -39,6 +39,7 @@ class FSeditorExtender : MonoBehaviour
private ApplicationLauncherButton _toolbarButton;
private static Texture2D _shrinkIcon;
private static Texture2D _extendIcon;
private bool _isFirstUpdate;


private class Node
Expand Down Expand Up @@ -102,11 +103,12 @@ public void Update()
if (_hangarExtenderReady)
{
bool gotKeyPress = rescaleKeyPressed();
if (gotKeyPress)
if (_isFirstUpdate && BuildingStartMaxSize || gotKeyPress)
{
Debugger.advancedDebug("Scaling Hangar Geometry", _advancedDebug);
StartCoroutine(toggleScaling());
}
_isFirstUpdate = false;
}
}

Expand Down Expand Up @@ -267,6 +269,7 @@ private void resetMod()
_sphCameras.Clear();
_sceneScaled = false;
_hangarExtenderReady = false;
_isFirstUpdate = true;

if (_toolbarButton != null)
{
Expand Down
Binary file modified For Release/FShangarExtender/FShangarExtender.dll
Binary file not shown.
4 changes: 2 additions & 2 deletions For Release/FShangarExtender/settings.txt
Expand Up @@ -6,7 +6,7 @@
true
//NOT IN USE -- VAB Extents always Max? If false, the extents only expand when toggling the large model on
true
//NOT IN USE -- Buildings start at max size?
//Buildings start at max size?
false
//NOT IN USE -- Max camera distance. Setting this high may cause the cam to start zoomed far out, so adjust as needed
250
Expand All @@ -15,6 +15,6 @@ false
//Rescaling Factor for the visual buildings
5
//hiding the Hangars in the scene
false
true
//advanced Debugging for more information in the Log
false