mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-01 03:23:52 +00:00
Implementation of Nils' UI work for updated theming, functionality and style for the editors suite
This commit is contained in:
parent
dc1d6e7d9d
commit
33f35d35d4
908 changed files with 15381 additions and 3065 deletions
|
|
@ -1580,6 +1580,29 @@ function ShapeEdSeqFromMenu::onBrowseSelect( %this, %assetId )
|
|||
ShapeEdSequences.onEditSequenceSource( %shapePath );
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
function ShapeEdAnimWIndow::onWake(%this)
|
||||
{
|
||||
%animWindow = ShapeEdAnimWIndow;
|
||||
%position = "1" SPC Canvas.extent.y - 112;
|
||||
|
||||
if(isObject(ShapeEdPropWindow))
|
||||
{
|
||||
// Fit the the whole window together with the prop and select windows
|
||||
%extent = Canvas.extent.x - ShapeEdPropWindow.extent.x - 2 SPC %animWindow.extent.y;
|
||||
}
|
||||
else
|
||||
{
|
||||
// If we can't get the prop window then use a default width
|
||||
// (when the order of GUI loading has changed for example)
|
||||
%extent = Canvas.extent.x - 360 - 2 SPC %animWindow.extent.y;
|
||||
}
|
||||
|
||||
// resize and position accordingly
|
||||
%animWindow.resize(%position.x, %position.y, %extent.x, %extent.y);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Threads and Animation
|
||||
//------------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue