Jump to content

Well, got haystack to popup


Fel

Recommended Posts

The search doesn't like me (which it often doesn't) so I cannot find an official thread so... (and I figure that just explaining the changes, rather than releasing anything, could help with license wars)

//using System.Threading.Tasks;


// InvokeRepeating("MainHSActivity", 5.0F, 5.0F); // Refresh from time to time just in case
// InvokeRepeating("RefreshDataSaveSettings", 0, 30.0F);

*Mostly just because I was aiming at cleaning out the "old way" and don't want to do additional tests

	/// <summary>
/// This is the behaviour object that we hook events on to
/// </summary>
[KSPAddon(KSPAddon.Startup.Flight, false)]
public class HSBehaviour : MonoBehaviour

removed everything dealing with HSSettings.cs (There are no "settings" so far as I can see, so it probably is just causing problems)

Everything that is static should be made non-static

in HSBehaviour you need an object like

private HSResources patch = new HSResources();

and replace all "HSResources" into "patch"

Okay, so that empty box is actually the "Flag Image" that haystack does not have (neat that haystack knows about something that wasn't in 0.19 ;p)

It should be called "button_vessel_flag.png" and located with the other images.

Or you can skip it


foreach (string type in Enum.GetNames(typeof(VesselType))) {
if (type == "Flag") continue;
// Kinda dirty and superfluous method...

https://github.com/hermes-jr/KSP-Haystack-Plugin

Thing loads right for flight, might have done some other changes but I think those are the main ones.

Edited by Fel
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...