diff --git a/game/addons/mat_maker_gd/icons/custom.png b/game/addons/mat_maker_gd/icons/custom.png new file mode 100644 index 00000000..45a7a181 Binary files /dev/null and b/game/addons/mat_maker_gd/icons/custom.png differ diff --git a/game/addons/mat_maker_gd/icons/custom.png.import b/game/addons/mat_maker_gd/icons/custom.png.import new file mode 100644 index 00000000..59e23666 --- /dev/null +++ b/game/addons/mat_maker_gd/icons/custom.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/custom.png-b026bd10e22818d25d499d2eddb137a8.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://addons/mat_maker_gd/icons/custom.png" +dest_files=[ "res://.import/custom.png-b026bd10e22818d25d499d2eddb137a8.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/game/addons/mat_maker_gd/icons/down.tres b/game/addons/mat_maker_gd/icons/down.tres new file mode 100644 index 00000000..aca6f4c9 --- /dev/null +++ b/game/addons/mat_maker_gd/icons/down.tres @@ -0,0 +1,8 @@ +[gd_resource type="AtlasTexture" load_steps=2 format=2] + +[ext_resource path="res://addons/mat_maker_gd/icons/icons.tres" type="Texture" id=1] + +[resource] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 32, 48, 16, 16 ) diff --git a/game/addons/mat_maker_gd/icons/edit.tres b/game/addons/mat_maker_gd/icons/edit.tres new file mode 100644 index 00000000..aa39c292 --- /dev/null +++ b/game/addons/mat_maker_gd/icons/edit.tres @@ -0,0 +1,8 @@ +[gd_resource type="AtlasTexture" load_steps=2 format=2] + +[ext_resource path="res://addons/mat_maker_gd/icons/icons.tres" type="Texture" id=1] + +[resource] +flags = 7 +atlas = ExtResource( 1 ) +region = Rect2( 16, 16, 16, 16 ) diff --git a/game/addons/mat_maker_gd/icons/godot_logo.svg b/game/addons/mat_maker_gd/icons/godot_logo.svg new file mode 100644 index 00000000..d7aef39c --- /dev/null +++ b/game/addons/mat_maker_gd/icons/godot_logo.svg @@ -0,0 +1 @@ + diff --git a/game/addons/mat_maker_gd/icons/godot_logo.svg.import b/game/addons/mat_maker_gd/icons/godot_logo.svg.import new file mode 100644 index 00000000..e96628e3 --- /dev/null +++ b/game/addons/mat_maker_gd/icons/godot_logo.svg.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/godot_logo.svg-4e4bf625f601f4dc5d1d367a2f781011.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://addons/mat_maker_gd/icons/godot_logo.svg" +dest_files=[ "res://.import/godot_logo.svg-4e4bf625f601f4dc5d1d367a2f781011.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/game/addons/mat_maker_gd/icons/icons.svg b/game/addons/mat_maker_gd/icons/icons.svg new file mode 100644 index 00000000..cc85b87d --- /dev/null +++ b/game/addons/mat_maker_gd/icons/icons.svg @@ -0,0 +1,3522 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/game/addons/mat_maker_gd/icons/icons.svg.import b/game/addons/mat_maker_gd/icons/icons.svg.import new file mode 100644 index 00000000..733f8049 --- /dev/null +++ b/game/addons/mat_maker_gd/icons/icons.svg.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/icons.svg-bac181e82e23c7264cdf6c36903654b9.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://addons/mat_maker_gd/icons/icons.svg" +dest_files=[ "res://.import/icons.svg-bac181e82e23c7264cdf6c36903654b9.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/game/addons/mat_maker_gd/icons/icons.tres b/game/addons/mat_maker_gd/icons/icons.tres new file mode 100644 index 00000000..4b2b20fc --- /dev/null +++ b/game/addons/mat_maker_gd/icons/icons.tres @@ -0,0 +1,15 @@ +[gd_resource type="ProxyTexture" load_steps=2 format=2] + +[sub_resource type="GDScript" id=1] +script/source = "tool +extends ProxyTexture + +func _init(): + if Directory.new().file_exists(\"res://addons/mat_maker_gd/icons/icons.svg\"): + var t : ImageTexture = ImageTexture.new() + t.load(\"res://addons/mat_maker_gd/icons/icons.svg\") + base = t +" + +[resource] +script = SubResource( 1 ) diff --git a/game/addons/mat_maker_gd/icons/link.tres b/game/addons/mat_maker_gd/icons/link.tres new file mode 100644 index 00000000..0e951090 --- /dev/null +++ b/game/addons/mat_maker_gd/icons/link.tres @@ -0,0 +1,8 @@ +[gd_resource type="AtlasTexture" load_steps=2 format=2] + +[ext_resource path="res://addons/mat_maker_gd/icons/icons.tres" type="Texture" id=1] + +[resource] +flags = 7 +atlas = ExtResource( 1 ) +region = Rect2( 16, 0, 16, 15 ) diff --git a/game/addons/mat_maker_gd/icons/minimize.tres b/game/addons/mat_maker_gd/icons/minimize.tres new file mode 100644 index 00000000..7d367b4d --- /dev/null +++ b/game/addons/mat_maker_gd/icons/minimize.tres @@ -0,0 +1,8 @@ +[gd_resource type="AtlasTexture" load_steps=2 format=2] + +[ext_resource path="res://addons/mat_maker_gd/icons/icons.tres" type="Texture" id=1] + +[resource] +flags = 7 +atlas = ExtResource( 1 ) +region = Rect2( 48, 96, 16, 16 ) diff --git a/game/addons/mat_maker_gd/icons/output_preview.tres b/game/addons/mat_maker_gd/icons/output_preview.tres new file mode 100644 index 00000000..c84be544 --- /dev/null +++ b/game/addons/mat_maker_gd/icons/output_preview.tres @@ -0,0 +1,8 @@ +[gd_resource type="AtlasTexture" load_steps=2 format=2] + +[ext_resource path="res://addons/mat_maker_gd/icons/icons.tres" type="Texture" id=1] + +[resource] +flags = 7 +atlas = ExtResource( 1 ) +region = Rect2( 0, 80, 16, 16 ) diff --git a/game/addons/mat_maker_gd/icons/port_group_0.tres b/game/addons/mat_maker_gd/icons/port_group_0.tres new file mode 100644 index 00000000..ae29b24c --- /dev/null +++ b/game/addons/mat_maker_gd/icons/port_group_0.tres @@ -0,0 +1,8 @@ +[gd_resource type="AtlasTexture" load_steps=2 format=2] + +[ext_resource path="res://addons/mat_maker_gd/icons/icons.tres" type="Texture" id=1] + +[resource] +flags = 7 +atlas = ExtResource( 1 ) +region = Rect2( 32, 64, 16, 16 ) diff --git a/game/addons/mat_maker_gd/icons/port_group_1.tres b/game/addons/mat_maker_gd/icons/port_group_1.tres new file mode 100644 index 00000000..56412cca --- /dev/null +++ b/game/addons/mat_maker_gd/icons/port_group_1.tres @@ -0,0 +1,8 @@ +[gd_resource type="AtlasTexture" load_steps=2 format=2] + +[ext_resource path="res://addons/mat_maker_gd/icons/icons.tres" type="Texture" id=1] + +[resource] +flags = 7 +atlas = ExtResource( 1 ) +region = Rect2( 32, 80, 16, 16 ) diff --git a/game/addons/mat_maker_gd/icons/port_group_2.tres b/game/addons/mat_maker_gd/icons/port_group_2.tres new file mode 100644 index 00000000..dd080181 --- /dev/null +++ b/game/addons/mat_maker_gd/icons/port_group_2.tres @@ -0,0 +1,8 @@ +[gd_resource type="AtlasTexture" load_steps=2 format=2] + +[ext_resource path="res://addons/mat_maker_gd/icons/icons.tres" type="Texture" id=1] + +[resource] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 32, 96, 16, 16 ) diff --git a/game/addons/mat_maker_gd/icons/port_group_3.tres b/game/addons/mat_maker_gd/icons/port_group_3.tres new file mode 100644 index 00000000..29430014 --- /dev/null +++ b/game/addons/mat_maker_gd/icons/port_group_3.tres @@ -0,0 +1,8 @@ +[gd_resource type="AtlasTexture" load_steps=2 format=2] + +[ext_resource path="res://addons/mat_maker_gd/icons/icons.tres" type="Texture" id=1] + +[resource] +flags = 7 +atlas = ExtResource( 1 ) +region = Rect2( 32, 112, 16, 16 ) diff --git a/game/addons/mat_maker_gd/icons/randomness_locked.tres b/game/addons/mat_maker_gd/icons/randomness_locked.tres new file mode 100644 index 00000000..48fcc127 --- /dev/null +++ b/game/addons/mat_maker_gd/icons/randomness_locked.tres @@ -0,0 +1,8 @@ +[gd_resource type="AtlasTexture" load_steps=2 format=2] + +[ext_resource path="res://addons/mat_maker_gd/icons/icons.tres" type="Texture" id=1] + +[resource] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 80, 32, 16, 16 ) diff --git a/game/addons/mat_maker_gd/icons/randomness_unlocked.tres b/game/addons/mat_maker_gd/icons/randomness_unlocked.tres new file mode 100644 index 00000000..9ec871f5 --- /dev/null +++ b/game/addons/mat_maker_gd/icons/randomness_unlocked.tres @@ -0,0 +1,8 @@ +[gd_resource type="AtlasTexture" load_steps=2 format=2] + +[ext_resource path="res://addons/mat_maker_gd/icons/icons.tres" type="Texture" id=1] + +[resource] +flags = 7 +atlas = ExtResource( 1 ) +region = Rect2( 64, 32, 16, 16 ) diff --git a/game/addons/mat_maker_gd/icons/remove.tres b/game/addons/mat_maker_gd/icons/remove.tres new file mode 100644 index 00000000..b1f1c2f8 --- /dev/null +++ b/game/addons/mat_maker_gd/icons/remove.tres @@ -0,0 +1,8 @@ +[gd_resource type="AtlasTexture" load_steps=2 format=2] + +[ext_resource path="res://addons/mat_maker_gd/icons/icons.tres" type="Texture" id=1] + +[resource] +flags = 7 +atlas = ExtResource( 1 ) +region = Rect2( 32, 0, 16, 16 ) diff --git a/game/addons/mat_maker_gd/icons/up.tres b/game/addons/mat_maker_gd/icons/up.tres new file mode 100644 index 00000000..ab48648f --- /dev/null +++ b/game/addons/mat_maker_gd/icons/up.tres @@ -0,0 +1,8 @@ +[gd_resource type="AtlasTexture" load_steps=2 format=2] + +[ext_resource path="res://addons/mat_maker_gd/icons/icons.tres" type="Texture" id=1] + +[resource] +flags = 4 +atlas = ExtResource( 1 ) +region = Rect2( 16, 48, 16, 16 ) diff --git a/game/addons/mat_maker_gd/widgets/color_picker_popup/color_picker_popup.tscn b/game/addons/mat_maker_gd/widgets/color_picker_popup/color_picker_popup.tscn index c30b2da8..c4003f3d 100644 --- a/game/addons/mat_maker_gd/widgets/color_picker_popup/color_picker_popup.tscn +++ b/game/addons/mat_maker_gd/widgets/color_picker_popup/color_picker_popup.tscn @@ -2,7 +2,7 @@ [node name="ColorPickerPopup" type="PopupPanel"] margin_right = 316.0 -margin_bottom = 466.0 +margin_bottom = 470.0 [node name="ColorPicker" type="ColorPicker" parent="."] margin_left = 4.0 diff --git a/game/addons/mat_maker_gd/widgets/float_edit/float_edit.tscn b/game/addons/mat_maker_gd/widgets/float_edit/float_edit.tscn index 33484cbb..4b2a2c58 100644 --- a/game/addons/mat_maker_gd/widgets/float_edit/float_edit.tscn +++ b/game/addons/mat_maker_gd/widgets/float_edit/float_edit.tscn @@ -1,6 +1,6 @@ [gd_scene load_steps=2 format=2] -[ext_resource path="res://material_maker/widgets/float_edit/float_edit.gd" type="Script" id=1] +[ext_resource path="res://addons/mat_maker_gd/widgets/float_edit/float_edit.gd" type="Script" id=1] [node name="FloatEdit" type="LineEdit"] anchor_left = 1.0 diff --git a/game/addons/mat_maker_gd/widgets/gradient_editor/gradient_editor.tscn b/game/addons/mat_maker_gd/widgets/gradient_editor/gradient_editor.tscn index 18e3ad5b..36cf818e 100644 --- a/game/addons/mat_maker_gd/widgets/gradient_editor/gradient_editor.tscn +++ b/game/addons/mat_maker_gd/widgets/gradient_editor/gradient_editor.tscn @@ -1,7 +1,7 @@ [gd_scene load_steps=12 format=2] -[ext_resource path="res://material_maker/widgets/gradient_editor/gradient_editor.gd" type="Script" id=1] -[ext_resource path="res://material_maker/icons/icons.tres" type="Texture" id=2] +[ext_resource path="res://addons/mat_maker_gd/widgets/gradient_editor/gradient_editor.gd" type="Script" id=1] +[ext_resource path="res://addons/mat_maker_gd/icons/icons.tres" type="Texture" id=2] [sub_resource type="Shader" id=1] code = "shader_type canvas_item; @@ -31,22 +31,18 @@ shader = SubResource( 3 ) [sub_resource type="Theme" id=5] [sub_resource type="AtlasTexture" id=6] -flags = 4 atlas = ExtResource( 2 ) region = Rect2( 96, 0, 32, 16 ) [sub_resource type="AtlasTexture" id=7] -flags = 4 atlas = ExtResource( 2 ) region = Rect2( 64, 0, 32, 16 ) [sub_resource type="AtlasTexture" id=8] -flags = 4 atlas = ExtResource( 2 ) region = Rect2( 64, 16, 32, 16 ) [sub_resource type="AtlasTexture" id=9] -flags = 4 atlas = ExtResource( 2 ) region = Rect2( 96, 16, 32, 16 ) @@ -102,4 +98,5 @@ align = 1 __meta__ = { "_edit_use_anchors_": false } + [connection signal="item_selected" from="Interpolation" to="." method="_on_Interpolation_item_selected"] diff --git a/game/addons/mat_maker_gd/widgets/gradient_editor/gradient_popup.tscn b/game/addons/mat_maker_gd/widgets/gradient_editor/gradient_popup.tscn index 9b381559..66062bf2 100644 --- a/game/addons/mat_maker_gd/widgets/gradient_editor/gradient_popup.tscn +++ b/game/addons/mat_maker_gd/widgets/gradient_editor/gradient_popup.tscn @@ -1,7 +1,7 @@ [gd_scene load_steps=4 format=2] -[ext_resource path="res://material_maker/widgets/gradient_editor/gradient_popup.gd" type="Script" id=1] -[ext_resource path="res://material_maker/widgets/gradient_editor/gradient_editor.tscn" type="PackedScene" id=2] +[ext_resource path="res://addons/mat_maker_gd/widgets/gradient_editor/gradient_popup.gd" type="Script" id=1] +[ext_resource path="res://addons/mat_maker_gd/widgets/gradient_editor/gradient_editor.tscn" type="PackedScene" id=2] [sub_resource type="StyleBoxFlat" id=1]