/// <summary>
        ///     세부 정보 그리기
        /// </summary>
        protected override void DrawDetailProcess()
        {
            if (SelectedDataIndex.HasValue)
            {
                var questData = TargetDataList[SelectedDataIndex.Value];
                GUILayout.Space(3);
                GUILayout.BeginHorizontal();
                GUILayout.BeginVertical();
                GUILayout.Space(8);
                int beforeFontSize = EditorStyles.label.fontSize;
                EditorStyles.label.fontSize = 20;
                GUILayout.Label(questData.QuestId, EditorStyles.label);
                EditorStyles.label.fontSize = beforeFontSize;
                GUILayout.EndVertical();

                if (GUILayout.Button(TexturUpdateIcon, GUILayout.Width(40)))
                {
                    EditQuestWindow window = (EditQuestWindow)EditorWindow.GetWindow(typeof(EditQuestWindow));
                    window.Show();
                    window.UpdateQuestData(questData);
                }
                GUILayout.EndHorizontal();
                GUILayout.Space(3);

                bool beforeWordWrap      = EditorStyles.label.wordWrap;
                var  beforeWordAlignment = EditorStyles.label.alignment;
                EditorStyles.label.wordWrap  = true;
                EditorStyles.label.alignment = TextAnchor.UpperLeft;
                GUILayout.Label(questData.Description, EditorStyles.label, GUILayout.Width(TabPosition.width - 10), GUILayout.ExpandHeight(true));
                EditorStyles.label.alignment = beforeWordAlignment;
                EditorStyles.label.wordWrap  = beforeWordWrap;
            }
        }
Beispiel #2
0
        static void Init()
        {
            EditQuestWindow window = (EditQuestWindow)EditorWindow.GetWindow(typeof(EditQuestWindow));

            window.Show();
        }