Add addons

This commit is contained in:
Joey Yakimowich-Payne 2023-01-03 16:53:53 -07:00
commit 3367bad24f
No known key found for this signature in database
GPG key ID: 6BFE655FA5ABD1E1
527 changed files with 36197 additions and 0 deletions

View 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')

Binary file not shown.

After

Width:  |  Height:  |  Size: 700 B

View 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

View file

@ -0,0 +1,7 @@
@tool
extends DialogicIndexer
func _get_events() -> Array:
return [this_folder.path_join('event_signal.gd')]