コード例 #1
0
ファイル: MainWindow.cs プロジェクト: BrentFarris/ForgeAlloy
 public void Draw()
 {
     // TODO:  Turn the scroll view into a class
     _scrollPosition = EditorGUILayout.BeginScrollView(_scrollPosition);
     if (_currentWindow != this)
     {
         _currentWindow.Draw();
         EditorGUILayout.Space();
         EditorGUILayout.BeginHorizontal();
         _returnButton.Draw();
         EditorGUILayout.EndHorizontal();
     }
     else
     {
         _buttons.Draw();
     }
     EditorGUILayout.EndScrollView();
 }
コード例 #2
0
ファイル: ForgeEditor.cs プロジェクト: BrentFarris/ForgeAlloy
 public void OnGUI()
 {
     _mainWindow.Draw();
 }