WIP corrections for drag-n-drop handling for cubemap and shape asset types

Added ability to override radio button behavior when selecting items in popup menus
Added ability to turn on rotation snapping as a setting, with SHIFT just inverting the rot snap mode
Implemented proper asset type filtering, complete with multiple type selection, and listing of active filters in AB footer. Selectable via visibility popup Menu
Moved asset preview button generation from code to template GUI file
added ability to move asset with drag-n-drop(Image asset only so far)
New AB folder icon
Properly link image asset fields to material asset if 'AlwaysPresentImageMaps' config setting is active
This commit is contained in:
Areloch 2019-11-24 06:52:34 -06:00
parent 27ee09e491
commit b2fcd5e7fb
23 changed files with 851 additions and 475 deletions

View file

@ -1344,6 +1344,7 @@ function EWorldEditor::setGridSnap( %this, %value )
{
%this.gridSnap = %value;
GlobalGizmoProfile.snapToGrid = %value;
GlobalGizmoProfile.forceSnapRotations = %value;
%this.syncGui();
}

View file

@ -131,6 +131,7 @@ EditorSettings.beginGroup( "Grid" );
EditorSettings.setDefaultValue( "gridColor", "255 255 255 20" );
EditorSettings.setDefaultValue( "gridSize", "1 1 1" );
EditorSettings.setDefaultValue( "snapToGrid", "0" ); //<-- Not currently used
EditorSettings.setDefaultValue( "forceSnapRotations", "0" ); //<-- Not currently used
EditorSettings.setDefaultValue( "renderPlane", "0" );
EditorSettings.setDefaultValue( "renderPlaneHashes", "0" );
EditorSettings.setDefaultValue( "planeDim", "500" );
@ -276,6 +277,7 @@ function EditorGui::readWorldEditorSettings(%this)
GlobalGizmoProfile.gridColor = EditorSettings.value("gridColor"); //$pref::WorldEditor::gridColor;
GlobalGizmoProfile.gridSize = EditorSettings.value("gridSize"); //$pref::WorldEditor::gridSize;
GlobalGizmoProfile.snapToGrid = EditorSettings.value("snapToGrid"); //$pref::WorldEditor::snapToGrid;
GlobalGizmoProfile.forceSnapRotations = EditorSettings.value("forceSnapRotations"); //$pref::WorldEditor::forceSnapRotations;
GlobalGizmoProfile.renderPlane = EditorSettings.value("renderPlane"); //$pref::WorldEditor::renderPlane;
GlobalGizmoProfile.renderPlaneHashes = EditorSettings.value("renderPlaneHashes"); //$pref::WorldEditor::renderPlaneHashes;
GlobalGizmoProfile.planeDim = EditorSettings.value("planeDim"); //$pref::WorldEditor::planeDim;
@ -371,6 +373,7 @@ function EditorGui::writeWorldEditorSettings(%this)
EditorSettings.setValue( "gridColor", GlobalGizmoProfile.gridColor ); //$Pref::WorldEditor::gridColor
EditorSettings.setValue( "gridSize", GlobalGizmoProfile.gridSize ); //$Pref::WorldEditor::gridSize
EditorSettings.setValue( "snapToGrid", GlobalGizmoProfile.snapToGrid ); //$Pref::WorldEditor::snapToGrid
EditorSettings.setValue( "forceSnapRotations", GlobalGizmoProfile.forceSnapRotations ); //$Pref::WorldEditor::forceSnapRotations
EditorSettings.setValue( "renderPlane", GlobalGizmoProfile.renderPlane ); //$Pref::WorldEditor::renderPlane
EditorSettings.setValue( "renderPlaneHashes", GlobalGizmoProfile.renderPlaneHashes );//$Pref::WorldEditor::renderPlaneHashes
EditorSettings.setValue( "planeDim", GlobalGizmoProfile.planeDim ); //$Pref::WorldEditor::planeDim

View file

@ -216,9 +216,9 @@ function toggleSurfacePropertiesViz( %mode )
for(%i=0; %i < 15; %i++)
{
if(%i == $Viz_SurfacePropertiesModeVar)
EVisibilityBufferVizOptions.checkItem(%i, true);
EVisibilityBufferVizOptions.checkItem(%i+1, true);
else
EVisibilityBufferVizOptions.checkItem(%i, false);
EVisibilityBufferVizOptions.checkItem(%i+1, false);
}
//forces the forward materials to get dis viz properly