示例#1
0
        private void Landing_Main_Load(object sender, EventArgs e)
        {
            //Show mod tool version
            VersionText.Text = "Version " + ProductVersion;

            //Show environment info
            if (SettingsManager.GetBool("CONFIG_UseStagingBranch"))
            {
                DebugText.Text += "[staging] ";
            }
            if (SettingsManager.GetBool("CONFIG_SkipUpdateCheck"))
            {
                DebugText.Text += "[no_update] ";
            }
            if (DebugText.Text.Length == 0)
            {
                DebugText.Hide();
            }

            //Set fonts & parents
            OpenConfigTools.Font          = FontManager.GetFont(0, 40);
            OpenConfigTools.Parent        = LandingBackground;
            OpenContentTools.Font         = FontManager.GetFont(0, 40);
            OpenContentTools.Parent       = LandingBackground;
            OpenScriptingTools.Font       = FontManager.GetFont(0, 40);
            OpenScriptingTools.Parent     = LandingBackground;
            OpenBehaviourTreeTools.Font   = FontManager.GetFont(0, 40);
            OpenBehaviourTreeTools.Parent = LandingBackground;
            LaunchGame.Font    = FontManager.GetFont(0, 40);
            LaunchGame.Parent  = LandingBackground;
            VersionText.Font   = FontManager.GetFont(1, 15);
            VersionText.Parent = LandingBackground;
            DebugText.Font     = FontManager.GetFont(1, 15);
            DebugText.Parent   = LandingBackground;
        }