Skip to content

Commit

Permalink
GraFICK
Browse files Browse the repository at this point in the history
  • Loading branch information
nat-rix committed Apr 15, 2024
1 parent 4893fd8 commit 731c383
Show file tree
Hide file tree
Showing 5 changed files with 87 additions and 2 deletions.
Binary file added src/assets/button-9patch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions src/assets/button-9patch.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://cecnqc0t3s16s"
path="res://.godot/imported/button-9patch.png-fdb38ce844dd3328d2315d57bdabf76c.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://assets/button-9patch.png"
dest_files=["res://.godot/imported/button-9patch.png-fdb38ce844dd3328d2315d57bdabf76c.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
47 changes: 47 additions & 0 deletions src/assets/button-theme.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[gd_resource type="Theme" load_steps=7 format=3 uid="uid://dsm52s8wnxyxa"]

[ext_resource type="Texture2D" uid="uid://cecnqc0t3s16s" path="res://assets/button-9patch.png" id="1_7yqtv"]

[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_luwni"]
texture = ExtResource("1_7yqtv")
texture_margin_left = 16.0
texture_margin_top = 16.0
texture_margin_right = 16.0
texture_margin_bottom = 16.0

[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_bnn26"]
texture = ExtResource("1_7yqtv")
texture_margin_left = 16.0
texture_margin_top = 16.0
texture_margin_right = 16.0
texture_margin_bottom = 16.0

[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_pgik8"]
texture = ExtResource("1_7yqtv")
texture_margin_left = 16.0
texture_margin_top = 16.0
texture_margin_right = 16.0
texture_margin_bottom = 16.0
modulate_color = Color(1, 0.282353, 1, 1)

[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_810ke"]
texture = ExtResource("1_7yqtv")
texture_margin_left = 16.0
texture_margin_top = 16.0
texture_margin_right = 16.0
texture_margin_bottom = 16.0

[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_vbt8s"]
texture = ExtResource("1_7yqtv")
texture_margin_left = 16.0
texture_margin_top = 16.0
texture_margin_right = 16.0
texture_margin_bottom = 16.0
modulate_color = Color(1, 0.27451, 0.219608, 1)

[resource]
Button/styles/disabled = SubResource("StyleBoxTexture_luwni")
Button/styles/focus = SubResource("StyleBoxTexture_bnn26")
Button/styles/hover = SubResource("StyleBoxTexture_pgik8")
Button/styles/normal = SubResource("StyleBoxTexture_810ke")
Button/styles/pressed = SubResource("StyleBoxTexture_vbt8s")
2 changes: 1 addition & 1 deletion src/assets/theme.tres
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_resource type="Theme" load_steps=5 format=3 uid="uid://crr3so0w3i4le"]
[gd_resource type="Theme" load_steps=5 format=3 uid="uid://ppfy7kdqv1kv"]

[ext_resource type="Texture2D" uid="uid://bjd302kmn2k4g" path="res://assets/hp-bar-fill.png" id="1_7kxux"]

Expand Down
6 changes: 5 additions & 1 deletion src/scenes/title-screen.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene load_steps=30 format=3 uid="uid://b0g24cuh0jra3"]
[gd_scene load_steps=31 format=3 uid="uid://b0g24cuh0jra3"]

[ext_resource type="Script" path="res://scripts/title-screen.gd" id="1_w6h7c"]
[ext_resource type="Texture2D" uid="uid://ytwuf5qyh06j" path="res://assets/bg-illuminati.png" id="2_h1hxg"]
Expand All @@ -14,6 +14,7 @@
[ext_resource type="Texture2D" uid="uid://5llk6vkqaa1v" path="res://assets/bg-simple.png" id="12_bc604"]
[ext_resource type="Texture2D" uid="uid://m731s13d1xpl" path="res://assets/bg-torch.png" id="13_7ik51"]
[ext_resource type="Texture2D" uid="uid://glbsi3atxqjp" path="res://assets/bg-window.png" id="14_7s6mh"]
[ext_resource type="Theme" uid="uid://dsm52s8wnxyxa" path="res://assets/button-theme.tres" id="15_ewjrv"]

[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_4c6af"]
texture = ExtResource("2_h1hxg")
Expand Down Expand Up @@ -238,6 +239,9 @@ layout_mode = 2

[node name="StartGameButton" type="Button" parent="VBoxContainer/HBoxContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
focus_mode = 0
mouse_default_cursor_shape = 2
theme = ExtResource("15_ewjrv")
text = "Start Game"

[connection signal="pressed" from="VBoxContainer/HBoxContainer/MarginContainer/VBoxContainer/StartGameButton" to="." method="on_start_game_button_pressed"]

0 comments on commit 731c383

Please sign in to comment.