Skip to content

Commit

Permalink
WBT Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Angel-125 committed Aug 11, 2016
1 parent 788bcbf commit c0c5e8b
Show file tree
Hide file tree
Showing 26 changed files with 102 additions and 17 deletions.
20 changes: 10 additions & 10 deletions DSEVUtils/ModuleHexTruss.cs
Expand Up @@ -173,6 +173,7 @@ protected override void getProtoNodeValues(ConfigNode protoNode)

if (protoNode.HasValue("centerVestibuleName"))
centerVestibuleName = protoNode.GetValue("centerVestibuleName");

}

public override void OnStart(StartState state)
Expand Down Expand Up @@ -200,19 +201,13 @@ public override void OnStart(StartState state)
Events["PrevMesh"].guiActive = false;

//Set initial values
Log("rack configuration: " + rackConfiguration);
if (rackConfiguration == RackConfigurations.Unknown)
rackConfiguration = kDefaultRacks;
Log("rack configuration: " + rackConfiguration);

if (endCapIndex == -1)
endCapIndex = kDefaultEndCapIndex;

//Set the visible objects
SetVisibleObjects();
if (HighLogic.LoadedSceneIsEditor)
UpdateResources();

//Setup the GUI
if (endCapNames != null)
{
Expand Down Expand Up @@ -259,6 +254,11 @@ public override void OnStart(StartState state)
break;
}

//Set the visible objects
SetVisibleObjects();
if (HighLogic.LoadedSceneIsEditor)
UpdateResources();

}
#endregion

Expand Down Expand Up @@ -313,8 +313,8 @@ public virtual void SetVisibleObjects()
{
resourceDistributor.isEnabled = true;
resourceDistributor.enabled = true;
resourceDistributor.Events["ToggleDistributionMode"].guiActive = true;
resourceDistributor.Events["ToggleDistributionMode"].guiActiveEditor = true;
resourceDistributor.Events["SetupDistribution"].guiActive = true;
resourceDistributor.Events["SetupDistribution"].guiActiveEditor = true;
}
}
else
Expand All @@ -326,8 +326,8 @@ public virtual void SetVisibleObjects()
{
resourceDistributor.isEnabled = false;
resourceDistributor.enabled = false;
resourceDistributor.Events["ToggleDistributionMode"].guiActive = false;
resourceDistributor.Events["ToggleDistributionMode"].guiActiveEditor = false;
resourceDistributor.Events["SetupDistribution"].guiActive = false;
resourceDistributor.Events["SetupDistribution"].guiActiveEditor = false;
}
}
}
Expand Down
Binary file modified DSEVUtils/bin/Debug/DSEVUtils.dll
Binary file not shown.
Binary file modified DSEVUtils/bin/Debug/DSEVUtils.pdb
Binary file not shown.
Binary file modified DSEVUtils/bin/Debug/WildBlueTools.dll
Binary file not shown.
Binary file modified DSEVUtils/bin/Debug/WildBlueTools.pdb
Binary file not shown.
Binary file not shown.
Binary file modified DSEVUtils/obj/Debug/DSEVUtils.dll
Binary file not shown.
Binary file modified DSEVUtils/obj/Debug/DSEVUtils.pdb
Binary file not shown.
@@ -0,0 +1,15 @@
AGENT
{
name = <Classified>

description = <Classified> specializes in surplus "scientific equipment" originally created for the Unspecified Government Agency (UGA). Some of the technology is a bit more advanced than what KSC engineers can dream up, but that advanced technology comes at a higher cost too. And there's no guarantee that it will always work.
logoURL = WildBlueIndustries/000WildBlueTools/Agencies/ClassifiedFlag
logoScaledURL = WildBlueIndustries/000WildBlueTools/Agencies/ClassifiedFlag_scaled
mentality = Commercial
mentality = EasyGoing 0.2
mentality = Hasty 0.6
mentality = Pioneer
mentality = Moral 0.8
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,17 @@
STORAGE_TEMPLATE
{
name = Lead
author = Angel-125
shortName = Lead
logoPanel = WildBlueIndustries/000WildBlueTools/CommonTemplates/Decals/Ore
glowPanel = WildBlueIndustries/000WildBlueTools/CommonTemplates/Decals/OreGlow
description = This kit stores lead.

RESOURCE
{
name = Lead
amount = 5600
maxAmount = 5600
}

}
@@ -0,0 +1,17 @@
STORAGE_TEMPLATE
{
name = Uraninite
author = Angel-125
shortName = Uraninite
logoPanel = WildBlueIndustries/000WildBlueTools/CommonTemplates/Decals/Nuclear
glowPanel = WildBlueIndustries/000WildBlueTools/CommonTemplates/Decals/Nuclear
description = This kit stores uraninite.

RESOURCE
{
name = Uraninite
amount = 5600
maxAmount = 5600
}

}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Expand Up @@ -10,8 +10,8 @@ STORAGE_TEMPLATE:NEEDS[Kerbalism]
RESOURCE
{
name = Food
amount = 5600
maxAmount = 5600
amount = 18000
maxAmount = 18000
}

}
Expand All @@ -28,8 +28,8 @@ STORAGE_TEMPLATE:NEEDS[Kerbalism]
RESOURCE
{
name = Oxygen
amount = 5600
maxAmount = 5600
amount = 28000
maxAmount = 28000
}

}
Binary file not shown.
@@ -0,0 +1,18 @@
PROP
{
name = WBI_animateButton

MODEL
{
model = Squad/Props/squareButton/model
}

MODULE
{
name = WBIInternalButtonAnim

buttonName = button
buttonColorOn = 1,1,1
buttonColorOff = 0,0,1
}
}
Expand Up @@ -15,5 +15,6 @@ PROP
lightName = CockpitLight
buttonColorOff = 1,1,1
buttonColorOn = 1,1,0
cockpitLampName = CockpitLamp
}
}
11 changes: 11 additions & 0 deletions GameData/WildBlueIndustries/000WildBlueTools/Readme.txt
Expand Up @@ -6,6 +6,17 @@ A KSP mod that provides common functionality for mods by Wild Blue Industries.

Copy the contents of the mod's GameData directory into your GameData folder.

1.4.0
- Added animation button prop to control external animations from the IVA.
- The cabin lights button prop can now control external light animations.
- Fixed an issue where resources required by experiments wouldn't be accumulated.

1.3.13
- Added template for Uraninite.

1.3.12
- You can now change the configration on tanks with symmetrical parts. In the SPH/VAB it will happen automatically when you select a new configuration. After launch, you'll have the option to change symmetrical tanks.

1.3.11
- Added WBISelfDestruct and WBIOmniDecouple.
- If fuel tanks are arrayed symmetrically, you'll no longer be able to reconfigure them. It's either that or let the game explode (ie nothing I can do about it except prevent players from changing symmetrical tanks).
Expand Down
Expand Up @@ -11,8 +11,8 @@
"VERSION":
{
"MAJOR":1,
"MINOR":3,
"PATCH":11
"MINOR":4,
"PATCH":0
},
"KSP_VERSION":
{
Expand Down
2 changes: 1 addition & 1 deletion GameData/WildBlueIndustries/DSEV/DSEV.version
Expand Up @@ -12,7 +12,7 @@
{
"MAJOR":1,
"MINOR":2,
"PATCH":1
"PATCH":3
},
"KSP_VERSION":
{
Expand Down
Binary file modified GameData/WildBlueIndustries/DSEV/Plugins/DSEVUtils.dll
Binary file not shown.
6 changes: 6 additions & 0 deletions GameData/WildBlueIndustries/DSEV/Readme.txt
Expand Up @@ -18,6 +18,12 @@ Copy the WildBlueIndustries directory into your GameData folder.

---REVISION HISTORY---

1.2.3
- Updated to latest WBT.

1.2.2
- You can now change the configration on tanks with symmetrical parts. In the SPH/VAB it will happen automatically when you select a new configuration. After launch, you'll have the option to change symmetrical tanks.

1.2.1
- If fuel tanks are arrayed symmetrically, you'll no longer be able to reconfigure them. It's either that or let the game explode (ie nothing I can do about it except prevent players from changing symmetrical tanks).

Expand Down

0 comments on commit c0c5e8b

Please sign in to comment.