Skip to content

Commit

Permalink
KSP 1.3 updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
taniwha committed Jun 26, 2017
1 parent e2c311f commit 5fd56d8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Source/Tanks/FuelTank.cs
Expand Up @@ -121,15 +121,15 @@ public PartResourceDefinition boiloffProductResource
*/
public void RaiseResourceInitialChanged (Part part, PartResource resource, double amount)
{
var data = new BaseEventData (BaseEventData.Sender.USER);
var data = new BaseEventDetails (BaseEventDetails.Sender.USER);
data.Set<PartResource> ("resource", resource);
data.Set<double> ("amount", amount);
part.SendEvent ("OnResourceInitialChanged", data, 0);
}

public void RaiseResourceMaxChanged (Part part, PartResource resource, double amount)
{
var data = new BaseEventData (BaseEventData.Sender.USER);
var data = new BaseEventDetails (BaseEventDetails.Sender.USER);
data.Set<PartResource> ("resource", resource);
data.Set<double> ("amount", amount);
part.SendEvent ("OnResourceMaxChanged", data, 0);
Expand Down
6 changes: 3 additions & 3 deletions Source/Tanks/ModuleFuelTanks.cs
Expand Up @@ -504,7 +504,7 @@ public double AvailableVolume
public float tankVolumeConversion = 1000;

[KSPEvent (guiActive=false, active = true)]
void OnPartVolumeChanged (BaseEventData data)
void OnPartVolumeChanged (BaseEventDetails data)
{
string volName = data.Get<string> ("volName");
double newTotalVolume = data.Get<double> ("newTotalVolume") * tankVolumeConversion;
Expand Down Expand Up @@ -781,15 +781,15 @@ public ModifierChangeWhen GetModuleCostChangeWhen ()

public void RaiseResourceInitialChanged(PartResource resource, double amount)
{
var data = new BaseEventData (BaseEventData.Sender.USER);
var data = new BaseEventDetails (BaseEventDetails.Sender.USER);
data.Set<PartResource> ("resource", resource);
data.Set<double> ("amount", amount);
part.SendEvent ("OnResourceInitialChanged", data, 0);
}

public void RaiseResourceMaxChanged (PartResource resource, double amount)
{
var data = new BaseEventData (BaseEventData.Sender.USER);
var data = new BaseEventDetails (BaseEventDetails.Sender.USER);
data.Set<PartResource> ("resource", resource);
data.Set<double> ("amount", amount);
part.SendEvent ("OnResourceMaxChanged", data, 0);
Expand Down
4 changes: 2 additions & 2 deletions Source/assembly/Checkers.cs
Expand Up @@ -64,7 +64,7 @@ public static bool IsCompatible()
// Even if you don't lock down functionality, you should return true if your users
// can expect a future update to be available.
//
return Versioning.version_major == 1 && Versioning.version_minor == 2 && Versioning.Revision == 2;
return Versioning.version_major == 1 && Versioning.version_minor == 3 && Versioning.Revision == 0;

/*-----------------------------------------------*\
| IMPLEMENTERS SHOULD NOT EDIT BEYOND THIS POINT! |
Expand Down Expand Up @@ -180,7 +180,7 @@ public void Start()

if ((incompatible.Length > 0) || (incompatibleUnity.Length > 0))
{
PopupDialog.SpawnPopupDialog(new Vector2(0, 0), new Vector2(0, 0), "Incompatible Mods Detected", message, "OK", true, HighLogic.UISkin);
PopupDialog.SpawnPopupDialog(new Vector2(0, 0), new Vector2(0, 0), "CompatibilityChecker", "Incompatible Mods Detected", message, "OK", true, HighLogic.UISkin);
}
}

Expand Down

0 comments on commit 5fd56d8

Please sign in to comment.