End of lesson 6, Creating a base theme.

This commit is contained in:
Penelope 2025-04-05 11:12:37 -03:00
parent 2163c32bdd
commit dc5585486b
7 changed files with 127 additions and 1 deletions

BIN
gfx/ui/buttonSquare_brown.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b0vf0rr7rvprp"
path="res://.godot/imported/buttonSquare_brown.png-3288940e5b25af73ac97d530f3df64ad.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://gfx/ui/buttonSquare_brown.png"
dest_files=["res://.godot/imported/buttonSquare_brown.png-3288940e5b25af73ac97d530f3df64ad.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
gfx/ui/buttonSquare_brown_pressed.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://br5cg1witxy7i"
path="res://.godot/imported/buttonSquare_brown_pressed.png-7085ccac0a74aa74aa45209c61480d54.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://gfx/ui/buttonSquare_brown_pressed.png"
dest_files=["res://.godot/imported/buttonSquare_brown_pressed.png-7085ccac0a74aa74aa45209c61480d54.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@ -11,6 +11,7 @@ config_version=5
[application]
config/name="Legacy of the Ancient Questor"
run/main_scene="uid://dm8aun68tgprd"
config/features=PackedStringArray("4.4", "GL Compatibility")
config/icon="res://icon.svg"

View File

@ -1,7 +1,8 @@
[gd_scene load_steps=4 format=3 uid="uid://dm8aun68tgprd"]
[gd_scene load_steps=5 format=3 uid="uid://dm8aun68tgprd"]
[ext_resource type="Texture2D" uid="uid://cm8lciwc0iuq" path="res://gfx/title/tree-3094982_1280.jpg" id="1_eb34j"]
[ext_resource type="FontFile" uid="uid://1u28cjgctsn7" path="res://fonts/alagard_by_pix3m-d6awiwp.ttf" id="2_aqpy5"]
[ext_resource type="Theme" uid="uid://dnxny0n7ti7eq" path="res://themes/default_theme.tres" id="3_w8uqo"]
[sub_resource type="LabelSettings" id="LabelSettings_w8uqo"]
font = ExtResource("2_aqpy5")
@ -70,12 +71,21 @@ size_flags_horizontal = 3
[node name="New Game Button" type="Button" parent="Content/VBoxContainer/HBoxContainer/Button Menu"]
layout_mode = 2
focus_mode = 0
theme = ExtResource("3_w8uqo")
theme_override_font_sizes/font_size = 45
text = "New Game"
[node name="Load Game Button" type="Button" parent="Content/VBoxContainer/HBoxContainer/Button Menu"]
layout_mode = 2
focus_mode = 0
theme = ExtResource("3_w8uqo")
theme_override_font_sizes/font_size = 45
text = "Load Game"
[node name="Credits Button" type="Button" parent="Content/VBoxContainer/HBoxContainer/Button Menu"]
layout_mode = 2
focus_mode = 0
theme = ExtResource("3_w8uqo")
theme_override_font_sizes/font_size = 45
text = "Credits"

41
themes/default_theme.tres Normal file
View File

@ -0,0 +1,41 @@
[gd_resource type="Theme" load_steps=7 format=3 uid="uid://dnxny0n7ti7eq"]
[ext_resource type="FontFile" uid="uid://1u28cjgctsn7" path="res://fonts/alagard_by_pix3m-d6awiwp.ttf" id="1_lkf7m"]
[ext_resource type="Texture2D" uid="uid://b0vf0rr7rvprp" path="res://gfx/ui/buttonSquare_brown.png" id="2_fx2g0"]
[ext_resource type="Texture2D" uid="uid://br5cg1witxy7i" path="res://gfx/ui/buttonSquare_brown_pressed.png" id="3_nwjvr"]
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_r3xux"]
texture = ExtResource("2_fx2g0")
texture_margin_left = 6.48627
texture_margin_top = 4.13675
texture_margin_right = 7.43218
texture_margin_bottom = 8.10783
axis_stretch_horizontal = 1
axis_stretch_vertical = 1
region_rect = Rect2(-0.11042, 0, 45.1104, 49)
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_oxkhk"]
texture = ExtResource("2_fx2g0")
texture_margin_left = 6.48627
texture_margin_top = 4.13675
texture_margin_right = 7.43218
texture_margin_bottom = 8.10783
axis_stretch_horizontal = 1
axis_stretch_vertical = 1
region_rect = Rect2(-0.11042, 0, 45.1104, 49)
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_pvobe"]
texture = ExtResource("3_nwjvr")
texture_margin_left = 6.48627
texture_margin_top = 4.13675
texture_margin_right = 7.43218
texture_margin_bottom = 8.10783
axis_stretch_horizontal = 1
axis_stretch_vertical = 1
region_rect = Rect2(-0.11042, 0, 45.1104, 45.1079)
[resource]
Button/fonts/font = ExtResource("1_lkf7m")
Button/styles/hover = SubResource("StyleBoxTexture_r3xux")
Button/styles/normal = SubResource("StyleBoxTexture_oxkhk")
Button/styles/pressed = SubResource("StyleBoxTexture_pvobe")