Add addons
This commit is contained in:
parent
2c862b2235
commit
3367bad24f
527 changed files with 36197 additions and 0 deletions
59
Sprout/addons/dialogic/Events/Comment/event_comment.gd
Normal file
59
Sprout/addons/dialogic/Events/Comment/event_comment.gd
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
@tool
|
||||
class_name DialogicCommentEvent
|
||||
extends DialogicEvent
|
||||
|
||||
## Event that does nothing but store a comment string. Will print the comment in debug builds.
|
||||
|
||||
|
||||
### Settings
|
||||
|
||||
## Content of the comment.
|
||||
var text :String = ""
|
||||
|
||||
|
||||
################################################################################
|
||||
## EXECUTE
|
||||
################################################################################
|
||||
|
||||
func _execute() -> void:
|
||||
print("[Dialogic Comment] #", text)
|
||||
finish()
|
||||
|
||||
|
||||
################################################################################
|
||||
## INITIALIZE
|
||||
################################################################################
|
||||
|
||||
func _init() -> void:
|
||||
event_name = "Comment"
|
||||
set_default_color('Color6')
|
||||
event_category = Category.Other
|
||||
event_sorting_index = 0
|
||||
continue_at_end = true
|
||||
|
||||
|
||||
################################################################################
|
||||
## SAVING/LOADING
|
||||
################################################################################
|
||||
|
||||
func to_text() -> String:
|
||||
var result_string = "# "+text
|
||||
return result_string
|
||||
|
||||
|
||||
func from_text(string:String) -> void:
|
||||
text = string.trim_prefix("# ")
|
||||
|
||||
|
||||
func is_valid_event(string:String) -> bool:
|
||||
if string.strip_edges().begins_with('#'):
|
||||
return true
|
||||
return false
|
||||
|
||||
|
||||
################################################################################
|
||||
## EDITOR REPRESENTATION
|
||||
################################################################################
|
||||
|
||||
func build_event_editor():
|
||||
add_header_edit('text', ValueType.SinglelineText, '#')
|
||||
BIN
Sprout/addons/dialogic/Events/Comment/icon.png
Normal file
BIN
Sprout/addons/dialogic/Events/Comment/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 398 B |
34
Sprout/addons/dialogic/Events/Comment/icon.png.import
Normal file
34
Sprout/addons/dialogic/Events/Comment/icon.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://hbx10ru6sxfb"
|
||||
path="res://.godot/imported/icon.png-0db0f9a86499a14eda3ca834beda5746.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/dialogic/Events/Comment/icon.png"
|
||||
dest_files=["res://.godot/imported/icon.png-0db0f9a86499a14eda3ca834beda5746.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
|
||||
6
Sprout/addons/dialogic/Events/Comment/index.gd
Normal file
6
Sprout/addons/dialogic/Events/Comment/index.gd
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
@tool
|
||||
extends DialogicIndexer
|
||||
|
||||
|
||||
func _get_events() -> Array:
|
||||
return [this_folder.path_join('event_comment.gd')]
|
||||
Loading…
Add table
Add a link
Reference in a new issue