Exemplo n.º 1
0
        protected new void DrawTextInput()
        {
            EditorGUILayout.Space();

            if (GUILayout.Button(" 刷新表格 "))
            {
                UILocationAsset.Refresh();
            }

            serializedObject.Update();
            EditorGUILayout.LabelField($"当前文本:{mFishText.text}");

            if (GUILayout.Button(" 赋值 "))
            {
                SearchLocationTextWnd.ShowWindow();
            }

            bool show = EditorGUILayout.Toggle("中文竖显", mFishText.showVertical);

            if (mFishText.showVertical != show)
            {
                mFishText.showVertical = show;
            }

            bool addColon = mFishText.addColon = EditorGUILayout.Toggle("添加冒号", mFishText.addColon);

            if (mFishText.addColon != addColon)
            {
                mFishText.addColon = addColon;
            }
        }
Exemplo n.º 2
0
        public static async void ShowWindow()
        {
            await UILocationAsset.Refresh();

            EditorWindow.GetWindow(typeof(SearchLocationTextWnd));
        }