(m *Scene, mod events.DropMods)
| 794 | } |
| 795 | |
| 796 | func (em *Events) dragMenuAddModText(m *Scene, mod events.DropMods) { |
| 797 | text := "" |
| 798 | switch mod { |
| 799 | case events.DropCopy: |
| 800 | text = "Copy (use Shift to move):" |
| 801 | case events.DropMove: |
| 802 | text = "Move:" |
| 803 | } |
| 804 | NewText(m).SetType(TextLabelLarge).SetText(text).Styler(func(s *styles.Style) { |
| 805 | s.Margin.Set(units.Em(0.5)) |
| 806 | }) |
| 807 | } |
| 808 | |
| 809 | // dragDrop sends the [events.Drop] event to the top of the DragHovers stack. |
| 810 | // clearing the current dragging sprite before doing anything. |