Skip to content
This repository has been archived by the owner on Dec 14, 2024. It is now read-only.

Commit

Permalink
add addon code for QuestManager
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremi360 committed Sep 4, 2021
1 parent fb10b5a commit 31069cf
Show file tree
Hide file tree
Showing 29 changed files with 30,780 additions and 7 deletions.
10 changes: 5 additions & 5 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 Rakugo Team
Copyright (c) 2021 Jeremi Biernacki <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -9,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
# Godot-Material-Icons
Templarian's Material Design Icons for Godot
![github-top-lang][lang] ![lic] ![lic-font]

# MaterialIcons for Godot

[*Templarian's Material-Design-Icons*](https://github.com/templarian/MaterialDesign) is a collection of icons for the [Material Design](https://material.io/) specification.

This addon provides the following nodes to use the icons in Godot:
- **MaterialIcon**: A node that displays an icon from the Material Design Icons collection.
- **MaterialButton**: A node that displays an icon from the Material Design Icons collection as a button (whiteout label).

It's also adds **IconsFinder** to the Godot editor's toolbar.
So you can find the icons easily.

![IconsFinder Screen Shot](screen_shot.png)

[lic]: https://img.shields.io/github/license/Jeremi360/QuestManager?style=flat-square&label=📃%20License&
[lang]: https://img.shields.io/github/languages/top/Jeremi360/QuestManager?style=flat-square
[lic-font]:https://img.shields.io/static/v1.svg?label=📜%20Font-License&message=Pictogrammers-Free-License&color=informational&style=flat-square
217 changes: 217 additions & 0 deletions addons/material-design-icons/Test.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,217 @@
[gd_scene load_steps=11 format=2]

[ext_resource path="res://addons/material-design-icons/fonts/material_design_icons.ttf" type="DynamicFontData" id=1]
[ext_resource path="res://addons/material-design-icons/nodes/MaterialIcon.gd" type="Script" id=2]
[ext_resource path="res://themes/DarkTheme.tres" type="Theme" id=3]

[sub_resource type="DynamicFont" id=11]
size = 24
use_filter = true
font_data = ExtResource( 1 )

[sub_resource type="DynamicFont" id=12]
size = 24
use_filter = true
font_data = ExtResource( 1 )

[sub_resource type="DynamicFont" id=13]
size = 24
use_filter = true
font_data = ExtResource( 1 )

[sub_resource type="DynamicFont" id=14]
size = 20
use_filter = true
font_data = ExtResource( 1 )

[sub_resource type="DynamicFont" id=15]
size = 24
use_filter = true
font_data = ExtResource( 1 )

[sub_resource type="DynamicFont" id=16]
size = 24
use_filter = true
font_data = ExtResource( 1 )

[sub_resource type="DynamicFont" id=17]
size = 24
use_filter = true
font_data = ExtResource( 1 )

[node name="Test" type="VBoxContainer"]
anchor_right = 1.0
margin_bottom = 40.0
theme = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}

[node name="HBoxContainer2" type="HBoxContainer" parent="."]
margin_right = 1024.0
margin_bottom = 24.0

[node name="Button" type="Button" parent="HBoxContainer2"]
margin_right = 142.0
margin_bottom = 24.0
size_flags_horizontal = 3
text = "󱊒Button"
__meta__ = {
"icon_name": "toy-brick-search",
"icon_size": 30,
"material_icon": false
}

[node name="MaterialIcon7" type="Label" parent="HBoxContainer2/Button"]
margin_left = 99.685
margin_top = -4.13442
margin_right = 147.685
margin_bottom = 43.8656
custom_fonts/font = SubResource( 11 )
text = "󰥶"
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}

[node name="MenuButton" type="MenuButton" parent="HBoxContainer2"]
margin_left = 146.0
margin_right = 289.0
margin_bottom = 24.0
focus_mode = 2
size_flags_horizontal = 3
text = "󱊒Button"
__meta__ = {
"icon_name": "toy-brick-search",
"material_icon": false
}

[node name="MaterialIcon6" type="Label" parent="HBoxContainer2/MenuButton"]
margin_left = 99.685
margin_top = -4.13442
margin_right = 147.685
margin_bottom = 43.8656
custom_fonts/font = SubResource( 12 )
text = "󰥶"
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}

[node name="OptionButton" type="OptionButton" parent="HBoxContainer2"]
margin_left = 293.0
margin_right = 436.0
margin_bottom = 24.0
size_flags_horizontal = 3
text = "󱊒Button"
__meta__ = {
"icon_name": "toy-brick-search",
"material_icon": false
}

[node name="MaterialIcon5" type="Label" parent="HBoxContainer2/OptionButton"]
margin_left = 99.685
margin_top = -4.13442
margin_right = 147.685
margin_bottom = 43.8656
custom_fonts/font = SubResource( 13 )
text = "󰥶"
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}

[node name="LinkButton" type="LinkButton" parent="HBoxContainer2"]
margin_left = 440.0
margin_right = 583.0
margin_bottom = 24.0
focus_mode = 2
size_flags_horizontal = 3
text = "󱊒Link "
__meta__ = {
"icon_name": "toy-brick-search",
"material_icon": false
}

[node name="MaterialIcon4" type="Label" parent="HBoxContainer2/LinkButton"]
margin_left = 22.8299
margin_top = -9.48909
margin_right = 70.8299
margin_bottom = 38.5109
custom_fonts/font = SubResource( 14 )
text = "󰥶"
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
icon_size = 20

[node name="ToolButton" type="ToolButton" parent="HBoxContainer2"]
margin_left = 587.0
margin_right = 730.0
margin_bottom = 24.0
size_flags_horizontal = 3
text = "󱊒Button"
__meta__ = {
"icon_name": "toy-brick-search",
"material_icon": false
}

[node name="MaterialIcon3" type="Label" parent="HBoxContainer2/ToolButton"]
margin_left = 99.685
margin_top = -4.13442
margin_right = 147.685
margin_bottom = 43.8656
custom_fonts/font = SubResource( 15 )
text = "󰥶"
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}

[node name="CheckButton" type="CheckButton" parent="HBoxContainer2"]
margin_left = 734.0
margin_right = 877.0
margin_bottom = 24.0
size_flags_horizontal = 3
text = "󱊒Button"
__meta__ = {
"icon_name": "toy-brick-search",
"material_icon": false
}

[node name="MaterialIcon2" type="Label" parent="HBoxContainer2/CheckButton"]
margin_left = 72.3333
margin_top = -4.13442
margin_right = 120.333
margin_bottom = 43.8656
custom_fonts/font = SubResource( 16 )
text = "󰥶"
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}

[node name="CheckBox" type="CheckBox" parent="HBoxContainer2"]
margin_left = 881.0
margin_right = 1024.0
margin_bottom = 24.0
size_flags_horizontal = 3
text = "󱊒Button"
__meta__ = {
"icon_name": "toy-brick-search",
"icon_size": 25,
"material_icon": false
}

[node name="MaterialIcon" type="Label" parent="HBoxContainer2/CheckBox"]
margin_left = 99.6851
margin_top = -4.13442
margin_right = 147.685
margin_bottom = 43.8656
custom_fonts/font = SubResource( 17 )
text = "󰥶"
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
20 changes: 20 additions & 0 deletions addons/material-design-icons/fonts/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Pictogrammers Free License
--------------------------

This icon collection is released as free, open source, and GPL friendly by
the [Pictogrammers](http://pictogrammers.com/) icon group. You may use it
for commercial projects, open source projects, or anything really.

# Icons: Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0)
Some of the icons are redistributed under the Apache 2.0 license. All other
icons are either redistributed under their respective licenses or are
distributed under the Apache 2.0 license.

# Fonts: Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0)
All web and desktop fonts are distributed under the Apache 2.0 license. Web
and desktop fonts contain some icons that are redistributed under the Apache
2.0 license. All other icons are either redistributed under their respective
licenses or are distributed under the Apache 2.0 license.

# Code: MIT (https://opensource.org/licenses/MIT)
The MIT license applies to all non-font and non-icon files.
Binary file not shown.
64 changes: 64 additions & 0 deletions addons/material-design-icons/icon_finder/IconFinder.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
[gd_scene load_steps=4 format=2]

[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]

[node name="IconFinder" type="WindowDialog"]
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="."]

[node name="VBoxContainer" type="VBoxContainer" parent="."]
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
}

[node name="Search" type="LineEdit" parent="VBoxContainer"]
margin_right = 1014.0
margin_bottom = 24.0
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")

[node name="Label" type="Label" parent="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 )
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
size_flags_horizontal = 3
size_flags_vertical = 3

[node name="GridContainer" parent="VBoxContainer/ScrollContainer" instance=ExtResource( 3 )]
margin_right = 996.0
margin_bottom = 8122.0
columns = 25
Loading

0 comments on commit 31069cf

Please sign in to comment.