Add dialogic

This commit is contained in:
snider committed 2022-08-13 19:33:12 -07:00
1 parent 89d4d3a29c
commit 2c47b309ae
603 files changed
+34501

No files matched your search

@@ -0,0 +1,12 @@
tool
extends Label
export var text_key : String = ""
var editor_reference
func set_text_from_key(value):
text = editor_reference.dialogicTranslator.translate(value)
func _ready():
editor_reference = find_parent('EditorView')
if text_key != '':
set_text_from_key(text_key)
@@ -0,0 +1,20 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://addons/dialogic/Editor/Common/SectionTitle.gd" type="Script" id=1]
[sub_resource type="StyleBoxFlat" id=1]
content_margin_left = 4.0
content_margin_right = 4.0
content_margin_top = 4.0
content_margin_bottom = 4.0
bg_color = Color( 0.252, 0.2718, 0.3246, 1 )
[node name="SectionTitle" type="Label"]
margin_right = 270.0
margin_bottom = 22.0
custom_styles/normal = SubResource( 1 )
text = "Visuals"
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
+11
View File
@@ -0,0 +1,11 @@
tool
extends Label
export var text_key : String = ""
var editor_reference
func set_text_from_key(value):
text = editor_reference.dialogicTranslator.translate(value)
func _ready():
editor_reference = find_parent('EditorView')
set_text_from_key(text_key)
+11
View File
@@ -0,0 +1,11 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://addons/dialogic/Editor/Common/TLabel.gd" type="Script" id=1]
[node name="TLabel" type="Label"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}