Skip to content

Commit

Permalink
Merge pull request #1 from formicant/master
Browse files Browse the repository at this point in the history
Make the ‘Buildings start at max size’ option work.
  • Loading branch information
Alewx committed May 21, 2016
2 parents 3c133eb + 8a353eb commit c1ed7c7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
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

0 comments on commit c1ed7c7

Please sign in to comment.