2020-11-25 20:42:45 +01:00
|
|
|
[gd_scene load_steps=7 format=2]
|
2020-11-11 21:34:12 +01:00
|
|
|
|
2021-02-14 09:58:59 +01:00
|
|
|
[ext_resource path="res://material_maker/tools/share/broken_link.tres" type="Texture" id=1]
|
2020-11-11 21:34:12 +01:00
|
|
|
[ext_resource path="res://material_maker/tools/share/share_button.gd" type="Script" id=2]
|
|
|
|
[ext_resource path="res://material_maker/tools/share/preview_viewport.tscn" type="PackedScene" id=3]
|
2021-02-14 09:58:59 +01:00
|
|
|
[ext_resource path="res://material_maker/icons/icons.tres" type="Texture" id=4]
|
2020-11-11 21:34:12 +01:00
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id=1]
|
2021-02-14 09:58:59 +01:00
|
|
|
flags = 7
|
|
|
|
atlas = ExtResource( 4 )
|
|
|
|
region = Rect2( 224, 0, 32, 16 )
|
2020-11-11 21:34:12 +01:00
|
|
|
|
2020-11-21 14:55:21 +01:00
|
|
|
[sub_resource type="AtlasTexture" id=2]
|
2021-02-14 09:58:59 +01:00
|
|
|
flags = 7
|
|
|
|
atlas = ExtResource( 4 )
|
|
|
|
region = Rect2( 224, 16, 32, 16 )
|
2020-11-25 20:42:45 +01:00
|
|
|
|
2020-11-11 21:34:12 +01:00
|
|
|
[node name="Share" type="HBoxContainer"]
|
|
|
|
margin_right = 40.0
|
|
|
|
margin_bottom = 40.0
|
2020-11-21 14:55:21 +01:00
|
|
|
hint_tooltip = "Open Material Maker web site"
|
2020-11-11 21:34:12 +01:00
|
|
|
script = ExtResource( 2 )
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="ConnectButton" type="TextureButton" parent="."]
|
|
|
|
margin_top = 12.0
|
|
|
|
margin_right = 32.0
|
|
|
|
margin_bottom = 28.0
|
|
|
|
hint_tooltip = "Connect to web site"
|
|
|
|
size_flags_vertical = 4
|
2021-02-14 09:58:59 +01:00
|
|
|
texture_normal = ExtResource( 1 )
|
2020-11-11 21:34:12 +01:00
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
2020-11-21 14:55:21 +01:00
|
|
|
[node name="SendButton" type="TextureButton" parent="."]
|
|
|
|
margin_left = 36.0
|
|
|
|
margin_top = 12.0
|
|
|
|
margin_right = 68.0
|
|
|
|
margin_bottom = 28.0
|
|
|
|
hint_tooltip = "Send material to web site"
|
|
|
|
size_flags_vertical = 4
|
2020-11-25 20:42:45 +01:00
|
|
|
disabled = true
|
2021-02-14 09:58:59 +01:00
|
|
|
texture_normal = SubResource( 1 )
|
|
|
|
texture_disabled = SubResource( 2 )
|
2020-11-21 14:55:21 +01:00
|
|
|
__meta__ = {
|
2020-11-25 20:42:45 +01:00
|
|
|
"_edit_use_anchors_": false,
|
|
|
|
"_editor_description_": "Send current material to web page"
|
2020-11-21 14:55:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
[node name="Space" type="Control" parent="."]
|
2020-11-25 20:42:45 +01:00
|
|
|
margin_left = 72.0
|
|
|
|
margin_right = 87.0
|
2020-11-21 14:55:21 +01:00
|
|
|
margin_bottom = 40.0
|
|
|
|
rect_min_size = Vector2( 15, 0 )
|
|
|
|
|
2020-11-11 21:34:12 +01:00
|
|
|
[node name="PreviewViewport" parent="." instance=ExtResource( 3 )]
|
|
|
|
[connection signal="pressed" from="ConnectButton" to="." method="_on_ConnectButton_pressed"]
|
2020-11-21 14:55:21 +01:00
|
|
|
[connection signal="pressed" from="SendButton" to="." method="_on_SendButton_pressed"]
|