First work on dialogic, resized guild, and started implementing portraits.
This commit is contained in:
86
addons/dialogic/Editor/HomePage/home_page.gd
Normal file
86
addons/dialogic/Editor/HomePage/home_page.gd
Normal file
@@ -0,0 +1,86 @@
|
||||
@tool
|
||||
extends DialogicEditor
|
||||
|
||||
## A Main page in the dialogic editor.
|
||||
|
||||
var tips: Array = []
|
||||
|
||||
|
||||
|
||||
func _get_icon() -> Texture:
|
||||
return load("res://addons/dialogic/Editor/Images/plugin-icon.svg")
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
self_modulate = get_theme_color("font_color", "Editor")
|
||||
self_modulate.a = 0.2
|
||||
|
||||
var edit_scale := DialogicUtil.get_editor_scale()
|
||||
%HomePageBox.custom_minimum_size = Vector2(600, 350)*edit_scale
|
||||
%TopPanel.custom_minimum_size.y = 100*edit_scale
|
||||
%VersionLabel.set('theme_override_font_sizes/font_size', 10 * edit_scale)
|
||||
var plugin_cfg := ConfigFile.new()
|
||||
plugin_cfg.load("res://addons/dialogic/plugin.cfg")
|
||||
%VersionLabel.text = plugin_cfg.get_value('plugin', 'version', 'unknown version')
|
||||
|
||||
%BottomPanel.self_modulate = get_theme_color("dark_color_3", "Editor")
|
||||
|
||||
%RandomTipLabel.add_theme_color_override("font_color", get_theme_color("property_color_z", "Editor"))
|
||||
%RandomTipMoreButton.icon = get_theme_icon("ExternalLink", "EditorIcons")
|
||||
|
||||
|
||||
|
||||
func _register() -> void:
|
||||
editors_manager.register_simple_editor(self)
|
||||
|
||||
self.alternative_text = "Welcome to dialogic!"
|
||||
|
||||
|
||||
|
||||
func _open(extra_info:Variant="") -> void:
|
||||
if tips.is_empty():
|
||||
var file := FileAccess.open('res://addons/dialogic/Editor/HomePage/tips.txt', FileAccess.READ)
|
||||
tips = file.get_as_text().split('\n')
|
||||
tips = tips.filter(func(item): return !item.is_empty())
|
||||
|
||||
randomize()
|
||||
var tip: String = tips[randi()%len(tips)]
|
||||
var text := tip.get_slice(';',0).strip_edges()
|
||||
var action := tip.get_slice(';',1).strip_edges()
|
||||
if action == text:
|
||||
action = ""
|
||||
show_tip(text, action)
|
||||
|
||||
|
||||
func show_tip(text:String='', action:String='') -> void:
|
||||
if text.is_empty():
|
||||
%TipBox.hide()
|
||||
%RandomTipLabel.hide()
|
||||
return
|
||||
|
||||
%TipBox.show()
|
||||
%RandomTipLabel.show()
|
||||
%RandomTip.text = '[i]'+text
|
||||
|
||||
if action.is_empty():
|
||||
%RandomTipMoreButton.hide()
|
||||
return
|
||||
|
||||
%RandomTipMoreButton.show()
|
||||
|
||||
if %RandomTipMoreButton.pressed.is_connected(_on_tip_action):
|
||||
%RandomTipMoreButton.pressed.disconnect(_on_tip_action)
|
||||
%RandomTipMoreButton.pressed.connect(_on_tip_action.bind(action))
|
||||
|
||||
|
||||
func _on_tip_action(action:String) -> void:
|
||||
if action.begins_with('https://'):
|
||||
OS.shell_open(action)
|
||||
return
|
||||
elif action.begins_with('editor://'):
|
||||
var editor_name := action.trim_prefix('editor://').get_slice('->',0)
|
||||
var extra_info := action.trim_prefix('editor://').get_slice('->',1)
|
||||
if editor_name in editors_manager.editors:
|
||||
editors_manager.open_editor(editors_manager.editors[editor_name].node, false, extra_info)
|
||||
return
|
||||
print("Tip button doesn't do anything (", action, ")")
|
||||
1
addons/dialogic/Editor/HomePage/home_page.gd.uid
Normal file
1
addons/dialogic/Editor/HomePage/home_page.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://j45jn2as8x0n
|
||||
373
addons/dialogic/Editor/HomePage/home_page.tscn
Normal file
373
addons/dialogic/Editor/HomePage/home_page.tscn
Normal file
@@ -0,0 +1,373 @@
|
||||
[gd_scene load_steps=23 format=3 uid="uid://cqy73hshqqgga"]
|
||||
|
||||
[ext_resource type="Script" path="res://addons/dialogic/Editor/HomePage/home_page.gd" id="1_6g38w"]
|
||||
[ext_resource type="Texture2D" uid="uid://cvmlp5nxb2rer" path="res://addons/dialogic/Editor/HomePage/icon_bg.png" id="1_ed1g1"]
|
||||
[ext_resource type="Texture2D" uid="uid://bt87p6qlso0ya" path="res://addons/dialogic/Editor/Images/dialogic-logo.svg" id="3_3leok"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_imi2d"]
|
||||
draw_center = false
|
||||
corner_radius_top_left = 15
|
||||
corner_radius_top_right = 15
|
||||
shadow_color = Color(0.796078, 0.572549, 0.933333, 0.0627451)
|
||||
shadow_size = 24
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_n2afh"]
|
||||
corner_radius_top_left = 15
|
||||
corner_radius_top_right = 15
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_lt7uf"]
|
||||
colors = PackedColorArray(0.296484, 0.648457, 1, 1, 0.732014, 0.389374, 1, 1)
|
||||
|
||||
[sub_resource type="GradientTexture2D" id="GradientTexture2D_2klx3"]
|
||||
gradient = SubResource("Gradient_lt7uf")
|
||||
fill_from = Vector2(0.151515, 0.272727)
|
||||
fill_to = Vector2(1, 1)
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_1gns2"]
|
||||
offsets = PackedFloat32Array(0.302013, 0.872483)
|
||||
colors = PackedColorArray(0.365323, 0.360806, 0.260695, 0, 0.615686, 0.615686, 0.615686, 0.592157)
|
||||
|
||||
[sub_resource type="GradientTexture2D" id="GradientTexture2D_u0aw3"]
|
||||
gradient = SubResource("Gradient_1gns2")
|
||||
fill = 1
|
||||
fill_from = Vector2(0.497835, 0.493506)
|
||||
fill_to = Vector2(1, 1)
|
||||
|
||||
[sub_resource type="FontVariation" id="FontVariation_vepxx"]
|
||||
variation_embolden = 2.0
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_w8q1h"]
|
||||
font = SubResource("FontVariation_vepxx")
|
||||
font_size = 40
|
||||
outline_size = 14
|
||||
outline_color = Color(0.0901961, 0.0901961, 0.0901961, 0.258824)
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_p7ka2"]
|
||||
content_margin_left = 10.0
|
||||
content_margin_top = 10.0
|
||||
content_margin_right = 10.0
|
||||
content_margin_bottom = 10.0
|
||||
bg_color = Color(1, 1, 1, 1)
|
||||
corner_radius_bottom_right = 15
|
||||
corner_radius_bottom_left = 15
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_es88k"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ce6uo"]
|
||||
content_margin_left = 7.0
|
||||
content_margin_top = 7.0
|
||||
content_margin_right = 7.0
|
||||
content_margin_bottom = 14.0
|
||||
bg_color = Color(0.803922, 0.352941, 1, 0.141176)
|
||||
corner_radius_top_left = 10
|
||||
corner_radius_top_right = 10
|
||||
corner_radius_bottom_right = 10
|
||||
corner_radius_bottom_left = 10
|
||||
|
||||
[sub_resource type="FontVariation" id="FontVariation_elu6e"]
|
||||
variation_embolden = 1.1
|
||||
|
||||
[sub_resource type="FontVariation" id="FontVariation_5kbdj"]
|
||||
variation_transform = Transform2D(1, 0.239, 0, 1, 0, 0)
|
||||
|
||||
[sub_resource type="FontVariation" id="FontVariation_g0m61"]
|
||||
variation_embolden = 1.43
|
||||
variation_transform = Transform2D(1, 0.343, 0, 1, 0, 0)
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_a8dvw"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ckyhx"]
|
||||
content_margin_left = 4.0
|
||||
content_margin_top = 4.0
|
||||
content_margin_right = 4.0
|
||||
content_margin_bottom = 4.0
|
||||
bg_color = Color(0.470588, 0.196078, 0.6, 1)
|
||||
corner_radius_top_left = 5
|
||||
corner_radius_top_right = 5
|
||||
corner_radius_bottom_right = 5
|
||||
corner_radius_bottom_left = 5
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_l1doy"]
|
||||
content_margin_left = 4.0
|
||||
content_margin_top = 4.0
|
||||
content_margin_right = 4.0
|
||||
content_margin_bottom = 4.0
|
||||
bg_color = Color(0.470588, 0.196078, 0.6, 1)
|
||||
border_width_left = 1
|
||||
border_width_top = 1
|
||||
border_width_right = 1
|
||||
border_width_bottom = 1
|
||||
corner_radius_top_left = 5
|
||||
corner_radius_top_right = 5
|
||||
corner_radius_bottom_right = 5
|
||||
corner_radius_bottom_left = 5
|
||||
|
||||
[sub_resource type="Image" id="Image_e1dkh"]
|
||||
data = {
|
||||
"data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 94, 94, 127, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 93, 93, 255, 255, 94, 94, 127, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 94, 94, 127, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 94, 94, 127, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 231, 255, 94, 94, 54, 255, 94, 94, 57, 255, 93, 93, 233, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 231, 255, 94, 94, 54, 255, 94, 94, 57, 255, 93, 93, 233, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 97, 97, 42, 255, 255, 255, 0, 255, 255, 255, 0, 255, 97, 97, 42, 255, 93, 93, 233, 255, 93, 93, 232, 255, 93, 93, 41, 255, 255, 255, 0, 255, 255, 255, 0, 255, 97, 97, 42, 255, 93, 93, 233, 255, 93, 93, 232, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 96, 96, 45, 255, 93, 93, 44, 255, 255, 255, 0, 255, 97, 97, 42, 255, 97, 97, 42, 255, 255, 255, 0, 255, 96, 96, 45, 255, 93, 93, 44, 255, 255, 255, 0, 255, 97, 97, 42, 255, 97, 97, 42, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 96, 96, 45, 255, 93, 93, 235, 255, 94, 94, 234, 255, 95, 95, 43, 255, 255, 255, 0, 255, 255, 255, 0, 255, 96, 96, 45, 255, 93, 93, 235, 255, 94, 94, 234, 255, 95, 95, 43, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 235, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 233, 255, 95, 95, 59, 255, 96, 96, 61, 255, 93, 93, 235, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 233, 255, 95, 95, 59, 255, 96, 96, 61, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 93, 93, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0),
|
||||
"format": "RGBA8",
|
||||
"height": 16,
|
||||
"mipmaps": false,
|
||||
"width": 16
|
||||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id="ImageTexture_sr7s6"]
|
||||
image = SubResource("Image_e1dkh")
|
||||
|
||||
[node name="HomePage" type="TextureRect"]
|
||||
self_modulate = Color(0, 0, 0, 0.2)
|
||||
clip_contents = true
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_right = -2.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("1_ed1g1")
|
||||
expand_mode = 1
|
||||
stretch_mode = 3
|
||||
script = ExtResource("1_6g38w")
|
||||
|
||||
[node name="CenterContainer" type="CenterContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="HomePageBox" type="VBoxContainer" parent="CenterContainer"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(600, 350)
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 0
|
||||
|
||||
[node name="TopPanel" type="Panel" parent="CenterContainer/HomePageBox"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(0, 100)
|
||||
layout_mode = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_imi2d")
|
||||
|
||||
[node name="Header2" type="Panel" parent="CenterContainer/HomePageBox/TopPanel"]
|
||||
clip_children = 1
|
||||
clip_contents = true
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_vertical = 3
|
||||
size_flags_stretch_ratio = 0.4
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_n2afh")
|
||||
|
||||
[node name="BG" type="TextureRect" parent="CenterContainer/HomePageBox/TopPanel/Header2"]
|
||||
modulate = Color(0.65098, 0.65098, 0.65098, 1)
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_vertical = 3
|
||||
size_flags_stretch_ratio = 0.3
|
||||
texture = SubResource("GradientTexture2D_2klx3")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Vignette" type="TextureRect" parent="CenterContainer/HomePageBox/TopPanel/Header2"]
|
||||
modulate = Color(0, 0, 0, 1)
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = -166.0
|
||||
offset_bottom = 166.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = SubResource("GradientTexture2D_u0aw3")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Logo" type="TextureRect" parent="CenterContainer/HomePageBox/TopPanel"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 19.0
|
||||
offset_top = 10.0
|
||||
offset_right = -23.0
|
||||
offset_bottom = -10.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_vertical = 3
|
||||
size_flags_stretch_ratio = 0.3
|
||||
texture = ExtResource("3_3leok")
|
||||
expand_mode = 1
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="Label" type="Label" parent="CenterContainer/HomePageBox/TopPanel/Logo"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = 155.0
|
||||
offset_top = -37.0
|
||||
offset_right = 185.0
|
||||
offset_bottom = 21.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
rotation = -0.201447
|
||||
text = "2"
|
||||
label_settings = SubResource("LabelSettings_w8q1h")
|
||||
|
||||
[node name="BottomPanel" type="PanelContainer" parent="CenterContainer/HomePageBox"]
|
||||
unique_name_in_owner = true
|
||||
self_modulate = Color(0, 0, 0, 1)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_p7ka2")
|
||||
|
||||
[node name="VersionLabel" type="Label" parent="CenterContainer/HomePageBox/BottomPanel"]
|
||||
unique_name_in_owner = true
|
||||
modulate = Color(1, 1, 1, 0.501961)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 8
|
||||
theme_override_font_sizes/font_size = 10
|
||||
text = "2.0-Alpha-15 WIP (Godot 4.2+)"
|
||||
horizontal_alignment = 2
|
||||
|
||||
[node name="ScrollContainer" type="ScrollContainer" parent="CenterContainer/HomePageBox/BottomPanel"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="CenterContainer/HomePageBox/BottomPanel/ScrollContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
theme_override_constants/separation = 50
|
||||
|
||||
[node name="CenterContainer" type="VBoxContainer" parent="CenterContainer/HomePageBox/BottomPanel/ScrollContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_stretch_ratio = 0.4
|
||||
|
||||
[node name="Label" type="Label" parent="CenterContainer/HomePageBox/BottomPanel/ScrollContainer/HBoxContainer/CenterContainer"]
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"DialogicSection"
|
||||
theme_override_constants/line_spacing = 0
|
||||
text = "Documentation"
|
||||
|
||||
[node name="WikiButton" type="LinkButton" parent="CenterContainer/HomePageBox/BottomPanel/ScrollContainer/HBoxContainer/CenterContainer"]
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"DialogicLink"
|
||||
text = " Wiki"
|
||||
underline = 2
|
||||
uri = "https://docs.dialogic.pro/"
|
||||
|
||||
[node name="WikiGettingStartedButton" type="LinkButton" parent="CenterContainer/HomePageBox/BottomPanel/ScrollContainer/HBoxContainer/CenterContainer"]
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"DialogicLink"
|
||||
text = " Getting Started"
|
||||
underline = 2
|
||||
uri = "https://docs.dialogic.pro/getting-started.html"
|
||||
|
||||
[node name="Separator" type="Control" parent="CenterContainer/HomePageBox/BottomPanel/ScrollContainer/HBoxContainer/CenterContainer"]
|
||||
custom_minimum_size = Vector2(0, 10)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label2" type="Label" parent="CenterContainer/HomePageBox/BottomPanel/ScrollContainer/HBoxContainer/CenterContainer"]
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"DialogicSection"
|
||||
text = "Get in touch"
|
||||
|
||||
[node name="BugRequestButton" type="LinkButton" parent="CenterContainer/HomePageBox/BottomPanel/ScrollContainer/HBoxContainer/CenterContainer"]
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"DialogicLink"
|
||||
text = " Bug / Request"
|
||||
underline = 2
|
||||
uri = "https://github.com/dialogic-godot/dialogic/issues/new/choose"
|
||||
|
||||
[node name="DiscordButton" type="LinkButton" parent="CenterContainer/HomePageBox/BottomPanel/ScrollContainer/HBoxContainer/CenterContainer"]
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"DialogicLink"
|
||||
text = " Discord"
|
||||
underline = 2
|
||||
uri = "https://discord.gg/2hHQzkf2pX"
|
||||
|
||||
[node name="Website" type="LinkButton" parent="CenterContainer/HomePageBox/BottomPanel/ScrollContainer/HBoxContainer/CenterContainer"]
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"DialogicLink"
|
||||
text = " Website"
|
||||
underline = 2
|
||||
uri = "https://dialogic.pro/"
|
||||
|
||||
[node name="DonateButton" type="LinkButton" parent="CenterContainer/HomePageBox/BottomPanel/ScrollContainer/HBoxContainer/CenterContainer"]
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"DialogicLink"
|
||||
text = " Donate"
|
||||
underline = 2
|
||||
uri = "https://www.patreon.com/JowanSpooner"
|
||||
|
||||
[node name="CenterContainer2" type="VBoxContainer" parent="CenterContainer/HomePageBox/BottomPanel/ScrollContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_constants/separation = 15
|
||||
|
||||
[node name="Control" type="Control" parent="CenterContainer/HomePageBox/BottomPanel/ScrollContainer/HBoxContainer/CenterContainer2"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="WelcomeText" type="RichTextLabel" parent="CenterContainer/HomePageBox/BottomPanel/ScrollContainer/HBoxContainer/CenterContainer2"]
|
||||
layout_mode = 2
|
||||
theme_override_styles/normal = SubResource("StyleBoxEmpty_es88k")
|
||||
bbcode_enabled = true
|
||||
text = "[center]Welcome to dialogic, a plugin that lets you easily create stories and dialogs for your game!"
|
||||
fit_content = true
|
||||
|
||||
[node name="RandomTipSection" type="VBoxContainer" parent="CenterContainer/HomePageBox/BottomPanel/ScrollContainer/HBoxContainer/CenterContainer2"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = -4
|
||||
alignment = 1
|
||||
|
||||
[node name="RandomTipLabel" type="Label" parent="CenterContainer/HomePageBox/BottomPanel/ScrollContainer/HBoxContainer/CenterContainer2/RandomTipSection"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"DialogicSection"
|
||||
theme_override_colors/font_color = Color(0, 0, 0, 1)
|
||||
text = "Random Tip"
|
||||
|
||||
[node name="TipBox" type="PanelContainer" parent="CenterContainer/HomePageBox/BottomPanel/ScrollContainer/HBoxContainer/CenterContainer2/RandomTipSection"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_ce6uo")
|
||||
|
||||
[node name="RandomTip" type="RichTextLabel" parent="CenterContainer/HomePageBox/BottomPanel/ScrollContainer/HBoxContainer/CenterContainer2/RandomTipSection/TipBox"]
|
||||
unique_name_in_owner = true
|
||||
clip_contents = false
|
||||
layout_mode = 2
|
||||
theme_override_fonts/bold_font = SubResource("FontVariation_elu6e")
|
||||
theme_override_fonts/italics_font = SubResource("FontVariation_5kbdj")
|
||||
theme_override_fonts/bold_italics_font = SubResource("FontVariation_g0m61")
|
||||
theme_override_styles/normal = SubResource("StyleBoxEmpty_a8dvw")
|
||||
bbcode_enabled = true
|
||||
text = "[i]You can[/i] [b]create custom[/b] events, [i][b]subsystems, text effects and even editors for[/b][i] [code]dialogic!"
|
||||
fit_content = true
|
||||
|
||||
[node name="RandomTipMoreButton" type="Button" parent="CenterContainer/HomePageBox/BottomPanel/ScrollContainer/HBoxContainer/CenterContainer2/RandomTipSection/TipBox/RandomTip"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -30.0
|
||||
offset_top = 1.0
|
||||
offset_right = -8.0
|
||||
offset_bottom = 23.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
tooltip_text = "Check it out!"
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_ckyhx")
|
||||
theme_override_styles/hover = SubResource("StyleBoxFlat_l1doy")
|
||||
icon = SubResource("ImageTexture_sr7s6")
|
||||
expand_icon = true
|
||||
BIN
addons/dialogic/Editor/HomePage/icon_bg.png
Normal file
BIN
addons/dialogic/Editor/HomePage/icon_bg.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 147 KiB |
40
addons/dialogic/Editor/HomePage/icon_bg.png.import
Normal file
40
addons/dialogic/Editor/HomePage/icon_bg.png.import
Normal file
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cvmlp5nxb2rer"
|
||||
path="res://.godot/imported/icon_bg.png-5937ce0a857c4a8a9d624ea9ebf09a97.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/dialogic/Editor/HomePage/icon_bg.png"
|
||||
dest_files=["res://.godot/imported/icon_bg.png-5937ce0a857c4a8a9d624ea9ebf09a97.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
|
||||
11
addons/dialogic/Editor/HomePage/tips.txt
Normal file
11
addons/dialogic/Editor/HomePage/tips.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
Dialogic variables can be changed from timelines [b]and[/b] scripts! They can be used in conditions and inside of texts!; editor://VariablesEditor
|
||||
You can create [b]custom modules[/b] for dialogic, including events, subsystems, text effects, ui layouts and even editors!; editor://Settings->General
|
||||
If there are events you never need, you can hide them from the list in the editor!; editor://Settings->Modules
|
||||
Did you know that dialogic supports translations? It does!; editor://Settings->Translations
|
||||
You can use [b]bbcode effects[/b] in text events! What are they though???; https://docs.godotengine.org/en/latest/tutorials/ui/bbcode_in_richtextlabel.html
|
||||
Writing [/i]<Oh hi/Hello you/Well, well>[i] in a text event will pick a random one of the three strings!
|
||||
There are a number of cool text effects like [pause=x], [speed=x] and [portrait=x]. Try them out!;
|
||||
You can use scenes as portraits! This gives you basically limitless freedom.; https://dialogic-docs.coppolaemilio.com/custom-portraits.html
|
||||
You can use scenes as backgrounds. This way they can be animated or whatever you want!
|
||||
Dialogic has a built in save and load system! It's pretty powerful!; editor://Settings->Saving
|
||||
You can add multiple glossary files, each containing words that can be hovered for information!; editor://GlossaryEditor
|
||||
Reference in New Issue
Block a user