Initial Android commit
This commit is contained in:
commit
1e2b80c13d
8521 changed files with 231475 additions and 0 deletions
10
addons/dialogic/Editor/Common/SectionTitle.gd
Normal file
10
addons/dialogic/Editor/Common/SectionTitle.gd
Normal file
|
@ -0,0 +1,10 @@
|
|||
tool
|
||||
extends Label
|
||||
export var text_key:String = ""
|
||||
|
||||
func set_text_from_key(value):
|
||||
text = DTS.translate(value)
|
||||
|
||||
func _ready():
|
||||
if text_key != "":
|
||||
set_text_from_key(text_key)
|
20
addons/dialogic/Editor/Common/SectionTitle.tscn
Normal file
20
addons/dialogic/Editor/Common/SectionTitle.tscn
Normal file
|
@ -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
|
||||
}
|
9
addons/dialogic/Editor/Common/TLabel.gd
Normal file
9
addons/dialogic/Editor/Common/TLabel.gd
Normal file
|
@ -0,0 +1,9 @@
|
|||
tool
|
||||
extends Label
|
||||
export var text_key:String = ""
|
||||
|
||||
func set_text_from_key(value):
|
||||
text = DTS.translate(value)
|
||||
|
||||
func _ready():
|
||||
set_text_from_key(text_key)
|
11
addons/dialogic/Editor/Common/TLabel.tscn
Normal file
11
addons/dialogic/Editor/Common/TLabel.tscn
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue