public static GUIStyle GetMultiLineStyle()
    {
        if (KGFGUIUtility.GetSkinIndex() == -1)
        {
            GUIStyle aStyle = new GUIStyle();
            aStyle.wordWrap = true;
            return(aStyle);
        }

        GUIStyle aWrapStyle = new GUIStyle(KGFGUIUtility.GetStyleLabel(KGFGUIUtility.eStyleLabel.eLabel));

        aWrapStyle.wordWrap    = true;
        aWrapStyle.fixedHeight = 0;
        return(aWrapStyle);
    }
Exemple #2
0
    void OnGUI()
    {
//		GUILayout.BeginVertical();
//		{
//			KGFGUIUtility.SpaceSmall();
//			GUILayout.BeginHorizontal();
//			{
//				KGFGUIUtility.SpaceSmall();
        KGFGUIUtility.BeginVerticalBox(KGFGUIUtility.eStyleBox.eBoxDecorated);
        {
            KGFGUIUtility.BeginHorizontalBox(KGFGUIUtility.eStyleBox.eBoxDarkTop);
            {
                DrawIcon();
                KGFGUIUtility.Label(itsTitle);
                GUILayout.FlexibleSpace();
            }
            KGFGUIUtility.EndHorizontalBox();
            KGFGUIUtility.BeginVerticalBox(KGFGUIUtility.eStyleBox.eBoxMiddleVertical);
            {
                GUIStyle aWrapStyle = new GUIStyle(KGFGUIUtility.GetStyleLabel(KGFGUIUtility.eStyleLabel.eLabel));
                aWrapStyle.wordWrap    = true;
                aWrapStyle.fixedHeight = 0;
                GUILayout.Label(itsInfo, aWrapStyle, GUILayout.ExpandWidth(true));
                GUILayout.FlexibleSpace();
            }
            KGFGUIUtility.EndVerticalBox();
            KGFGUIUtility.BeginHorizontalBox(KGFGUIUtility.eStyleBox.eBoxDarkBottom);
            {
                DrawButtons();
            }
            KGFGUIUtility.EndHorizontalBox();
        }
        KGFGUIUtility.EndVerticalBox();
//				KGFGUIUtility.SpaceSmall();
//			}
//			GUILayout.EndHorizontal();
//			KGFGUIUtility.SpaceSmall();
//		}
//		GUILayout.EndVertical();
    }