From 34ce86b144ea01a703089fc6822f7f93e19d7a3f Mon Sep 17 00:00:00 2001 From: MaddoScientisto Date: Sat, 22 Mar 2025 13:52:09 +0100 Subject: [PATCH] Dialogue and textbox improvements --- Dialogue/Styles/Textbox_style.tres | 5 +++-- Dialogue/Timelines/Tutorial/tutorial_gun.dtl | 2 +- Dialogue/Timelines/Tutorial/tutorial_switch.dtl | 2 +- project.godot | 8 +++++++- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Dialogue/Styles/Textbox_style.tres b/Dialogue/Styles/Textbox_style.tres index d4d62777..5a13469e 100644 --- a/Dialogue/Styles/Textbox_style.tres +++ b/Dialogue/Styles/Textbox_style.tres @@ -36,10 +36,11 @@ overrides = { "box_distance": "0.0", "box_modulate_custom_color": "Color(1, 1, 1, 1)", "box_modulate_global_color": "false", -"box_panel": "\"res://Resources/Styles/PixelStyleBoxRed_SquareBackground.tres\"", +"box_panel": "\"res://Resources/Styles/PixelStyleBoxRed.tres\"", "box_size": "Vector2(300, 80)", "name_label_color_mode": "1", "name_label_custom_size": "10.0", +"portrait_bg_modulate": "Color(0, 0, 0, 0)", "text_custom_size": "6.0" } @@ -79,4 +80,4 @@ layer_info = { } base_overrides = {} layers = Array[ExtResource("1_5pbjb")]([]) -metadata/_latest_layer = "" +metadata/_latest_layer = "12" diff --git a/Dialogue/Timelines/Tutorial/tutorial_gun.dtl b/Dialogue/Timelines/Tutorial/tutorial_gun.dtl index 30f76099..81e78984 100644 --- a/Dialogue/Timelines/Tutorial/tutorial_gun.dtl +++ b/Dialogue/Timelines/Tutorial/tutorial_gun.dtl @@ -1,4 +1,4 @@ -ICE: Here's your gun, pick it up by approaching it and pressing F or [something] when you see the marker around it. +ICE: Here's your gun, pick it up by approaching it and pressing {Buttons.Keyboard_F} or {Buttons.Left_Button_Pad} when you see the marker around it. Cirno (Smug Talk): I don't need a gun, I can use pretty strong magic! ICE: Perhaps in your original world, we ran some tests and it seems like using raw magic will tire you out really fast in this world ICE: Probably because this world does not have natural magic, so the magic in your body is all you have. diff --git a/Dialogue/Timelines/Tutorial/tutorial_switch.dtl b/Dialogue/Timelines/Tutorial/tutorial_switch.dtl index 4ca7f663..386ccca7 100644 --- a/Dialogue/Timelines/Tutorial/tutorial_switch.dtl +++ b/Dialogue/Timelines/Tutorial/tutorial_switch.dtl @@ -1,3 +1,3 @@ ICE: Great! You made it to the switch.\ -You can press F on the keyboard or [something] on your gamepad to activate it. +You can press {Buttons.Keyboard_F} or {Buttons.Left_Button_Pad} to activate it. ICE: Switches come in many forms, they allow you to manipolate your environment by opening doors, triggering devices and such. Always be on the lookout for switches. diff --git a/project.godot b/project.godot index 75ded2c8..4f4f54ca 100644 --- a/project.godot +++ b/project.godot @@ -86,7 +86,13 @@ directories/dtl_directory={ glossary/default_case_sensitive=true layout/style_list=["res://Dialogue/Styles/Textbox_style.tres", "res://Dialogue/Styles/VN.tres", "res://Dialogue/Styles/Terminal_Style.tres", "res://Dialogue/Styles/Briefing_Style.tres"] layout/default_style="res://Dialogue/Styles/Textbox_style.tres" -variables={} +variables={ +"Buttons": { +"Keyboard_F": "Ⓕ", +"Left_Button_Pad": "⒩", +"Right_Button_Pad": "⒪" +} +} extensions_folder="res://addons/dialogic_additions" text/letter_speed=0.01 text/initial_text_reveal_skippable=true