diary/user_interface/tool_bar/tool_bar.tscn
2022-05-21 14:56:02 +02:00

121 lines
3.7 KiB
Plaintext

[gd_scene load_steps=16 format=2]
[ext_resource path="res://user_interface/main.theme" type="Theme" id=1]
[ext_resource path="res://user_interface/utility_controls/profile_image_rect_mask.png" type="Texture" id=2]
[ext_resource path="res://user_interface/utility_controls/profile_image_rect.tscn" type="PackedScene" id=3]
[ext_resource path="res://user_interface/fonts/Helvetica/Helvetica-Oblique.ttf" type="DynamicFontData" id=4]
[ext_resource path="res://user_interface/fonts/Helvetica/Helvetica-Bold.ttf" type="DynamicFontData" id=5]
[ext_resource path="res://user_interface/tool_bar/tool_bar.gd" type="Script" id=6]
[ext_resource path="res://user_interface/tool_bar/icons/call0.png" type="Texture" id=7]
[ext_resource path="res://user_interface/tool_bar/icons/off.png" type="Texture" id=8]
[ext_resource path="res://user_interface/tool_bar/icons/call1.png" type="Texture" id=9]
[ext_resource path="res://user_interface/tool_bar/icons/call01.png" type="Texture" id=10]
[ext_resource path="res://user_interface/tool_bar/icons/on.png" type="Texture" id=11]
[sub_resource type="Shader" id=1]
code = "shader_type canvas_item;
render_mode blend_mix;
uniform sampler2D mask;
void fragment() {
COLOR = texture(TEXTURE, UV) * vec4(vec3(1.0), texture(mask, UV).r);
}"
[sub_resource type="ShaderMaterial" id=2]
shader = SubResource( 1 )
shader_param/mask = ExtResource( 2 )
[sub_resource type="DynamicFont" id=3]
use_mipmaps = true
use_filter = true
font_data = ExtResource( 5 )
[sub_resource type="DynamicFont" id=4]
size = 24
use_mipmaps = true
use_filter = true
font_data = ExtResource( 4 )
[node name="ToolBar" type="PanelContainer"]
margin_top = 404.0
margin_right = 328.0
margin_bottom = 472.0
rect_min_size = Vector2( 0, 60 )
theme = ExtResource( 1 )
script = ExtResource( 6 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Margin" type="MarginContainer" parent="."]
margin_right = 328.0
margin_bottom = 68.0
custom_constants/margin_right = 10
custom_constants/margin_top = 10
custom_constants/margin_left = 10
custom_constants/margin_bottom = 10
[node name="Structure" type="HBoxContainer" parent="Margin"]
margin_left = 10.0
margin_top = 10.0
margin_right = 318.0
margin_bottom = 58.0
[node name="Profile" type="HBoxContainer" parent="Margin/Structure"]
margin_right = 172.0
margin_bottom = 48.0
size_flags_horizontal = 3
size_flags_vertical = 3
size_flags_stretch_ratio = 4.0
custom_constants/separation = 10
[node name="ProfileImageRect" parent="Margin/Structure/Profile" instance=ExtResource( 3 )]
material = SubResource( 2 )
margin_right = 48.0
margin_bottom = 48.0
[node name="UserTexts" type="VBoxContainer" parent="Margin/Structure/Profile"]
margin_left = 58.0
margin_right = 172.0
margin_bottom = 48.0
size_flags_horizontal = 3
size_flags_vertical = 3
size_flags_stretch_ratio = 2.0
[node name="Username" type="Label" parent="Margin/Structure/Profile/UserTexts"]
margin_right = 114.0
margin_bottom = 48.0
size_flags_horizontal = 3
size_flags_vertical = 3
custom_fonts/font = SubResource( 3 )
text = "[User]"
valign = 1
autowrap = true
clip_text = true
[node name="CallButton" type="TextureButton" parent="Margin/Structure"]
margin_left = 180.0
margin_right = 224.0
margin_bottom = 48.0
size_flags_horizontal = 3
size_flags_vertical = 3
texture_normal = ExtResource( 7 )
texture_pressed = ExtResource( 9 )
texture_hover = ExtResource( 10 )
expand = true
stretch_mode = 5
[node name="CheckButton" type="CheckButton" parent="Margin/Structure"]
margin_left = 232.0
margin_right = 308.0
margin_bottom = 48.0
size_flags_stretch_ratio = 0.5
custom_fonts/font = SubResource( 4 )
custom_icons/off = ExtResource( 8 )
custom_icons/on = ExtResource( 11 )
align = 1
expand_icon = true
[connection signal="toggled" from="Margin/Structure/CheckButton" to="." method="_on_CheckButton_toggled"]