Jump to content

Recommended Posts

        private void ResetExperimentGUI()
        {
            //print("Resetting GUI...");
            if (SkinStored != null)
            {
                SkinStored.box.normal = StyleDefault;
                SkinStored.box.normal.background = GameDatabase.Instance.GetTexture("CactEye/Icons/ExperimentGUIBackground", false);
                SkinStored.box.fixedWidth = 0f;
                SkinStored.box.fixedHeight = 0f;
                SkinStored.window.fixedWidth = 400f;
            }
            else
            {
                Debug.Log("CactEye 2: Logical Error 3: SkinStored is null!");
            }

            ScienceStyle.fixedHeight = 0f;
            ScienceStyle.fixedWidth = 0f;
        }

        #endregion
    }
}

Can someone tell me what's wrong here?

Link to comment
Share on other sites

Hmm. The font doesn't look so appealing- you know, too wide, spaces are huge, etc. It's like, there are serifs everywhere, and they're massive. Also, the dude who made this font should really check his stuff, it looks quite unsettling when all the periods and semicolons are in bold but the actual letters aren't.

I also don't like the spoiler slider. It looks too dull, and needs some rounded corners. As well as that, I don't get the "share this post" button, looks too much like a "hyperlink" button and should be made larger.

I'm being very helpful here, right?

... right?

Link to comment
Share on other sites

1 minute ago, DMagic said:

Is this GUI stuff? Is it being run in OnGUI?

It is GUI stuff, for the special science experiment window. Is it bad that I have no idea what OnGUI is?

Link to comment
Share on other sites

OnGUI is like Start or Update, it's one of those Unity MonoBehaviour methods. It handles all of the legacy GUI drawing. Basically, anything in the GUI classes can only be run in OnGUI.

Link to comment
Share on other sites

Is this related to the above issue?

    {
        [KSPField(isPersistant = false)]
        public string Type = "Default Processor";

        [KSPField(isPersistant = false)]
        public float MinimumFOV = 0.1f;

        [KSPField(isPersistant = false)]
        public float maxScience = 0.25f;

        [KSPField(isPersistant = false)]
        public float consumeRate = 2f;

        [KSPField(isPersistant = false)]
        public string ExperimentID = "Default Experiment";

        [KSPField(isPersistant = true)]
        public bool Active = false;

        protected List<ScienceData> StoredData = new List<ScienceData>();

        private Vector3d OriginalSunDirection;

        private GUIStyle ScienceStyle;
        private GUIStyle ProgressStyle;
        private GUISkin SkinStored;
        private GUIStyleState StyleDefault;

 

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...