Skip to content

Commit

Permalink
Added a panel to the main menu dedicated to external websites.
Browse files Browse the repository at this point in the history
This commit solves #278.
  • Loading branch information
drwhut committed Dec 13, 2023
1 parent d09b193 commit 86b73d3
Show file tree
Hide file tree
Showing 19 changed files with 552 additions and 4 deletions.
3 changes: 3 additions & 0 deletions game/CREDITS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,13 @@ Jakub 'Nighted' Steiner

OTHER ICONS
-----------------
alex.mitov
css.gg
Delapouite
Denali Design
Icooon Mono
Lorc
pixelbazaar
Skoll
Solar Icons
SVG Repo
Expand Down
50 changes: 50 additions & 0 deletions game/LICENSES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,36 @@ packs. Licensing information for these assets can be viewed in-game.
URL: https://www.svgrepo.com/svg/500472/back


- Book icon

Files:
icons/book_icon.svg
Author: pixelbazaar
License: CC BY
Modified By: Benjamin 'drwhut' Beddows
URL: https://www.svgrepo.com/svg/513175/book-closed


- Bug icon

Files:
icons/bug_icon.svg
Author: Denali Design
License: MIT
Modified By: Benjamin 'drwhut' Beddows
URL: https://www.svgrepo.com/svg/444966/bug-solid


- Chat icon

Files:
icons/chat_icon.svg
Author: SVG Repo
License: CC0
Modified By: Benjamin 'drwhut' Beddows
URL: https://www.svgrepo.com/svg/226716/chatting-talk


- Code icon

Files:
Expand All @@ -79,6 +109,16 @@ packs. Licensing information for these assets can be viewed in-game.
URL: https://game-icons.net/1x1/delapouite/cardboard-box.html


- Construction icon

Files:
icons/construction_icon.svg
Author: SVG Repo
License: CC0
Modified By: Benjamin 'drwhut' Beddows
URL: https://www.svgrepo.com/svg/392173/construction-equipment-hammer-tool-repair-tools


- Credits icon

Files:
Expand Down Expand Up @@ -188,6 +228,16 @@ packs. Licensing information for these assets can be viewed in-game.
URL: https://www.svgrepo.com/svg/478288/internet


- Language icon

Files:
icons/language_icon.svg
Author: alex.mitov
License: CC BY
Modified By: Benjamin 'drwhut' Beddows
URL: https://www.svgrepo.com/svg/324210/language-translation


- Leave icon

Files:
Expand Down
11 changes: 11 additions & 0 deletions game/icons/book_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions game/icons/book_icon.svg.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[remap]

importer="texture"
type="StreamTexture"
path="res://.import/book_icon.svg-88f89e7364cce7a1fe2247fb1f2b8824.stex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://icons/book_icon.svg"
dest_files=[ "res://.import/book_icon.svg-88f89e7364cce7a1fe2247fb1f2b8824.stex" ]

[params]

compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=0.25
14 changes: 14 additions & 0 deletions game/icons/bug_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions game/icons/bug_icon.svg.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[remap]

importer="texture"
type="StreamTexture"
path="res://.import/bug_icon.svg-a161841fb6cd2dc55f71de703893a1e1.stex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://icons/bug_icon.svg"
dest_files=[ "res://.import/bug_icon.svg-a161841fb6cd2dc55f71de703893a1e1.stex" ]

[params]

compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=0.25
35 changes: 35 additions & 0 deletions game/icons/chat_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions game/icons/chat_icon.svg.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[remap]

importer="texture"
type="StreamTexture"
path="res://.import/chat_icon.svg-a7f3a58fb207149b39e0553e653919dd.stex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://icons/chat_icon.svg"
dest_files=[ "res://.import/chat_icon.svg-a7f3a58fb207149b39e0553e653919dd.stex" ]

[params]

compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=0.25
2 changes: 1 addition & 1 deletion game/icons/code_icon.svg.import
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0
svg/scale=2.0
12 changes: 12 additions & 0 deletions game/icons/construction_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions game/icons/construction_icon.svg.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[remap]

importer="texture"
type="StreamTexture"
path="res://.import/construction_icon.svg-ee49cb27bb8110e2598f2c684a43041b.stex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://icons/construction_icon.svg"
dest_files=[ "res://.import/construction_icon.svg-ee49cb27bb8110e2598f2c684a43041b.stex" ]

[params]

compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=0.25
2 changes: 1 addition & 1 deletion game/icons/help_icon.svg.import
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=0.25
svg/scale=0.5
2 changes: 2 additions & 0 deletions game/icons/language_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions game/icons/language_icon.svg.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[remap]

importer="texture"
type="StreamTexture"
path="res://.import/language_icon.svg-b16438f7efd5e0c465f5015da29d9625.stex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://icons/language_icon.svg"
dest_files=[ "res://.import/language_icon.svg-b16438f7efd5e0c465f5015da29d9625.stex" ]

[params]

compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=0.25
2 changes: 1 addition & 1 deletion game/icons/store_icon.svg.import
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=0.333
svg/scale=1.0
5 changes: 5 additions & 0 deletions game/main/main_menu.gd
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ onready var _multiplayer_button := $MainContainer/PrimaryContainer/MultiplayerBu
onready var _return_button := $MainContainer/PrimaryContainer/ReturnButton
onready var _singleplayer_button := $MainContainer/PrimaryContainer/SingleplayerButton
onready var _quit_dialog := $QuitDialog
onready var _website_panel := $WebsitePanel


func _ready():
Expand Down Expand Up @@ -96,6 +97,10 @@ func _on_CreditsButton_pressed():
_credits_panel.popup_centered()


func _on_WebsiteButton_pressed():
_website_panel.popup_centered()


func _on_InfoButton_pressed():
_game_info_panel.popup_centered()

Expand Down
Loading

0 comments on commit 86b73d3

Please sign in to comment.