public void Reload() { var skin = GetCustomStyles(); SetStyleOrThrow(ref header, "header", skin); SetStyleOrThrow(ref row0, "row0", skin); SetStyleOrThrow(ref row1, "row1", skin); SetStyleOrThrow(ref selectedRow, "selectedRow", skin); SetStyleOrThrow(ref entry, EditorGUIUtility.isProSkin ? "entryPro" : "entry", skin); SetStyleOrThrow(ref category, EditorGUIUtility.isProSkin ? "entryPro" : "entryWhite", skin); SetStyleOrThrow(ref treeMapEntry, "treeMapEntry", skin); SetStyleOrThrow(ref projectOverlayMask, "projectOverlayMask", skin); changelog = LoadTextOrThrow("BBI_Changelog.txt"); tips = LoadTextOrThrow("BBI_Tips.txt"); largeButtonStyle = GUIHelpers.GetStyleOrThrow("LargeButton"); closeButtonStyle = GUIHelpers.GetStyle("WinBtnClose"); if (closeButtonStyle == null) { closeButtonStyle = GUIHelpers.GetStyle("WinBtnCloseWin"); if (closeButtonStyle == null) { closeButtonStyle = EditorStyles.miniButton; } } pathStyle = EditorStyles.largeLabel; entryZeroSize = new GUIStyle(entry); entryZeroSize.fontStyle = FontStyle.Italic; changelogStyle = new GUIStyle(EditorStyles.label); changelogStyle.richText = true; changelogStyle.wordWrap = true; toolbarButtonLeftAlignedStyle = new GUIStyle(EditorStyles.toolbarButton); toolbarButtonLeftAlignedStyle.alignment = TextAnchor.MiddleLeft; labelRightAlignedStyle = new GUIStyle(EditorStyles.label); labelRightAlignedStyle.alignment = TextAnchor.MiddleRight; labelRightTopAlignedStyle = new GUIStyle(EditorStyles.label); labelRightTopAlignedStyle.alignment = TextAnchor.UpperRight; inspectorBigStyle = new GUIStyle(GUIHelpers.GetStyleOrThrow("In BigTitle")); inspectorBigStyle.margin.top = 0; toolbarNoPaddingStyle = new GUIStyle(EditorStyles.toolbar); toolbarNoPaddingStyle.padding.left = toolbarNoPaddingStyle.padding.right = 0; richMenuItem = new GUIStyle(GUIHelpers.GetStyleOrThrow("MenuItem")); richMenuItem.richText = true; richMenuItem.imagePosition = ImagePosition.ImageLeft; richLabel = new GUIStyle(EditorStyles.label); richLabel.richText = true; richLabel.clipping = TextClipping.Overflow; richLabel.padding = new RectOffset(); richLabelRightAligned = new GUIStyle(richLabel); richLabelRightAligned.alignment = TextAnchor.MiddleRight; centeredGreyMiniLabel = EditorStyles.miniLabel; centeredGreyMiniLabel.normal.textColor = Color.grey; centeredGreyMiniLabel.alignment = TextAnchor.MiddleCenter; iconWindowContent = LoadTextureOrThrow("BBI_iconWindowContent.png"); iconHeader = LoadTextureOrThrow("BBI_iconHeader.png"); iconAssetMissing = LoadTextureOrThrow("BBI_iconAssetMissing.png"); iconWhiteCircle = LoadTextureOrThrow("BBI_iconWhiteCircle.png"); loaded = true; }