Adds font and theme for UI elements
parent
2eb0324eff
commit
df094f18cf
Binary file not shown.
|
@ -0,0 +1,35 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="font_data_dynamic"
|
||||||
|
type="FontFile"
|
||||||
|
uid="uid://cupgp2iqxdun5"
|
||||||
|
path="res://.godot/imported/Kings-Regular.ttf-83c1178de5260392825400fece9d06f2.fontdata"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Fonts/Kings-Regular.ttf"
|
||||||
|
dest_files=["res://.godot/imported/Kings-Regular.ttf-83c1178de5260392825400fece9d06f2.fontdata"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
Rendering=null
|
||||||
|
antialiasing=1
|
||||||
|
generate_mipmaps=false
|
||||||
|
disable_embedded_bitmaps=true
|
||||||
|
multichannel_signed_distance_field=false
|
||||||
|
msdf_pixel_range=8
|
||||||
|
msdf_size=48
|
||||||
|
allow_system_fallback=true
|
||||||
|
force_autohinter=false
|
||||||
|
hinting=1
|
||||||
|
subpixel_positioning=4
|
||||||
|
keep_rounding_remainders=true
|
||||||
|
oversampling=0.0
|
||||||
|
Fallbacks=null
|
||||||
|
fallbacks=[]
|
||||||
|
Compress=null
|
||||||
|
compress=true
|
||||||
|
preload=[]
|
||||||
|
language_support={}
|
||||||
|
script_support={}
|
||||||
|
opentype_features={}
|
|
@ -0,0 +1,93 @@
|
||||||
|
Copyright 2013-2021 The Kings Project Authors (https://github.com/googlefonts/kings)
|
||||||
|
|
||||||
|
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||||
|
This license is copied below, and is also available with a FAQ at:
|
||||||
|
https://openfontlicense.org
|
||||||
|
|
||||||
|
|
||||||
|
-----------------------------------------------------------
|
||||||
|
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||||
|
-----------------------------------------------------------
|
||||||
|
|
||||||
|
PREAMBLE
|
||||||
|
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||||
|
development of collaborative font projects, to support the font creation
|
||||||
|
efforts of academic and linguistic communities, and to provide a free and
|
||||||
|
open framework in which fonts may be shared and improved in partnership
|
||||||
|
with others.
|
||||||
|
|
||||||
|
The OFL allows the licensed fonts to be used, studied, modified and
|
||||||
|
redistributed freely as long as they are not sold by themselves. The
|
||||||
|
fonts, including any derivative works, can be bundled, embedded,
|
||||||
|
redistributed and/or sold with any software provided that any reserved
|
||||||
|
names are not used by derivative works. The fonts and derivatives,
|
||||||
|
however, cannot be released under any other type of license. The
|
||||||
|
requirement for fonts to remain under this license does not apply
|
||||||
|
to any document created using the fonts or their derivatives.
|
||||||
|
|
||||||
|
DEFINITIONS
|
||||||
|
"Font Software" refers to the set of files released by the Copyright
|
||||||
|
Holder(s) under this license and clearly marked as such. This may
|
||||||
|
include source files, build scripts and documentation.
|
||||||
|
|
||||||
|
"Reserved Font Name" refers to any names specified as such after the
|
||||||
|
copyright statement(s).
|
||||||
|
|
||||||
|
"Original Version" refers to the collection of Font Software components as
|
||||||
|
distributed by the Copyright Holder(s).
|
||||||
|
|
||||||
|
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||||
|
or substituting -- in part or in whole -- any of the components of the
|
||||||
|
Original Version, by changing formats or by porting the Font Software to a
|
||||||
|
new environment.
|
||||||
|
|
||||||
|
"Author" refers to any designer, engineer, programmer, technical
|
||||||
|
writer or other person who contributed to the Font Software.
|
||||||
|
|
||||||
|
PERMISSION & CONDITIONS
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||||
|
redistribute, and sell modified and unmodified copies of the Font
|
||||||
|
Software, subject to the following conditions:
|
||||||
|
|
||||||
|
1) Neither the Font Software nor any of its individual components,
|
||||||
|
in Original or Modified Versions, may be sold by itself.
|
||||||
|
|
||||||
|
2) Original or Modified Versions of the Font Software may be bundled,
|
||||||
|
redistributed and/or sold with any software, provided that each copy
|
||||||
|
contains the above copyright notice and this license. These can be
|
||||||
|
included either as stand-alone text files, human-readable headers or
|
||||||
|
in the appropriate machine-readable metadata fields within text or
|
||||||
|
binary files as long as those fields can be easily viewed by the user.
|
||||||
|
|
||||||
|
3) No Modified Version of the Font Software may use the Reserved Font
|
||||||
|
Name(s) unless explicit written permission is granted by the corresponding
|
||||||
|
Copyright Holder. This restriction only applies to the primary font name as
|
||||||
|
presented to the users.
|
||||||
|
|
||||||
|
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||||
|
Software shall not be used to promote, endorse or advertise any
|
||||||
|
Modified Version, except to acknowledge the contribution(s) of the
|
||||||
|
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||||
|
permission.
|
||||||
|
|
||||||
|
5) The Font Software, modified or unmodified, in part or in whole,
|
||||||
|
must be distributed entirely under this license, and must not be
|
||||||
|
distributed under any other license. The requirement for fonts to
|
||||||
|
remain under this license does not apply to any document created
|
||||||
|
using the Font Software.
|
||||||
|
|
||||||
|
TERMINATION
|
||||||
|
This license becomes null and void if any of the above conditions are
|
||||||
|
not met.
|
||||||
|
|
||||||
|
DISCLAIMER
|
||||||
|
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||||
|
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||||
|
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||||
|
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||||
|
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@ -1,9 +1,13 @@
|
||||||
[gd_scene load_steps=3 format=3 uid="uid://bqg3ohs1gwofr"]
|
[gd_scene load_steps=5 format=3 uid="uid://bqg3ohs1gwofr"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://b8brifkk4knh8" path="res://Scripts/game_over_menu.gd" id="1_arass"]
|
[ext_resource type="Script" uid="uid://b8brifkk4knh8" path="res://Scripts/game_over_menu.gd" id="1_arass"]
|
||||||
|
[ext_resource type="FontFile" uid="uid://cupgp2iqxdun5" path="res://Fonts/Kings-Regular.ttf" id="2_i22rp"]
|
||||||
|
[ext_resource type="Theme" uid="uid://swbdum41grig" path="res://default_theme.tres" id="3_dsdey"]
|
||||||
|
|
||||||
[sub_resource type="LabelSettings" id="LabelSettings_7upku"]
|
[sub_resource type="LabelSettings" id="LabelSettings_7upku"]
|
||||||
|
font = ExtResource("2_i22rp")
|
||||||
font_size = 32
|
font_size = 32
|
||||||
|
font_color = Color(0, 0, 0, 1)
|
||||||
|
|
||||||
[node name="GameOverMenu" type="VBoxContainer" groups=["GameOverMenu"]]
|
[node name="GameOverMenu" type="VBoxContainer" groups=["GameOverMenu"]]
|
||||||
visible = false
|
visible = false
|
||||||
|
@ -28,6 +32,7 @@ size_flags_vertical = 3
|
||||||
|
|
||||||
[node name="Restart" type="Button" parent="."]
|
[node name="Restart" type="Button" parent="."]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
|
theme = ExtResource("3_dsdey")
|
||||||
text = "Restart"
|
text = "Restart"
|
||||||
|
|
||||||
[node name="MainMenu" type="Button" parent="."]
|
[node name="MainMenu" type="Button" parent="."]
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
[gd_scene load_steps=16 format=4 uid="uid://bs6an72avch86"]
|
[gd_scene load_steps=18 format=4 uid="uid://bs6an72avch86"]
|
||||||
|
|
||||||
[ext_resource type="Texture2D" uid="uid://dxdtqv4do4x31" path="res://Sprites/background.png" id="1_6bp64"]
|
[ext_resource type="Texture2D" uid="uid://dxdtqv4do4x31" path="res://Sprites/background.png" id="1_6bp64"]
|
||||||
[ext_resource type="PackedScene" uid="uid://gkqku38yb2ng" path="res://Scenes/level.tscn" id="1_bo1nx"]
|
[ext_resource type="PackedScene" uid="uid://gkqku38yb2ng" path="res://Scenes/level.tscn" id="1_bo1nx"]
|
||||||
|
@ -13,6 +13,7 @@
|
||||||
[ext_resource type="Texture2D" uid="uid://dr3y3mvyrecxn" path="res://Sprites/lemon.png" id="11_jkdf5"]
|
[ext_resource type="Texture2D" uid="uid://dr3y3mvyrecxn" path="res://Sprites/lemon.png" id="11_jkdf5"]
|
||||||
[ext_resource type="Texture2D" uid="uid://csu4d06po6r6x" path="res://Sprites/apple.png" id="12_wsu2k"]
|
[ext_resource type="Texture2D" uid="uid://csu4d06po6r6x" path="res://Sprites/apple.png" id="12_wsu2k"]
|
||||||
[ext_resource type="Texture2D" uid="uid://ccqroki031ou" path="res://Sprites/watermelon.png" id="13_k12tt"]
|
[ext_resource type="Texture2D" uid="uid://ccqroki031ou" path="res://Sprites/watermelon.png" id="13_k12tt"]
|
||||||
|
[ext_resource type="FontFile" uid="uid://cupgp2iqxdun5" path="res://Fonts/Kings-Regular.ttf" id="14_jkdf5"]
|
||||||
|
|
||||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_6bp64"]
|
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_6bp64"]
|
||||||
resource_name = "Tile"
|
resource_name = "Tile"
|
||||||
|
@ -24,6 +25,11 @@ texture_region_size = Vector2i(40, 40)
|
||||||
tile_size = Vector2i(40, 40)
|
tile_size = Vector2i(40, 40)
|
||||||
sources/0 = SubResource("TileSetAtlasSource_6bp64")
|
sources/0 = SubResource("TileSetAtlasSource_6bp64")
|
||||||
|
|
||||||
|
[sub_resource type="LabelSettings" id="LabelSettings_wsu2k"]
|
||||||
|
font = ExtResource("14_jkdf5")
|
||||||
|
font_size = 18
|
||||||
|
font_color = Color(0, 0, 0, 1)
|
||||||
|
|
||||||
[node name="Main" type="Node2D"]
|
[node name="Main" type="Node2D"]
|
||||||
|
|
||||||
[node name="Background" type="Sprite2D" parent="."]
|
[node name="Background" type="Sprite2D" parent="."]
|
||||||
|
@ -113,6 +119,7 @@ offset_top = 496.0
|
||||||
offset_right = 96.0
|
offset_right = 96.0
|
||||||
offset_bottom = 519.0
|
offset_bottom = 519.0
|
||||||
text = "=1"
|
text = "=1"
|
||||||
|
label_settings = SubResource("LabelSettings_wsu2k")
|
||||||
|
|
||||||
[node name="Label2" type="Label" parent="FruitExamples"]
|
[node name="Label2" type="Label" parent="FruitExamples"]
|
||||||
offset_left = 55.0
|
offset_left = 55.0
|
||||||
|
@ -120,6 +127,7 @@ offset_top = 530.0
|
||||||
offset_right = 95.0
|
offset_right = 95.0
|
||||||
offset_bottom = 553.0
|
offset_bottom = 553.0
|
||||||
text = "=3"
|
text = "=3"
|
||||||
|
label_settings = SubResource("LabelSettings_wsu2k")
|
||||||
|
|
||||||
[node name="Label3" type="Label" parent="FruitExamples"]
|
[node name="Label3" type="Label" parent="FruitExamples"]
|
||||||
offset_left = 112.0
|
offset_left = 112.0
|
||||||
|
@ -127,6 +135,7 @@ offset_top = 496.0
|
||||||
offset_right = 152.0
|
offset_right = 152.0
|
||||||
offset_bottom = 519.0
|
offset_bottom = 519.0
|
||||||
text = "=5"
|
text = "=5"
|
||||||
|
label_settings = SubResource("LabelSettings_wsu2k")
|
||||||
|
|
||||||
[node name="Label4" type="Label" parent="FruitExamples"]
|
[node name="Label4" type="Label" parent="FruitExamples"]
|
||||||
offset_left = 113.0
|
offset_left = 113.0
|
||||||
|
@ -134,5 +143,6 @@ offset_top = 527.0
|
||||||
offset_right = 153.0
|
offset_right = 153.0
|
||||||
offset_bottom = 550.0
|
offset_bottom = 550.0
|
||||||
text = "=10"
|
text = "=10"
|
||||||
|
label_settings = SubResource("LabelSettings_wsu2k")
|
||||||
|
|
||||||
[connection signal="timeout" from="RestartTimer" to="Timer" method="start" binds= [0.3]]
|
[connection signal="timeout" from="RestartTimer" to="Timer" method="start" binds= [0.3]]
|
||||||
|
|
|
@ -101,42 +101,47 @@ texture = ExtResource("3_ce3w2")
|
||||||
script = ExtResource("4_n45e2")
|
script = ExtResource("4_n45e2")
|
||||||
|
|
||||||
[node name="Label" type="Label" parent="Title"]
|
[node name="Label" type="Label" parent="Title"]
|
||||||
offset_left = 351.0
|
layout_mode = 0
|
||||||
offset_top = 49.0
|
offset_left = 357.0
|
||||||
offset_right = 522.0
|
offset_top = 65.0
|
||||||
offset_bottom = 268.0
|
offset_right = 528.0
|
||||||
|
offset_bottom = 289.0
|
||||||
text = "u"
|
text = "u"
|
||||||
label_settings = SubResource("LabelSettings_ce3w2")
|
label_settings = SubResource("LabelSettings_ce3w2")
|
||||||
|
|
||||||
[node name="Label5" type="Label" parent="Title"]
|
[node name="Label5" type="Label" parent="Title"]
|
||||||
offset_left = 453.0
|
layout_mode = 0
|
||||||
offset_top = 49.0
|
offset_left = 459.0
|
||||||
offset_right = 624.0
|
offset_top = 65.0
|
||||||
offset_bottom = 268.0
|
offset_right = 630.0
|
||||||
|
offset_bottom = 289.0
|
||||||
text = "r"
|
text = "r"
|
||||||
label_settings = SubResource("LabelSettings_n45e2")
|
label_settings = SubResource("LabelSettings_n45e2")
|
||||||
|
|
||||||
[node name="Label2" type="Label" parent="Title"]
|
[node name="Label2" type="Label" parent="Title"]
|
||||||
offset_left = 625.0
|
layout_mode = 0
|
||||||
offset_top = 50.0
|
offset_left = 631.0
|
||||||
offset_right = 725.0
|
offset_top = 66.0
|
||||||
offset_bottom = 269.0
|
offset_right = 731.0
|
||||||
|
offset_bottom = 290.0
|
||||||
text = "b"
|
text = "b"
|
||||||
label_settings = SubResource("LabelSettings_opfnp")
|
label_settings = SubResource("LabelSettings_opfnp")
|
||||||
|
|
||||||
[node name="Label3" type="Label" parent="Title"]
|
[node name="Label3" type="Label" parent="Title"]
|
||||||
offset_left = 827.0
|
layout_mode = 0
|
||||||
offset_top = 52.0
|
offset_left = 833.0
|
||||||
offset_right = 927.0
|
offset_top = 68.0
|
||||||
offset_bottom = 271.0
|
offset_right = 933.0
|
||||||
|
offset_bottom = 292.0
|
||||||
text = "r"
|
text = "r"
|
||||||
label_settings = SubResource("LabelSettings_cp0ys")
|
label_settings = SubResource("LabelSettings_cp0ys")
|
||||||
|
|
||||||
[node name="Label4" type="Label" parent="Title"]
|
[node name="Label4" type="Label" parent="Title"]
|
||||||
offset_left = 998.0
|
layout_mode = 0
|
||||||
offset_top = 51.0
|
offset_left = 1004.0
|
||||||
offset_right = 1098.0
|
offset_top = 67.0
|
||||||
offset_bottom = 270.0
|
offset_right = 1104.0
|
||||||
|
offset_bottom = 291.0
|
||||||
text = "s"
|
text = "s"
|
||||||
label_settings = SubResource("LabelSettings_yhxw7")
|
label_settings = SubResource("LabelSettings_yhxw7")
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,13 @@
|
||||||
[gd_scene load_steps=3 format=3 uid="uid://mp03fsd536be"]
|
[gd_scene load_steps=4 format=3 uid="uid://mp03fsd536be"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://bwiflwp3hufyu" path="res://Scripts/score_display.gd" id="1_abl27"]
|
[ext_resource type="Script" uid="uid://bwiflwp3hufyu" path="res://Scripts/score_display.gd" id="1_abl27"]
|
||||||
|
[ext_resource type="FontFile" uid="uid://cupgp2iqxdun5" path="res://Fonts/Kings-Regular.ttf" id="2_s1pvd"]
|
||||||
|
|
||||||
[sub_resource type="LabelSettings" id="LabelSettings_abl27"]
|
[sub_resource type="LabelSettings" id="LabelSettings_abl27"]
|
||||||
|
font = ExtResource("2_s1pvd")
|
||||||
font_size = 22
|
font_size = 22
|
||||||
|
font_color = Color(0, 0, 0, 1)
|
||||||
|
outline_color = Color(0, 0, 0, 1)
|
||||||
|
|
||||||
[node name="ScoreDisplay" type="VBoxContainer"]
|
[node name="ScoreDisplay" type="VBoxContainer"]
|
||||||
anchors_preset = 15
|
anchors_preset = 15
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
[gd_resource type="Theme" load_steps=5 format=3 uid="uid://swbdum41grig"]
|
||||||
|
|
||||||
|
[ext_resource type="FontFile" uid="uid://cupgp2iqxdun5" path="res://Fonts/Kings-Regular.ttf" id="1_e7bfs"]
|
||||||
|
|
||||||
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_e7bfs"]
|
||||||
|
bg_color = Color(0, 0, 0, 1)
|
||||||
|
corner_radius_top_left = 7
|
||||||
|
corner_radius_top_right = 7
|
||||||
|
corner_radius_bottom_right = 7
|
||||||
|
corner_radius_bottom_left = 7
|
||||||
|
|
||||||
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_3taad"]
|
||||||
|
bg_color = Color(0, 0, 0, 0.625)
|
||||||
|
corner_radius_top_left = 7
|
||||||
|
corner_radius_top_right = 7
|
||||||
|
corner_radius_bottom_right = 7
|
||||||
|
corner_radius_bottom_left = 7
|
||||||
|
|
||||||
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_7j863"]
|
||||||
|
bg_color = Color(0, 0, 0, 0.625)
|
||||||
|
corner_radius_top_left = 7
|
||||||
|
corner_radius_top_right = 7
|
||||||
|
corner_radius_bottom_right = 7
|
||||||
|
corner_radius_bottom_left = 7
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
default_font = ExtResource("1_e7bfs")
|
||||||
|
Button/styles/hover = SubResource("StyleBoxFlat_e7bfs")
|
||||||
|
Button/styles/normal = SubResource("StyleBoxFlat_3taad")
|
||||||
|
Button/styles/pressed = SubResource("StyleBoxFlat_7j863")
|
|
@ -30,6 +30,11 @@ Level=""
|
||||||
BlocksSpawn=""
|
BlocksSpawn=""
|
||||||
GameClock=""
|
GameClock=""
|
||||||
|
|
||||||
|
[gui]
|
||||||
|
|
||||||
|
theme/custom="uid://swbdum41grig"
|
||||||
|
theme/custom_font="uid://cupgp2iqxdun5"
|
||||||
|
|
||||||
[input]
|
[input]
|
||||||
|
|
||||||
right={
|
right={
|
||||||
|
|
Loading…
Reference in New Issue