Skip to content

Commit 95b71e0

Browse files
committed
Credit Godot-BlurHash
1 parent 87c53a7 commit 95b71e0

File tree

5 files changed

+113
-2
lines changed

5 files changed

+113
-2
lines changed
10.7 KB
Loading
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="CompressedTexture2D"
5+
uid="uid://c8hlfcx5lgjmv"
6+
path="res://.godot/imported/godot-blurhash.png-f156d559d1e870774b6e089b0ce96e67.ctex"
7+
metadata={
8+
"vram_texture": false
9+
}
10+
11+
[deps]
12+
13+
source_file="res://assets/copyright/godot-blurhash.png"
14+
dest_files=["res://.godot/imported/godot-blurhash.png-f156d559d1e870774b6e089b0ce96e67.ctex"]
15+
16+
[params]
17+
18+
compress/mode=0
19+
compress/high_quality=false
20+
compress/lossy_quality=0.7
21+
compress/hdr_compression=1
22+
compress/normal_map=0
23+
compress/channel_pack=0
24+
mipmaps/generate=false
25+
mipmaps/limit=-1
26+
roughness/mode=0
27+
roughness/src_normal=""
28+
process/fix_alpha_border=true
29+
process/premult_alpha=false
30+
process/normal_map_invert_y=false
31+
process/hdr_as_srgb=false
32+
process/hdr_clamp_exposure=false
33+
process/size_limit=0
34+
detect_3d/compress_to=1
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Ricardo Subtil
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

scenes/config/AboutSettings.tscn

Lines changed: 55 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[gd_scene load_steps=22 format=3 uid="uid://bk84lkodndnjq"]
1+
[gd_scene load_steps=23 format=3 uid="uid://bk84lkodndnjq"]
22

33
[ext_resource type="Texture2D" uid="uid://bstmt1kr6ub1d" path="res://assets/icons/app/retrohub_logo_1024px_draft.png" id="1"]
44
[ext_resource type="FontFile" path="res://resources/fonts/default_big.tres" id="2"]
@@ -14,6 +14,7 @@
1414
[ext_resource type="Texture2D" uid="uid://bu0ju7swsiiy7" path="res://assets/icons/scrapers/screenscraper.png" id="12"]
1515
[ext_resource type="Script" path="res://source/utils/TabContainerHandler.gd" id="13"]
1616
[ext_resource type="Script" path="res://addons/controller_icons/objects/TextureRect.gd" id="14"]
17+
[ext_resource type="Texture2D" uid="uid://c8hlfcx5lgjmv" path="res://assets/copyright/godot-blurhash.png" id="14_6ym5y"]
1718
[ext_resource type="Theme" uid="uid://jtuqhw3am1h3" path="res://resources/default_theme.tres" id="15"]
1819
[ext_resource type="Texture2D" uid="uid://dim5mk7g4q043" path="res://addons/controller_icons/assets/key/q.png" id="16_d1rm0"]
1920
[ext_resource type="Script" path="res://scenes/ui_nodes/AccessibilityFocus.gd" id="18"]
@@ -54,6 +55,7 @@ size_flags_vertical = 3
5455
theme = ExtResource("15")
5556

5657
[node name="About" type="ScrollContainer" parent="TabContainerHandler/TabContainer"]
58+
visible = false
5759
layout_mode = 2
5860
size_flags_horizontal = 3
5961
size_flags_vertical = 3
@@ -456,12 +458,61 @@ script = ExtResource("18")
456458
[node name="HSeparator" type="HSeparator" parent="TabContainerHandler/TabContainer/Libraries/VBoxContainer/godot-accessibility"]
457459
layout_mode = 2
458460

461+
[node name="godot-blurhash" type="VBoxContainer" parent="TabContainerHandler/TabContainer/Libraries/VBoxContainer"]
462+
layout_mode = 2
463+
464+
[node name="HBoxContainer" type="HBoxContainer" parent="TabContainerHandler/TabContainer/Libraries/VBoxContainer/godot-blurhash"]
465+
layout_mode = 2
466+
467+
[node name="TextureRect" type="TextureRect" parent="TabContainerHandler/TabContainer/Libraries/VBoxContainer/godot-blurhash/HBoxContainer"]
468+
custom_minimum_size = Vector2(76, 76)
469+
layout_mode = 2
470+
size_flags_vertical = 3
471+
texture = ExtResource("14_6ym5y")
472+
expand_mode = 1
473+
stretch_mode = 4
474+
script = ExtResource("10")
475+
476+
[node name="VBoxContainer" type="VBoxContainer" parent="TabContainerHandler/TabContainer/Libraries/VBoxContainer/godot-blurhash/HBoxContainer"]
477+
layout_mode = 2
478+
size_flags_horizontal = 3
479+
480+
[node name="Label" type="Label" parent="TabContainerHandler/TabContainer/Libraries/VBoxContainer/godot-blurhash/HBoxContainer/VBoxContainer"]
481+
layout_mode = 2
482+
theme_override_fonts/font = ExtResource("5")
483+
text = "Godot-BlurHash"
484+
label_settings = SubResource("LabelSettings_r5ag3")
485+
486+
[node name="AccessibilityFocus" type="Node" parent="TabContainerHandler/TabContainer/Libraries/VBoxContainer/godot-blurhash/HBoxContainer/VBoxContainer/Label"]
487+
script = ExtResource("18")
488+
489+
[node name="RichTextLabel" type="RichTextLabel" parent="TabContainerHandler/TabContainer/Libraries/VBoxContainer/godot-blurhash/HBoxContainer/VBoxContainer"]
490+
layout_mode = 2
491+
bbcode_enabled = true
492+
text = "Website: [url=https://github.com/rsubtil/godot-blurhash]https://github.com/rsubtil/godot-blurhash[/url]
493+
License: [url=mit_godot-blurhash]MIT[/url]"
494+
fit_content = true
495+
496+
[node name="AccessibilityFocus" type="Node" parent="TabContainerHandler/TabContainer/Libraries/VBoxContainer/godot-blurhash/HBoxContainer/VBoxContainer/RichTextLabel"]
497+
script = ExtResource("18")
498+
499+
[node name="RichTextLabel" type="RichTextLabel" parent="TabContainerHandler/TabContainer/Libraries/VBoxContainer/godot-blurhash"]
500+
layout_mode = 2
501+
bbcode_enabled = true
502+
text = "Addon to generate blurry versions of textures for quick previews. Algorithm developed by [url=https://blurha.sh/]Wolt[/url]"
503+
fit_content = true
504+
505+
[node name="AccessibilityFocus" type="Node" parent="TabContainerHandler/TabContainer/Libraries/VBoxContainer/godot-blurhash/RichTextLabel"]
506+
script = ExtResource("18")
507+
508+
[node name="HSeparator" type="HSeparator" parent="TabContainerHandler/TabContainer/Libraries/VBoxContainer/godot-blurhash"]
509+
layout_mode = 2
510+
459511
[node name="ScrollHandler" type="Control" parent="TabContainerHandler/TabContainer/Libraries"]
460512
layout_mode = 2
461513
script = ExtResource("9")
462514

463515
[node name="Assets" type="ScrollContainer" parent="TabContainerHandler/TabContainer"]
464-
visible = false
465516
layout_mode = 2
466517

467518
[node name="VBoxContainer" type="VBoxContainer" parent="TabContainerHandler/TabContainer/Assets"]
@@ -663,6 +714,8 @@ max_width = 30
663714
[connection signal="meta_clicked" from="TabContainerHandler/TabContainer/Libraries/VBoxContainer/OnScreenKeyboard/HBoxContainer/VBoxContainer/RichTextLabel" to="." method="_on_RichTextLabel_meta_clicked"]
664715
[connection signal="meta_clicked" from="TabContainerHandler/TabContainer/Libraries/VBoxContainer/godot-accessibility/HBoxContainer/VBoxContainer/RichTextLabel" to="." method="_on_RichTextLabel_meta_clicked"]
665716
[connection signal="meta_clicked" from="TabContainerHandler/TabContainer/Libraries/VBoxContainer/godot-accessibility/RichTextLabel" to="." method="_on_RichTextLabel_meta_clicked"]
717+
[connection signal="meta_clicked" from="TabContainerHandler/TabContainer/Libraries/VBoxContainer/godot-blurhash/HBoxContainer/VBoxContainer/RichTextLabel" to="." method="_on_RichTextLabel_meta_clicked"]
718+
[connection signal="meta_clicked" from="TabContainerHandler/TabContainer/Libraries/VBoxContainer/godot-blurhash/RichTextLabel" to="." method="_on_RichTextLabel_meta_clicked"]
666719
[connection signal="meta_clicked" from="TabContainerHandler/TabContainer/Assets/VBoxContainer/Godot/HBoxContainer/VBoxContainer/RichTextLabel" to="." method="_on_RichTextLabel_meta_clicked"]
667720
[connection signal="meta_clicked" from="TabContainerHandler/TabContainer/Assets/VBoxContainer/ScreenScraper/HBoxContainer/VBoxContainer/RichTextLabel" to="." method="_on_RichTextLabel_meta_clicked"]
668721
[connection signal="item_activated" from="TabContainerHandler/TabContainer/Licenses/HBoxContainer/Names" to="TabContainerHandler/TabContainer/Licenses" method="_on_Names_item_activated"]

scenes/config/Licenses.gd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ func _ready():
1818
["MIT (Controller Icons)", "mit_controllericons.txt"],
1919
["MIT (Onscreenkeyboard)", "mit_onscreenkeyboard.txt"],
2020
["MIT (Godot Accessibility Plugin)", "mit_godot-accessibility.txt"],
21+
["MIT (Godot-BlurHash)", "mit_godot-blurhash.txt"],
2122
["CC0", "cc0.txt"],
2223
["CC BY 4.0", "ccby40.txt"],
2324
["CC BY NC SA 4.0", "ccbyncsa40.txt"]
@@ -77,6 +78,8 @@ func convert_license_key(key: String) -> String:
7778
return "MIT (Godot Accessibility Plugin)"
7879
"mit_godot-tts":
7980
return "MIT (Godot TTS)"
81+
"mit_godot-blurhash":
82+
return "MIT (Godot-BlurHash)"
8083
"cc0":
8184
return "CC0"
8285
"ccby40":

0 commit comments

Comments
 (0)