mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-13 01:10:45 +00:00
fix guiwindowCTRL callback
also set asset browser to use rows or columns depending on which dimension is longer
This commit is contained in:
parent
06bcf57755
commit
265ce8429b
2 changed files with 11 additions and 1 deletions
|
|
@ -2891,4 +2891,14 @@ function AssetBrowserWindow::releasePanel(%this)
|
|||
%this.resizing = false;
|
||||
|
||||
EditorGui.updateSideBar();
|
||||
}
|
||||
|
||||
function AssetBrowserWindow::onResize(%this, %posX, %posY, %width, %height)
|
||||
{
|
||||
if (%width>%height)
|
||||
AssetBrowser-->assetList.fillRowFirst = true;
|
||||
else
|
||||
AssetBrowser-->assetList.fillRowFirst = false;
|
||||
|
||||
AssetBrowser.doRebuildAssetArray();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue