Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions material_maker/panels/library/library.gd
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ func _notification(what: int) -> void:
if what == NOTIFICATION_THEME_CHANGED:
if not is_node_ready():
await ready
%Download.texture = get_theme_icon("download", "MM_Icons")
for s in library_manager.get_sections():
var button : Button = category_buttons[s]
button.icon = get_theme_icon("section_" + s.to_lower(), "MM_Icons")
Expand Down
34 changes: 32 additions & 2 deletions material_maker/panels/library/library.tscn
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
[gd_scene load_steps=5 format=3 uid="uid://drbpisn5f3h8y"]
[gd_scene load_steps=7 format=3 uid="uid://drbpisn5f3h8y"]

[ext_resource type="Script" uid="uid://byotadn432paf" path="res://material_maker/panels/library/library_tree.gd" id="1"]
[ext_resource type="Script" uid="uid://cg0s65b0doku6" path="res://material_maker/panels/library/library.gd" id="1_748nq"]
[ext_resource type="Texture2D" uid="uid://c0j4px4n72di5" path="res://material_maker/icons/icons.tres" id="3"]
[ext_resource type="Texture2D" uid="uid://1s0c37uoj4rf" path="res://material_maker/theme/default_theme_icons.svg" id="5_55s42"]

[sub_resource type="AtlasTexture" id="1"]
atlas = ExtResource("3")
region = Rect2(0, 0, 16, 16)

[sub_resource type="AtlasTexture" id="AtlasTexture_xdn16"]
atlas = ExtResource("5_55s42")
region = Rect2(0, 64, 15, 16)

[node name="Library" type="PanelContainer"]
offset_right = 323.0
offset_bottom = 391.0
Expand Down Expand Up @@ -66,12 +71,37 @@ auto_tooltip = false
script = ExtResource("1")

[node name="GetFromWebsite" type="Button" parent="Library"]
custom_minimum_size = Vector2(0, 24)
layout_mode = 2
size_flags_vertical = 4
tooltip_text = "Get more nodes from website"
text = "Browse Community Nodes"
clip_text = true

[node name="HBoxContainer" type="HBoxContainer" parent="Library/GetFromWebsite"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -113.0
offset_top = -11.5
offset_right = 113.0
offset_bottom = 11.5
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/separation = 1

[node name="Download" type="TextureRect" parent="Library/GetFromWebsite/HBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
texture = SubResource("AtlasTexture_xdn16")
expand_mode = 2

[node name="Label" type="Label" parent="Library/GetFromWebsite/HBoxContainer"]
layout_mode = 2
text = "Browse Community Nodes"

[node name="ItemMenu" type="PopupMenu" parent="."]
unique_name_in_owner = true
item_count = 6
Expand Down
6 changes: 6 additions & 0 deletions material_maker/theme/classic_base.tres
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,11 @@ region = Rect2(64, 160, 16, 16)
atlas = ExtResource("1_fw8f4")
region = Rect2(32, 16, 16, 16)

[sub_resource type="AtlasTexture" id="AtlasTexture_wbe58"]
atlas = ExtResource("1_fw8f4")
region = Rect2(0, 64, 16, 16)
metadata/scale = 2.0

[sub_resource type="AtlasTexture" id="AtlasTexture_oy0ko"]
atlas = ExtResource("1_fw8f4")
region = Rect2(64, 0, 16, 16)
Expand Down Expand Up @@ -1107,6 +1112,7 @@ MM_Icons/icons/arrow_right = SubResource("AtlasTexture_r3xak")
MM_Icons/icons/arrow_updown = SubResource("AtlasTexture_dnklm")
MM_Icons/icons/color_picker = SubResource("AtlasTexture_7ns35")
MM_Icons/icons/delete = SubResource("AtlasTexture_agwde")
MM_Icons/icons/download = SubResource("AtlasTexture_wbe58")
MM_Icons/icons/draw = SubResource("AtlasTexture_oy0ko")
MM_Icons/icons/dropdown = SubResource("AtlasTexture_2gawd")
MM_Icons/icons/environment = SubResource("AtlasTexture_x8swe")
Expand Down
6 changes: 6 additions & 0 deletions material_maker/theme/default.tres
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,11 @@ region = Rect2(64, 192, 16, 16)
atlas = ExtResource("1_s43fy")
region = Rect2(32, 16, 16, 16)

[sub_resource type="AtlasTexture" id="AtlasTexture_0jwmg"]
atlas = ExtResource("1_s43fy")
region = Rect2(0, 64, 16, 16)
metadata/scale = 2.0

[sub_resource type="AtlasTexture" id="AtlasTexture_oy0ko"]
atlas = ExtResource("1_s43fy")
region = Rect2(64, 0, 16, 16)
Expand Down Expand Up @@ -1337,6 +1342,7 @@ MM_Icons/icons/connection_direct = SubResource("AtlasTexture_pfiqs")
MM_Icons/icons/connection_manhattan = SubResource("AtlasTexture_pfsii")
MM_Icons/icons/connection_rounded = SubResource("AtlasTexture_1lfk8")
MM_Icons/icons/delete = SubResource("AtlasTexture_agwde")
MM_Icons/icons/download = SubResource("AtlasTexture_0jwmg")
MM_Icons/icons/draw = SubResource("AtlasTexture_oy0ko")
MM_Icons/icons/dropdown = SubResource("AtlasTexture_2gawd")
MM_Icons/icons/environment = SubResource("AtlasTexture_x8swe")
Expand Down