예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ScriptDragIcon"/> class.
 /// </summary>
 /// <param name="editor">The script editor.</param>
 /// <param name="script">The target script.</param>
 /// <param name="x">The x position.</param>
 /// <param name="y">The y position.</param>
 /// <param name="size">The size (both width and height).</param>
 public ScriptDragIcon(ScriptsEditor editor, Script script, float x, float y, float size)
     : base(x, y, size, size)
 {
     Tag     = script;
     _editor = editor;
 }
예제 #2
0
 public void Init(int index, ScriptsEditor editor)
 {
     _editor = editor;
     _index  = index;
     _editor.ScriptDragChange += OnScriptDragChange;
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ScriptDragIcon"/> class.
 /// </summary>
 /// <param name="editor">The script editor.</param>
 /// <param name="script">The target script.</param>
 public ScriptDragIcon(ScriptsEditor editor, Script script)
 {
     Tag     = script;
     _editor = editor;
 }