in SupportingScripts/Editor/Scripts/MapSessionEditor.cs [213:274]
private void Initialize()
{
if (_baseStyle == null)
{
_baseStyle = new GUIStyle
{
wordWrap = true,
font = EditorStyles.helpBox.font,
fontSize = EditorStyles.helpBox.fontSize,
normal = EditorStyles.helpBox.normal
};
_baseStyle.normal.background = null;
_baseStyle.stretchWidth = false;
_baseStyle.stretchHeight = false;
_baseStyle.margin = new RectOffset();
}
if (_warnIcon == null)
{
_warnIcon = EditorGUIUtility.TrIconContent("console.warnicon");
}
if (_iconStyle == null)
{
_iconStyle =
new GUIStyle(_baseStyle)
{
stretchHeight = false,
alignment = TextAnchor.MiddleLeft,
fixedWidth = _warnIcon.image.width,
fixedHeight = _warnIcon.image.height,
stretchWidth = false,
wordWrap = false
};
}
if (_hyperlinkStyle == null)
{
_hyperlinkStyle =
new GUIStyle(_baseStyle)
{
alignment = TextAnchor.UpperLeft
};
_hyperlinkStyle.normal.textColor = new Color(0x00 / 255f, 0x78 / 255f, 0xDA / 255f, 1f);
_hyperlinkStyle.stretchWidth = false;
_hyperlinkStyle.padding = new RectOffset();
_hyperlinkStyle.alignment = TextAnchor.UpperLeft;
}
if (_foldoutTitleStyle == null)
{
_foldoutTitleStyle = new GUIStyle(EditorStyles.foldout)
{
fontStyle = UnityEngine.FontStyle.Bold
};
}
if (_boxStyle == null)
{
_boxStyle = new GUIStyle(GUI.skin.box);
}
}