-
-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Styles: Rework internal structure of styles (#2402)
This is a big rewrite of how styles are stored in layers with the main goal of identifying styles not by their index but by an identifier. This solves a big issue that inherited styles previously had, where moving the layers of the base style was allowed but would break sub-styles. This also includes some code which auto-updates existing styles, but I'd like to remove this code again before we enter the beta phase (or at least for stable).
- Loading branch information
1 parent
a85fb36
commit b35dd01
Showing
9 changed files
with
388 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 16 additions & 5 deletions
21
addons/dialogic/Modules/DefaultLayoutParts/Style_TextBubbles/textbubble_style.tres
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,35 @@ | ||
[gd_resource type="Resource" script_class="DialogicStyle" load_steps=8 format=3 uid="uid://b0sbwssin2kuk"] | ||
[gd_resource type="Resource" script_class="DialogicStyle" load_steps=9 format=3 uid="uid://b0sbwssin2kuk"] | ||
|
||
[ext_resource type="PackedScene" uid="uid://syki6k0e6aac" path="res://addons/dialogic/Modules/DefaultLayoutParts/Base_TextBubble/text_bubble_base.tscn" id="1_a7s28"] | ||
[ext_resource type="Script" path="res://addons/dialogic/Resources/dialogic_style.gd" id="1_q3xp1"] | ||
[ext_resource type="PackedScene" uid="uid://d2it0xiap3gnt" path="res://addons/dialogic/Modules/DefaultLayoutParts/Layer_Textbubble/text_bubble_layer.tscn" id="2_ctkoo"] | ||
[ext_resource type="Script" path="res://addons/dialogic/Resources/dialogic_style_layer.gd" id="3_3a5cc"] | ||
[ext_resource type="PackedScene" uid="uid://cn674foxwedqu" path="res://addons/dialogic/Modules/DefaultLayoutParts/Layer_Input/full_advance_input_layer.tscn" id="4_rr4hm"] | ||
|
||
[sub_resource type="Resource" id="Resource_xt3fr"] | ||
[sub_resource type="Resource" id="Resource_u2jf8"] | ||
script = ExtResource("3_3a5cc") | ||
scene = ExtResource("1_a7s28") | ||
overrides = {} | ||
|
||
[sub_resource type="Resource" id="Resource_ajt4g"] | ||
script = ExtResource("3_3a5cc") | ||
scene = ExtResource("4_rr4hm") | ||
overrides = {} | ||
|
||
[sub_resource type="Resource" id="Resource_inc2n"] | ||
[sub_resource type="Resource" id="Resource_phvdv"] | ||
script = ExtResource("3_3a5cc") | ||
scene = ExtResource("2_ctkoo") | ||
overrides = {} | ||
|
||
[resource] | ||
script = ExtResource("1_q3xp1") | ||
name = "Textbubble Style" | ||
base_scene = ExtResource("1_a7s28") | ||
layer_list = Array[String](["10", "11"]) | ||
layer_info = { | ||
"": SubResource("Resource_u2jf8"), | ||
"10": SubResource("Resource_ajt4g"), | ||
"11": SubResource("Resource_phvdv") | ||
} | ||
base_overrides = {} | ||
layers = Array[ExtResource("3_3a5cc")]([SubResource("Resource_xt3fr"), SubResource("Resource_inc2n")]) | ||
layers = Array[ExtResource("3_3a5cc")]([]) | ||
metadata/_latest_layer = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.