First work on dialogic, resized guild, and started implementing portraits.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
[style]
|
||||
type = "Layer"
|
||||
name = "Simple Text Input Box"
|
||||
author = "Dialogic"
|
||||
description = "A layer with a simple text input box."
|
||||
scene = "text_input_layer.tscn"
|
||||
icon = "text_input_layer_icon.svg"
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 4.0 KiB |
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bn2b53n51smoo"
|
||||
path="res://.godot/imported/preview.png-bcceb5d2b7f92c1d0f818071294dc895.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/dialogic/Modules/DefaultLayoutParts/Layer_TextInput/preview.png"
|
||||
dest_files=["res://.godot/imported/preview.png-bcceb5d2b7f92c1d0f818071294dc895.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
|
||||
@@ -0,0 +1,14 @@
|
||||
@tool
|
||||
extends DialogicLayoutLayer
|
||||
|
||||
## A layer that contains a text-input node.
|
||||
|
||||
|
||||
func _apply_export_overrides() -> void:
|
||||
var layer_theme: Theme = get(&'theme')
|
||||
if layer_theme == null:
|
||||
layer_theme = Theme.new()
|
||||
|
||||
if get_global_setting(&'font', ''):
|
||||
layer_theme.default_font = load(get_global_setting(&'font', '') as String)
|
||||
layer_theme.default_font_size = get_global_setting(&'font_size', 0)
|
||||
@@ -0,0 +1 @@
|
||||
uid://bvma3rxhy6q35
|
||||
@@ -0,0 +1,76 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://cvgf4c6gg0tsy"]
|
||||
|
||||
[ext_resource type="Script" path="res://addons/dialogic/Modules/DefaultLayoutParts/Layer_TextInput/text_input_layer.gd" id="1_7ahrn"]
|
||||
[ext_resource type="Script" path="res://addons/dialogic/Modules/TextInput/node_text_input.gd" id="1_mxdep"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_3dpjm"]
|
||||
content_margin_left = 15.0
|
||||
content_margin_top = 15.0
|
||||
content_margin_right = 15.0
|
||||
content_margin_bottom = 15.0
|
||||
bg_color = Color(1, 1, 1, 1)
|
||||
corner_radius_top_left = 5
|
||||
corner_radius_top_right = 5
|
||||
corner_radius_bottom_right = 5
|
||||
corner_radius_bottom_left = 5
|
||||
|
||||
[sub_resource type="Theme" id="Theme_8xwp1"]
|
||||
|
||||
[node name="TextInputLayer" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
script = ExtResource("1_7ahrn")
|
||||
|
||||
[node name="DialogicNode_TextInput" type="Control" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -210.0
|
||||
offset_top = -50.0
|
||||
offset_right = 210.0
|
||||
offset_bottom = 50.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
script = ExtResource("1_mxdep")
|
||||
input_line_edit = NodePath("TextInputPanel/VBoxContainer/InputField")
|
||||
text_label = NodePath("TextInputPanel/VBoxContainer/TextLabel")
|
||||
confirmation_button = NodePath("TextInputPanel/VBoxContainer/ConfirmationButton")
|
||||
metadata/_edit_layout_mode = 1
|
||||
|
||||
[node name="TextInputPanel" type="PanelContainer" parent="DialogicNode_TextInput"]
|
||||
unique_name_in_owner = true
|
||||
self_modulate = Color(0, 0, 0, 0.780392)
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_3dpjm")
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="DialogicNode_TextInput/TextInputPanel"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="TextLabel" type="Label" parent="DialogicNode_TextInput/TextInputPanel/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
theme = SubResource("Theme_8xwp1")
|
||||
text = "Please enter some text:"
|
||||
autowrap_mode = 3
|
||||
|
||||
[node name="InputField" type="LineEdit" parent="DialogicNode_TextInput/TextInputPanel/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="ConfirmationButton" type="Button" parent="DialogicNode_TextInput/TextInputPanel/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 8
|
||||
text = "Confirm"
|
||||
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 16.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg version="1.1"
|
||||
id="svg13076" inkscape:export-filename="input_layer_icon.svg" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:svg="http://www.w3.org/2000/svg" inkscape:export-ydpi="96" inkscape:export-xdpi="96" inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
|
||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100px" height="100px"
|
||||
viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve">
|
||||
<sodipodi:namedview id="namedview13078" inkscape:pagecheckerboard="0" inkscape:cy="64.755078" inkscape:zoom="4.185" inkscape:cx="70.728793" pagecolor="#505050" showgrid="true" borderopacity="1" bordercolor="#eeeeee" inkscape:document-units="mm" inkscape:deskcolor="#505050" inkscape:pageopacity="0" inkscape:showpageshadow="0" inkscape:current-layer="layer1" inkscape:window-y="-8" inkscape:window-x="-8" inkscape:window-height="1017" inkscape:window-width="1920" inkscape:window-maximized="1">
|
||||
<inkscape:grid id="grid14286" type="xygrid"></inkscape:grid>
|
||||
</sodipodi:namedview>
|
||||
<g id="layer1" inkscape:label="Layer 1" inkscape:groupmode="layer">
|
||||
<g id="path30124">
|
||||
<polygon fill="#FFFFFF" points="40.03,68.723 24.778,68.723 24.778,60.723 28.403,60.723 28.403,39.191 24.778,39.191
|
||||
24.778,31.191 40.03,31.191 40.03,39.191 36.403,39.191 36.403,60.723 40.03,60.723 "/>
|
||||
</g>
|
||||
<g id="rect30126">
|
||||
<path fill="#FFFFFF" d="M81.973,83.529H17.151c-6.41,0-11.625-5.216-11.625-11.626V28.097c0-6.411,5.215-11.626,11.625-11.626
|
||||
h64.821c6.411,0,11.627,5.215,11.627,11.626v43.807C93.6,78.313,88.384,83.529,81.973,83.529z M17.151,24.471
|
||||
c-1.999,0-3.625,1.626-3.625,3.626v43.807c0,1.999,1.626,3.626,3.625,3.626h64.821c2,0,3.627-1.627,3.627-3.626V28.097
|
||||
c0-2-1.627-3.626-3.627-3.626H17.151z"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.1 KiB |
@@ -0,0 +1,44 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://d1irtbrawo1jp"
|
||||
path="res://.godot/imported/text_input_layer_icon.svg-5a1e8bca317bf45f6805d82812407215.ctex"
|
||||
metadata={
|
||||
"has_editor_variant": true,
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/dialogic/Modules/DefaultLayoutParts/Layer_TextInput/text_input_layer_icon.svg"
|
||||
dest_files=["res://.godot/imported/text_input_layer_icon.svg-5a1e8bca317bf45f6805d82812407215.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
|
||||
svg/scale=0.3
|
||||
editor/scale_with_editor_scale=true
|
||||
editor/convert_colors_with_editor_theme=true
|
||||
Reference in New Issue
Block a user