Adapt to new spritehandle names
Lots of files! However only change was renaming the icons overall.
This commit is contained in:
@@ -1993,7 +1993,7 @@ namespace FlaxEditor.Surface.Archetypes
|
||||
}
|
||||
else if (_isBind)
|
||||
{
|
||||
_helperButton.Brush = new SpriteBrush(Editor.Instance.Icons.Add48);
|
||||
_helperButton.Brush = new SpriteBrush(Editor.Instance.Icons.Add64);
|
||||
_helperButton.Color = Color.Red;
|
||||
_helperButton.TooltipText = "Add new handler function and bind it to this event";
|
||||
_helperButton.Enabled = _signature != null;
|
||||
|
||||
@@ -104,7 +104,7 @@ namespace FlaxEditor.Surface.Archetypes
|
||||
color *= 1.3f;
|
||||
color.A = 1.0f;
|
||||
var icons = Editor.Instance.Icons;
|
||||
var icon = isSelected ? icons.VisjectArrowClose : icons.VisjectArrowOpen;
|
||||
var icon = isSelected ? icons.VisjectArrowClosed32 : icons.VisjectArrowOpen32;
|
||||
|
||||
Render2D.PushTransform(ref arrowTransform);
|
||||
Render2D.DrawSprite(icon, arrowRect, color);
|
||||
|
||||
@@ -224,10 +224,10 @@ namespace FlaxEditor.Surface
|
||||
},
|
||||
Icons =
|
||||
{
|
||||
BoxOpen = editor.Icons.VisjectBoxOpen,
|
||||
BoxClose = editor.Icons.VisjectBoxClose,
|
||||
ArrowOpen = editor.Icons.VisjectArrowOpen,
|
||||
ArrowClose = editor.Icons.VisjectArrowClose,
|
||||
BoxOpen = editor.Icons.VisjectBoxOpen32,
|
||||
BoxClose = editor.Icons.VisjectBoxClosed32,
|
||||
ArrowOpen = editor.Icons.VisjectArrowOpen32,
|
||||
ArrowClose = editor.Icons.VisjectArrowClosed32,
|
||||
},
|
||||
Background = editor.UI.VisjectSurfaceBackground,
|
||||
};
|
||||
|
||||
@@ -759,12 +759,12 @@ namespace FlaxEditor.Surface
|
||||
_propertiesEditor.Modified += OnPropertyEdited;
|
||||
|
||||
// Toolstrip
|
||||
_saveButton = (ToolStripButton)_toolstrip.AddButton(Editor.Icons.Save32, Save).LinkTooltip("Save");
|
||||
_saveButton = (ToolStripButton)_toolstrip.AddButton(Editor.Icons.Save64, Save).LinkTooltip("Save");
|
||||
_toolstrip.AddSeparator();
|
||||
_undoButton = (ToolStripButton)_toolstrip.AddButton(Editor.Icons.Undo32, _undo.PerformUndo).LinkTooltip("Undo (Ctrl+Z)");
|
||||
_redoButton = (ToolStripButton)_toolstrip.AddButton(Editor.Icons.Redo32, _undo.PerformRedo).LinkTooltip("Redo (Ctrl+Y)");
|
||||
_undoButton = (ToolStripButton)_toolstrip.AddButton(Editor.Icons.Undo64, _undo.PerformUndo).LinkTooltip("Undo (Ctrl+Z)");
|
||||
_redoButton = (ToolStripButton)_toolstrip.AddButton(Editor.Icons.Redo64, _undo.PerformRedo).LinkTooltip("Redo (Ctrl+Y)");
|
||||
_toolstrip.AddSeparator();
|
||||
_toolstrip.AddButton(editor.Icons.PageScale32, ShowWholeGraph).LinkTooltip("Show whole graph");
|
||||
_toolstrip.AddButton(editor.Icons.CenterView64, ShowWholeGraph).LinkTooltip("Show whole graph");
|
||||
|
||||
// Setup input actions
|
||||
InputActions.Add(options => options.Undo, _undo.PerformUndo);
|
||||
|
||||
Reference in New Issue
Block a user