This repository has been archived by the owner on Dec 14, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from Jeremi360/godot-4
Godot 4 update
- Loading branch information
Showing
28 changed files
with
395 additions
and
24,303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
*.import | ||
export.cfg | ||
export_presets.cfg | ||
*.godot | ||
|
||
# Mono-specific ignores | ||
.mono/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@tool | ||
extends RichTextLabel | ||
|
||
@export_multiline | ||
var text_with_icons : String: | ||
set(value): | ||
if !Engine.is_editor_hint(): | ||
await ready | ||
_text_with_icons = value | ||
bbcode_enabled = true | ||
text = MaterialIconsDB.prase_icons(value) | ||
|
||
get: | ||
return _text_with_icons | ||
|
||
var _text_with_icons : String |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
[gd_scene load_steps=5 format=3 uid="uid://dkr5smdig8tv4"] | ||
|
||
[ext_resource type="FontFile" uid="uid://bbfeoo2kuf30n" path="res://addons/material-design-icons/fonts/material_design_icons.ttf" id="1_fqgpp"] | ||
[ext_resource type="Script" path="res://addons/material-design-icons/nodes/MaterialButton.gd" id="2_l3c8x"] | ||
[ext_resource type="Script" path="res://addons/material-design-icons/nodes/MaterialIcon.gd" id="3_87ldj"] | ||
[ext_resource type="Script" path="res://addons/material-design-icons/examples/LabelWithIcons.gd" id="4_lf58l"] | ||
|
||
[node name="Test" type="Control"] | ||
layout_mode = 3 | ||
anchors_preset = 15 | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
grow_horizontal = 2 | ||
grow_vertical = 2 | ||
|
||
[node name="MaterialButton" type="Button" parent="."] | ||
layout_mode = 2 | ||
offset_right = 94.0 | ||
offset_bottom = 131.0 | ||
theme_override_fonts/font = ExtResource("1_fqgpp") | ||
theme_override_font_sizes/font_size = 86 | ||
text = "" | ||
script = ExtResource("2_l3c8x") | ||
icon_name = "microsoft-internet-explorer" | ||
icon_size = 86 | ||
|
||
[node name="MaterialIcon" type="Label" parent="."] | ||
layout_mode = 2 | ||
offset_left = 98.0 | ||
offset_right = 226.0 | ||
offset_bottom = 131.0 | ||
theme_override_fonts/font = ExtResource("1_fqgpp") | ||
theme_override_font_sizes/font_size = 128 | ||
text = "" | ||
script = ExtResource("3_87ldj") | ||
icon_name = "alien" | ||
icon_size = 128 | ||
|
||
[node name="LabelWithIcons" type="RichTextLabel" parent="."] | ||
layout_mode = 2 | ||
offset_top = 135.0 | ||
offset_right = 273.0 | ||
offset_bottom = 268.0 | ||
bbcode_enabled = true | ||
text = "Text with Icons: [font=res://addons/material-design-icons/fonts/material_design_icons.ttf][/font] Second icon: [font=res://addons/material-design-icons/fonts/material_design_icons.ttf][/font]" | ||
script = ExtResource("4_lf58l") | ||
text_with_icons = "Text with Icons: [icon:format-textbox] Second icon: [icon:alpha]" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
107 changes: 60 additions & 47 deletions
107
addons/material-design-icons/icon_finder/IconFinder.tscn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,77 @@ | ||
[gd_scene load_steps=4 format=2] | ||
[gd_scene load_steps=3 format=3 uid="uid://bni8w3a3pcbwn"] | ||
|
||
[ext_resource path="res://addons/material-design-icons/icon_finder/icon_finder.gd" type="Script" id=1] | ||
[ext_resource path="res://addons/material-design-icons/icon_finder/search.gd" type="Script" id=2] | ||
[ext_resource path="res://addons/material-design-icons/icon_finder/IconsGrid.tscn" type="PackedScene" id=3] | ||
[ext_resource type="Script" path="res://addons/material-design-icons/icon_finder/icon_finder.gd" id="1_nv02s"] | ||
[ext_resource type="FontFile" uid="uid://bbfeoo2kuf30n" path="res://addons/material-design-icons/fonts/material_design_icons.ttf" id="4_xlv7e"] | ||
|
||
[node name="IconFinder" type="WindowDialog"] | ||
[node name="IconFinder" type="Window" node_paths=PackedStringArray("icons_text", "notify_label", "search_line_edit", "size_slider", "size_label")] | ||
title = "Icon Finder" | ||
initial_position = 2 | ||
size = Vector2i(775, 400) | ||
unresizable = true | ||
script = ExtResource("1_nv02s") | ||
icons_text = NodePath("Panel/VBoxContainer/RichTextLabel") | ||
notify_label = NodePath("Panel/VBoxContainer/Notify") | ||
search_line_edit = NodePath("Panel/VBoxContainer/Search") | ||
size_slider = NodePath("Panel/VBoxContainer/SliderContainer/HSlider") | ||
size_label = NodePath("Panel/VBoxContainer/SliderContainer/LabelSize") | ||
|
||
[node name="Panel" type="Panel" parent="."] | ||
anchors_preset = 15 | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
rect_min_size = Vector2( 200, 100 ) | ||
window_title = "Material Icon Finder" | ||
resizable = true | ||
script = ExtResource( 1 ) | ||
__meta__ = { | ||
"_edit_use_anchors_": false | ||
} | ||
grid_node_path = NodePath("VBoxContainer/ScrollContainer/GridContainer") | ||
label_node_path = NodePath("VBoxContainer/Label") | ||
|
||
[node name="Tween" type="Tween" parent="."] | ||
grow_horizontal = 2 | ||
grow_vertical = 2 | ||
size_flags_horizontal = 3 | ||
size_flags_vertical = 3 | ||
|
||
[node name="VBoxContainer" type="VBoxContainer" parent="."] | ||
[node name="VBoxContainer" type="VBoxContainer" parent="Panel"] | ||
layout_mode = 1 | ||
anchors_preset = 15 | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
margin_left = 5.0 | ||
margin_top = 5.0 | ||
margin_right = -5.0 | ||
margin_bottom = -5.0 | ||
__meta__ = { | ||
"_edit_use_anchors_": true | ||
} | ||
grow_horizontal = 2 | ||
grow_vertical = 2 | ||
size_flags_horizontal = 3 | ||
size_flags_vertical = 3 | ||
|
||
[node name="Search" type="LineEdit" parent="VBoxContainer"] | ||
margin_right = 1014.0 | ||
margin_bottom = 24.0 | ||
[node name="Search" type="LineEdit" parent="Panel/VBoxContainer"] | ||
layout_mode = 2 | ||
size_flags_horizontal = 3 | ||
align = 1 | ||
placeholder_text = "Search" | ||
caret_blink = true | ||
caret_blink_speed = 0.5 | ||
script = ExtResource( 2 ) | ||
grid_node_path = NodePath("../ScrollContainer/GridContainer") | ||
caret_blink_interval = 0.5 | ||
|
||
[node name="Label" type="Label" parent="VBoxContainer"] | ||
[node name="Notify" type="Label" parent="Panel/VBoxContainer"] | ||
visible = false | ||
margin_top = 28.0 | ||
margin_right = 1014.0 | ||
margin_bottom = 42.0 | ||
custom_colors/font_color = Color( 0.4, 0.929412, 0, 1 ) | ||
layout_mode = 2 | ||
text = "Icon-x was copied to clipboard." | ||
align = 1 | ||
valign = 1 | ||
|
||
[node name="ScrollContainer" type="ScrollContainer" parent="VBoxContainer"] | ||
margin_top = 46.0 | ||
margin_right = 1014.0 | ||
margin_bottom = 590.0 | ||
[node name="SliderContainer" type="HBoxContainer" parent="Panel/VBoxContainer"] | ||
layout_mode = 2 | ||
|
||
[node name="Label" type="Label" parent="Panel/VBoxContainer/SliderContainer"] | ||
layout_mode = 2 | ||
text = "Size preview" | ||
|
||
[node name="HSlider" type="HSlider" parent="Panel/VBoxContainer/SliderContainer"] | ||
layout_mode = 2 | ||
size_flags_horizontal = 3 | ||
size_flags_vertical = 3 | ||
size_flags_vertical = 1 | ||
min_value = 16.0 | ||
max_value = 128.0 | ||
value = 24.0 | ||
|
||
[node name="GridContainer" parent="VBoxContainer/ScrollContainer" instance=ExtResource( 3 )] | ||
margin_right = 996.0 | ||
margin_bottom = 8122.0 | ||
columns = 25 | ||
[node name="LabelSize" type="Label" parent="Panel/VBoxContainer/SliderContainer"] | ||
layout_mode = 2 | ||
text = "24" | ||
|
||
[node name="RichTextLabel" type="RichTextLabel" parent="Panel/VBoxContainer"] | ||
layout_mode = 2 | ||
size_flags_horizontal = 3 | ||
size_flags_vertical = 3 | ||
tooltip_text = "click on icon to copy its name to clipboard" | ||
theme_override_colors/table_border = Color(1, 1, 1, 1) | ||
theme_override_fonts/normal_font = ExtResource("4_xlv7e") | ||
theme_override_font_sizes/normal_font_size = 24 | ||
bbcode_enabled = true | ||
meta_underlined = false |
Oops, something went wrong.