First work on dialogic, resized guild, and started implementing portraits.

This commit is contained in:
2025-08-14 10:26:24 -04:00
parent 95a7db036b
commit 3aeb3d44e6
959 changed files with 47688 additions and 46 deletions

View File

@@ -0,0 +1,65 @@
@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 := ""
################################################################################
## EXECUTE
################################################################################
func _execute() -> void:
print("[Dialogic Comment] #", text)
finish()
################################################################################
## INITIALIZE
################################################################################
func _init() -> void:
event_name = "Comment"
set_default_color('Color9')
event_category = "Helpers"
event_sorting_index = 0
################################################################################
## SAVING/LOADING
################################################################################
func to_text() -> String:
return "# "+text
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() -> void:
add_header_edit('text', ValueType.SINGLELINE_TEXT, {'left_text':'#', 'autofocus':true})
#################### SYNTAX HIGHLIGHTING #######################################
################################################################################
func _get_syntax_highlighting(Highlighter:SyntaxHighlighter, dict:Dictionary, _line:String) -> Dictionary:
dict[0] = {'color':event_color.lerp(Highlighter.normal_color, 0.3)}
return dict

View File

@@ -0,0 +1 @@
uid://16cn38ksouxi

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 B

View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://hbx10ru6sxfb"
path="res://.godot/imported/icon.png-fab76b8a5886dac0012cf73c317dbee4.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://addons/dialogic/Modules/Comment/icon.png"
dest_files=["res://.godot/imported/icon.png-fab76b8a5886dac0012cf73c317dbee4.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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,6 @@
@tool
extends DialogicIndexer
func _get_events() -> Array:
return [this_folder.path_join('event_comment.gd')]

View File

@@ -0,0 +1 @@
uid://c1qlp7yhm6qi5