|
@@ -105,41 +105,6 @@ function windowConsoleDlg::showWindow(%this)
|
|
$WindowConsole::Open = true;
|
|
$WindowConsole::Open = true;
|
|
Canvas.pushDialog(%this);
|
|
Canvas.pushDialog(%this);
|
|
%this-->Scroll.setVisible(true);
|
|
%this-->Scroll.setVisible(true);
|
|
-
|
|
|
|
- // Add a tab to the asset browser
|
|
|
|
- if($AssetBrowser::Open)
|
|
|
|
- {
|
|
|
|
- %text = "Asset Browser";
|
|
|
|
- %command = "AssetBrowser.putToFront();";
|
|
|
|
-
|
|
|
|
- AssetBrowserWindow.text = "";
|
|
|
|
- windowConsoleControl.text = "";
|
|
|
|
-
|
|
|
|
- windowConsoleControl.setTab(windowConsole_Tab1, "Console Log", "");
|
|
|
|
- windowConsole_Tab1.setHidden(false);
|
|
|
|
- windowConsole_Tab1.setActive(false);
|
|
|
|
-
|
|
|
|
- if(windowConsole_Tab2.text $= %text || windowConsole_Tab3.text $= %text || windowConsole_Tab4.text $= %text)
|
|
|
|
- {
|
|
|
|
- // we have a tab, don't do anything
|
|
|
|
- }
|
|
|
|
- else if(windowConsole_Tab2.hidden == true)
|
|
|
|
- {
|
|
|
|
- windowConsoleControl.setTab(windowConsole_Tab2, %text, %command);
|
|
|
|
- }
|
|
|
|
- else if(windowConsole_Tab3.hidden == true)
|
|
|
|
- {
|
|
|
|
- windowConsoleControl.setTab(windowConsole_Tab3, %text, %command);
|
|
|
|
- }
|
|
|
|
- else if(windowConsole_Tab4.hidden == true)
|
|
|
|
- {
|
|
|
|
- windowConsoleControl.setTab(windowConsole_Tab4, %text, %command);
|
|
|
|
- }
|
|
|
|
- else
|
|
|
|
- {
|
|
|
|
- warn("Ran out of tabs for AssetBrowserWindow - windowConsoleDlg::showWindow()");
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
//-----------------------------------------------------------------------------
|