<commit_before>﻿#region license
/*The MIT License (MIT)
CapComSkins - Store and initialize styles and textures

Copyright (c) 2015 DMagic

KSP Plugin Framework by TriggerAu, 2014: http://forum.kerbalspaceprogram.com/threads/66503-KSP-Plugin-Framework

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
#endregion

using System;
using System.Collections.Generic;
using System.Linq;
using CapCom.Framework;
using UnityEngine;

namespace CapCom
{
	[KSPAddon(KSPAddon.Startup.MainMenu, true)]
	class CapComSkins : CC_MBE
	{
		internal static GUISkin ccUnitySkin;
		internal static GUISkin ccKSPSkin;

		//Window styles
		internal static GUIStyle newWindowStyle;
		internal static GUIStyle dropDown;

		//Button styles
		internal static GUIStyle titleButton;
		internal static GUIStyle titleButtonActive;
		internal static GUIStyle textureButton;
		internal static GUIStyle tabButton;
		internal static GUIStyle tabButtonInactive;
		internal static GUIStyle menuButton;
		internal static GUIStyle keycodeButton;
		internal static GUIStyle warningButton;

		internal static GUIStyle acceptButton;
		internal static GUIStyle acceptButtonGreyed;
		internal static GUIStyle declineButton;
		internal static GUIStyle declineButtonGreyed;
		internal static GUIStyle cancelButton;
		internal static GUIStyle cancelButtonGreyed;

		internal static GUIStyle toggleOnButton;
		internal static GUIStyle toggleOffButton;

		//Icon Button styles
		internal static GUIStyle iconButton;

		//Text label styles
		internal static GUIStyle headerText;
		internal static GUIStyle reassignText;
		internal static GUIStyle reassignCurrentText;
		internal static GUIStyle warningText;
		internal static GUIStyle titleText;
		internal static GUIStyle briefingText;
		internal static GUIStyle synopsisText;
		internal static GUIStyle parameterText;
		internal static GUIStyle subParameterText;
		internal static GUIStyle noteText;
		internal static GUIStyle smallText;
		internal static GUIStyle timerText;
		internal static GUIStyle agencyContractText;

		//Reward styles
		internal static GUIStyle advance;
		internal static GUIStyle completion;
		internal static GUIStyle failure;
		internal static GUIStyle funds;
		internal static GUIStyle rep;
		internal static GUIStyle sci;

		internal static Texture2D toolbarIcon;
		internal static Texture2D dropDownTex;
		internal static Texture2D windowTex;
		internal static Texture2D buttonHover;
		internal static Texture2D fundsGreen;
		internal static Texture2D repRed;
		internal static Texture2D science;
		internal static Texture2D orderAsc;
		internal static Texture2D orderDesc;
		internal static Texture2D goldStar;
		internal static Texture2D goldStarTwo;
		internal static Texture2D goldStarThree;
		internal static Texture2D goldStarVertical;
		internal static Texture2D goldStarTwoVertical;
		internal static Texture2D goldStarThreeVertical;
		internal static Texture2D settingsIcon;
		internal static Texture2D resizeHandle;
		internal static Texture2D checkBox;
		internal static Texture2D failBox;
		internal static Texture2D emptyBox;
		internal static Texture2D notesPlusIcon;
		internal static Texture2D notesMinusIcon;
		internal static Texture2D sortStars;
		internal static Texture2D sortPlanet;
		internal static Texture2D sortTime;

		internal static Texture2D toggleOn;
		internal static Texture2D toggleOff;
		internal static Texture2D toggleHoverOff;
		internal static Texture2D toggleHoverOn;
		internal static Texture2D currentFlag;

		internal static Texture2D acceptButtonNormal;
		internal static Texture2D acceptButtonHover;
		internal static Texture2D acceptButtonActive;
		internal static Texture2D acceptButtonInactive;

		internal static Texture2D declineButtonNormal;
		internal static Texture2D declineButtonHover;
		internal static Texture2D declineButtonActive;
		internal static Texture2D declineButtonInactive;

		internal static Texture2D cancelButtonNormal;
		internal static Texture2D cancelButtonHover;
		internal static Texture2D cancelButtonActive;
		internal static Texture2D cancelButtonInactive;

		internal static Texture2D titleButtonOff;
		internal static Texture2D titleButtonOn;

		internal static Texture2D titleButtonOffLeft;
		internal static Texture2D titleButtonOnLeft;

		internal static Texture2D tabButtonOff;
		internal static Texture2D tabButtonOn;
		internal static Texture2D tabButtonHover;

		internal static Texture2D flagTex = new Texture2D(1, 1);

		internal static int fontSize = 0;

		protected override void OnGUIOnceOnly()
		{
			windowTex = GameDatabase.Instance.GetTexture("CapCom/Textures/WindowTex", false);
			dropDownTex = GameDatabase.Instance.GetTexture("CapCom/Textures/DropDownTex", false);
			toolbarIcon = GameDatabase.Instance.GetTexture("CapCom/Textures/CapComAppIcon", false);
			buttonHover = GameDatabase.Instance.GetTexture("CapCom/Textures/ButtonHover", false);
			fundsGreen = GameDatabase.Instance.GetTexture("CapCom/Textures/FundsGreenIcon", false);
			repRed = GameDatabase.Instance.GetTexture("CapCom/Textures/RepRedIcon", false);
			science = GameDatabase.Instance.GetTexture("CapCom/Textures/ScienceIcon", false);
			orderAsc = GameDatabase.Instance.GetTexture("CapCom/Textures/OrderAsc", false);
			orderDesc = GameDatabase.Instance.GetTexture("CapCom/Textures/OrderDesc", false);
			goldStar = GameDatabase.Instance.GetTexture("CapCom/Textures/GoldStar", false);<commit_msg>Initialize all textures<commit_after>﻿#region license
/*The MIT License (MIT)
CapComSkins - Store and initialize styles and textures

Copyright (c) 2015 DMagic

KSP Plugin Framework by TriggerAu, 2014: http://forum.kerbalspaceprogram.com/threads/66503-KSP-Plugin-Framework

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
#endregion

using System;
using System.Collections.Generic;
using System.Linq;
using CapCom.Framework;
using UnityEngine;

namespace CapCom
{
	[KSPAddon(KSPAddon.Startup.MainMenu, true)]
	class CapComSkins : CC_MBE
	{
		internal static GUISkin ccUnitySkin;
		internal static GUISkin ccKSPSkin;

		//Window styles
		internal static GUIStyle newWindowStyle;
		internal static GUIStyle dropDown;

		//Button styles
		internal static GUIStyle titleButton;
		internal static GUIStyle titleButtonActive;
		internal static GUIStyle textureButton;
		internal static GUIStyle tabButton;
		internal static GUIStyle tabButtonInactive;
		internal static GUIStyle menuButton;
		internal static GUIStyle keycodeButton;
		internal static GUIStyle warningButton;

		internal static GUIStyle acceptButton;
		internal static GUIStyle acceptButtonGreyed;
		internal static GUIStyle declineButton;
		internal static GUIStyle declineButtonGreyed;
		internal static GUIStyle cancelButton;
		internal static GUIStyle cancelButtonGreyed;

		internal static GUIStyle toggleOnButton;
		internal static GUIStyle toggleOffButton;

		//Icon Button styles
		internal static GUIStyle iconButton;

		//Text label styles
		internal static GUIStyle headerText;
		internal static GUIStyle reassignText;
		internal static GUIStyle reassignCurrentText;
		internal static GUIStyle warningText;
		internal static GUIStyle titleText;
		internal static GUIStyle briefingText;
		internal static GUIStyle synopsisText;
		internal static GUIStyle parameterText;
		internal static GUIStyle subParameterText;
		internal static GUIStyle noteText;
		internal static GUIStyle smallText;
		internal static GUIStyle timerText;
		internal static GUIStyle agencyContractText;

		//Reward styles
		internal static GUIStyle advance;
		internal static GUIStyle completion;
		internal static GUIStyle failure;
		internal static GUIStyle funds;
		internal static GUIStyle rep;
		internal static GUIStyle sci;

		internal static Texture2D toolbarIcon = new Texture2D(1, 1);
		internal static Texture2D dropDownTex = new Texture2D(1, 1);
		internal static Texture2D windowTex = new Texture2D(1, 1);
		internal static Texture2D buttonHover = new Texture2D(1, 1);
		internal static Texture2D fundsGreen = new Texture2D(1, 1);
		internal static Texture2D repRed = new Texture2D(1, 1);
		internal static Texture2D science = new Texture2D(1, 1);
		internal static Texture2D orderAsc = new Texture2D(1, 1);
		internal static Texture2D orderDesc = new Texture2D(1, 1);
		internal static Texture2D goldStar = new Texture2D(1, 1);
		internal static Texture2D goldStarTwo = new Texture2D(1, 1);
		internal static Texture2D goldStarThree = new Texture2D(1, 1);
		internal static Texture2D goldStarVertical = new Texture2D(1, 1);
		internal static Texture2D goldStarTwoVertical = new Texture2D(1, 1);
		internal static Texture2D goldStarThreeVertical = new Texture2D(1, 1);
		internal static Texture2D settingsIcon = new Texture2D(1,1);
		internal static Texture2D resizeHandle = new Texture2D(1,1);
		internal static Texture2D checkBox = new Texture2D(1,1);
		internal static Texture2D failBox = new Texture2D(1,1);
		internal static Texture2D emptyBox = new Texture2D(1,1);
		internal static Texture2D notesPlusIcon = new Texture2D(1,1);
		internal static Texture2D notesMinusIcon = new Texture2D(1,1);
		internal static Texture2D sortStars = new Texture2D(1,1);
		internal static Texture2D sortPlanet = new Texture2D(1,1);
		internal static Texture2D sortTime = new Texture2D(1,1);

		internal static Texture2D toggleOn = new Texture2D(1,1);
		internal static Texture2D toggleOff = new Texture2D(1,1);
		internal static Texture2D toggleHoverOff = new Texture2D(1,1);
		internal static Texture2D toggleHoverOn = new Texture2D(1,1);
		internal static Texture2D currentFlag = new Texture2D(1,1);

		internal static Texture2D acceptButtonNormal = new Texture2D(1,1);
		internal static Texture2D acceptButtonHover = new Texture2D(1, 1);
		internal static Texture2D acceptButtonActive = new Texture2D(1, 1);
		internal static Texture2D acceptButtonInactive = new Texture2D(1, 1);

		internal static Texture2D declineButtonNormal = new Texture2D(1, 1);
		internal static Texture2D declineButtonHover = new Texture2D(1, 1);
		internal static Texture2D declineButtonActive = new Texture2D(1, 1);
		internal static Texture2D declineButtonInactive = new Texture2D(1, 1);

		internal static Texture2D cancelButtonNormal = new Texture2D(1, 1);
		internal static Texture2D cancelButtonHover = new Texture2D(1, 1);
		internal static Texture2D cancelButtonActive = new Texture2D(1, 1);
		internal static Texture2D cancelButtonInactive = new Texture2D(1, 1);

		internal static Texture2D titleButtonOff = new Texture2D(1, 1);
		internal static Texture2D titleButtonOn = new Texture2D(1, 1);

		internal static Texture2D titleButtonOffLeft = new Texture2D(1, 1);
		internal static Texture2D titleButtonOnLeft = new Texture2D(1, 1);

		internal static Texture2D tabButtonOff = new Texture2D(1, 1);
		internal static Texture2D tabButtonOn = new Texture2D(1, 1);
		internal static Texture2D tabButtonHover = new Texture2D(1, 1);

		internal static Texture2D flagTex = new Texture2D(1, 1);

		internal static int fontSize = 0;

		protected override void OnGUIOnceOnly()
		{
			windowTex = GameDatabase.Instance.GetTexture("CapCom/Textures/WindowTex", false);
			dropDownTex = GameDatabase.Instance.GetTexture("CapCom/Textures/DropDownTex", false);
			toolbarIcon = GameDatabase.Instance.GetTexture("CapCom/Textures/CapComAppIcon", false);
			buttonHover = GameDatabase.Instance.GetTexture("CapCom/Textures/ButtonHover", false);
			fundsGreen = GameDatabase.Instance.GetTexture("CapCom/Textures/FundsGreenIcon", false);
			repRed = GameDatabase.Instance.GetTexture("CapCom/Textures/RepRedIcon", false);
			science = GameDatabase.Instance.GetTexture("CapCom/Textures/ScienceIcon", false);
			orderAsc = GameDatabase.Instance.GetTexture("CapCom/Textures/OrderAsc", false);
			orderDesc = GameDatabase.Instance.GetTexture("CapCom/Textures/OrderDesc", false);
			goldStar = GameDatabase.Instance.GetTexture("CapCom/Textures/GoldStar", false);
{'fraction_non_alphanumeric': 0.0573082489146165, 'fraction_numerical': 0.0203328509406657, 'mean_word_length': 5.565795724465558, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5177150', 'n_tokens_mistral': 4303, 'n_tokens_neox': 3915, 'n_words': 1368}