private void OnGUI()
    {
        List <string> names = new List <string>(InternalDataManager.DataDictionary.Keys);

        selectItem = EditorDrawGUIUtil.DrawPopup("内部数据:", selectItem, names);

        if (string.IsNullOrEmpty(selectItem))
        {
            return;
        }

        object obj = InternalDataManager.DataDictionary[selectItem];

        pos0 = GUILayout.BeginScrollView(pos0);

        obj = EditorDrawGUIUtil.DrawBaseValue(obj.GetHashCode().ToString(), obj, EditorUIOpenState.OpenFirstFold);

        GUILayout.EndScrollView();
        if (GUILayout.Button("Clear"))
        {
            InternalDataManager.Clear();
        }

        if (GUILayout.Button("Log"))
        {
            ULog.Log("Test log");
        }
    }
예제 #2
0
        private bool touchUp()
        {
            ULog.print(TAG, "touchUp");
            isDraging = false;

            return(false);
        }
예제 #3
0
        public void AddLog(string Name, string Apply, string Type, string Content)
        {
            ULog u = new ULog();

            u.Uname    = Name;
            u.Utimes   = DateTime.Now;
            u.Uapply   = Apply;
            u.Utype    = Type;
            u.Ucontent = Content;
            ff.db <ULog>().Insert(u);
        }
예제 #4
0
        private void Initialize()
        {
            // treeのノードを開く
            treeView1.ExpandAll();

            drawMode = EDrawMode.Draw1;

            ULog.init();

            vt = new ViewTouch();

            drawManager = new UDrawManager();
            drawManager.init();
        }
예제 #5
0
        /**
         * 全ての描画オブジェクト情報を出力する
         */
        public void showAllList(bool ascending, bool isShowOnly)
        {
            // カレントページのリストを取得
            SortedDictionary <int, DrawList> lists = mDrawList;

            ULog.print(TAG, " ++ showAllList ++");

            IOrderedEnumerable <KeyValuePair <int, DrawList> > descendingList =
                lists.OrderByDescending(selector =>
            {
                DrawList list = lists[selector.Key];

                ULog.print(TAG, " + priority:" + list.getPriority());
                list.showAll(ascending, isShowOnly);

                return(selector.Key);
            });
        }
예제 #6
0
 /**
  * for Debug
  */
 /**
  * 描画オブジェクトをすべて出力する
  * @param isShowOnly  画面に表示中のもののみログを出力する
  */
 public void showAll(bool ascending, bool isShowOnly)
 {
     if (!ascending)
     {
         list.Reverse();
     }
     foreach (UDrawable obj in list)
     {
         if (!isShowOnly || obj.isShow)
         {
             String objStr = obj.ToString();
             ULog.print(UDrawManager.TAG, objStr + " isShow:" + obj.isShow);
         }
     }
     if (!ascending)
     {
         list.Reverse();
     }
 }
예제 #7
0
        static void HandleLog(string logString, string stackTrace, LogType logType)
        {
            if (!isOpenLog)
            {
                return;
            }

            if (logType == LogType.Warning)
            {
                return;
            }
            LogData logData = ULog.SetLogData(logType, logString, stackTrace);

            if (IsWriteLogToFile)
            {
                infoStream.WriteLine(logData.ToLogString());
                infoStream.Flush();
            }
        }