Add addons
This commit is contained in:
parent
2c862b2235
commit
3367bad24f
527 changed files with 36197 additions and 0 deletions
54
Sprout/addons/dialogic/Events/Signal/event_signal.gd
Normal file
54
Sprout/addons/dialogic/Events/Signal/event_signal.gd
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
@tool
|
||||
class_name DialogicSignalEvent
|
||||
extends DialogicEvent
|
||||
|
||||
## Event that emits the Dialogic.signal_event signal with an argument.
|
||||
## You can connect to this signal like this: `Dialogic.signal_event.connect(myfunc)`
|
||||
|
||||
|
||||
### Settings
|
||||
|
||||
## The argument that will be provided with the signal.
|
||||
var argument: String = ""
|
||||
|
||||
|
||||
################################################################################
|
||||
## EXECUTE
|
||||
################################################################################
|
||||
|
||||
func _execute() -> void:
|
||||
dialogic.emit_signal('signal_event', argument)
|
||||
finish()
|
||||
|
||||
|
||||
################################################################################
|
||||
## INITIALIZE
|
||||
################################################################################
|
||||
|
||||
func _init() -> void:
|
||||
event_name = "Signal"
|
||||
set_default_color('Color1')
|
||||
event_category = Category.Godot
|
||||
event_sorting_index = 0
|
||||
|
||||
|
||||
################################################################################
|
||||
## SAVING/LOADING
|
||||
################################################################################
|
||||
|
||||
func get_shortcode() -> String:
|
||||
return "signal"
|
||||
|
||||
|
||||
func get_shortcode_parameters() -> Dictionary:
|
||||
return {
|
||||
#param_name : property_info
|
||||
"arg" : {"property": "argument", "default": ""},
|
||||
}
|
||||
|
||||
################################################################################
|
||||
## EDITOR REPRESENTATION
|
||||
################################################################################
|
||||
|
||||
func build_event_editor():
|
||||
add_header_edit('argument', ValueType.SinglelineText, 'Emit "signal_event" signal with argument')
|
||||
BIN
Sprout/addons/dialogic/Events/Signal/icon.png
Normal file
BIN
Sprout/addons/dialogic/Events/Signal/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 700 B |
34
Sprout/addons/dialogic/Events/Signal/icon.png.import
Normal file
34
Sprout/addons/dialogic/Events/Signal/icon.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bxorbhnr4o2rj"
|
||||
path="res://.godot/imported/icon.png-d9d5b785f9b7449a3f8da20760d7fcbc.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/dialogic/Events/Signal/icon.png"
|
||||
dest_files=["res://.godot/imported/icon.png-d9d5b785f9b7449a3f8da20760d7fcbc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
7
Sprout/addons/dialogic/Events/Signal/index.gd
Normal file
7
Sprout/addons/dialogic/Events/Signal/index.gd
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
@tool
|
||||
extends DialogicIndexer
|
||||
|
||||
|
||||
func _get_events() -> Array:
|
||||
return [this_folder.path_join('event_signal.gd')]
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue