You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
333 B
16 lines
333 B
tool |
|
extends Button |
|
|
|
export (String) var EventName = '' |
|
|
|
func get_drag_data(position): |
|
var preview_label = Label.new() |
|
|
|
if (self.text != ''): |
|
preview_label.text = text |
|
else: |
|
preview_label.text = 'Add Event %s' % [ EventName ] |
|
|
|
set_drag_preview(preview_label) |
|
|
|
return { "source": "EventButton", "event_name": EventName }
|
|
|