Skip to content

Commit

Permalink
Use placeholder texture for quick buttons in add node popup
Browse files Browse the repository at this point in the history
  • Loading branch information
RodZill4 committed Nov 1, 2024
1 parent d271a57 commit 1590396
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
29 changes: 18 additions & 11 deletions material_maker/windows/add_node_popup/add_node_popup.tscn
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
[gd_scene load_steps=15 format=3 uid="uid://clw8sb0p8webl"]
[gd_scene load_steps=18 format=3 uid="uid://clw8sb0p8webl"]

[ext_resource type="Script" path="res://material_maker/windows/add_node_popup/add_node_popup.gd" id="1"]
[ext_resource type="PackedScene" uid="uid://cjcxjmoki7j0n" path="res://material_maker/windows/add_node_popup/quick_button.tscn" id="2"]
[ext_resource type="Texture2D" uid="uid://d2aeyi0d5c0rw" path="res://splash_screen/rodz_labs_logo.png" id="3"]

[sub_resource type="Shader" id="11"]
code = "shader_type canvas_item;
Expand All @@ -19,47 +18,55 @@ void fragment() {
COLOR = vec4(vec3(1.0), brightness)*color;
}"

[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_buqpn"]

[sub_resource type="ShaderMaterial" id="ShaderMaterial_88qrb"]
resource_local_to_scene = true
shader = SubResource("11")
shader_parameter/disabled = false
shader_parameter/brightness = 0.8
shader_parameter/tex = ExtResource("3")
shader_parameter/tex = SubResource("PlaceholderTexture2D_buqpn")

[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_jt68i"]

[sub_resource type="ShaderMaterial" id="ShaderMaterial_wwply"]
resource_local_to_scene = true
shader = SubResource("11")
shader_parameter/disabled = false
shader_parameter/brightness = 0.8
shader_parameter/tex = ExtResource("3")
shader_parameter/tex = SubResource("PlaceholderTexture2D_jt68i")

[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_nfnnr"]

[sub_resource type="ShaderMaterial" id="ShaderMaterial_h5yl4"]
resource_local_to_scene = true
shader = SubResource("11")
shader_parameter/disabled = false
shader_parameter/brightness = 0.8
shader_parameter/tex = ExtResource("3")
shader_parameter/tex = SubResource("PlaceholderTexture2D_nfnnr")

[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_gqmjk"]

[sub_resource type="ShaderMaterial" id="ShaderMaterial_xysbp"]
resource_local_to_scene = true
shader = SubResource("11")
shader_parameter/disabled = false
shader_parameter/brightness = 0.8
shader_parameter/tex = ExtResource("3")
shader_parameter/tex = SubResource("PlaceholderTexture2D_gqmjk")

[sub_resource type="ShaderMaterial" id="ShaderMaterial_2fcwt"]
resource_local_to_scene = true
shader = SubResource("11")
shader_parameter/disabled = false
shader_parameter/brightness = 0.8
shader_parameter/tex = ExtResource("3")
shader_parameter/tex = SubResource("PlaceholderTexture2D_buqpn")

[sub_resource type="ShaderMaterial" id="ShaderMaterial_l7flh"]
resource_local_to_scene = true
shader = SubResource("11")
shader_parameter/disabled = false
shader_parameter/brightness = 0.8
shader_parameter/tex = ExtResource("3")
shader_parameter/tex = SubResource("PlaceholderTexture2D_buqpn")

[sub_resource type="Shader" id="19"]
code = "shader_type canvas_item;
Expand All @@ -81,21 +88,21 @@ resource_local_to_scene = true
shader = SubResource("19")
shader_parameter/disabled = false
shader_parameter/brightness = 0.8
shader_parameter/tex = ExtResource("3")
shader_parameter/tex = SubResource("PlaceholderTexture2D_buqpn")

[sub_resource type="ShaderMaterial" id="ShaderMaterial_irmk8"]
resource_local_to_scene = true
shader = SubResource("11")
shader_parameter/disabled = false
shader_parameter/brightness = 0.8
shader_parameter/tex = ExtResource("3")
shader_parameter/tex = SubResource("PlaceholderTexture2D_buqpn")

[sub_resource type="ShaderMaterial" id="ShaderMaterial_nyf2o"]
resource_local_to_scene = true
shader = SubResource("11")
shader_parameter/disabled = false
shader_parameter/brightness = 0.8
shader_parameter/tex = ExtResource("3")
shader_parameter/tex = SubResource("PlaceholderTexture2D_buqpn")

[node name="AddNodePopup" type="Popup"]
transparent_bg = true
Expand Down
5 changes: 3 additions & 2 deletions material_maker/windows/add_node_popup/quick_button.tscn
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[gd_scene load_steps=5 format=3 uid="uid://cjcxjmoki7j0n"]

[ext_resource type="Script" path="res://material_maker/windows/add_node_popup/quick_button.gd" id="1"]
[ext_resource type="Texture2D" uid="uid://d2aeyi0d5c0rw" path="res://splash_screen/rodz_labs_logo.png" id="2"]

[sub_resource type="Shader" id="11"]
code = "shader_type canvas_item;
Expand All @@ -18,12 +17,14 @@ void fragment() {
COLOR = vec4(vec3(1.0), brightness)*color;
}"

[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_4pf3v"]

[sub_resource type="ShaderMaterial" id="12"]
resource_local_to_scene = true
shader = SubResource("11")
shader_parameter/disabled = false
shader_parameter/brightness = 0.8
shader_parameter/tex = ExtResource("2")
shader_parameter/tex = SubResource("PlaceholderTexture2D_4pf3v")

[node name="QuickButton" type="ColorRect"]
material = SubResource("12")
Expand Down

0 comments on commit 1590396

Please sign in to comment.